Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2001 16:00:43 -0500
From:      Alfred Perlstein <bright@mu.org>
To:        Jaye Mathisen <mrcpu@internetcds.com>
Cc:        hackers@freebsd.org
Subject:   Re: Softupdate gripe...
Message-ID:  <20010730160043.Q26571@elvis.mu.org>
In-Reply-To: <20010730132122.C548@apocalypse.cdsnet.net>; from mrcpu@internetcds.com on Mon, Jul 30, 2001 at 01:21:22PM -0700
References:  <20010730132122.C548@apocalypse.cdsnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jaye Mathisen <mrcpu@internetcds.com> [010730 15:21] wrote:
> 
> 2 500+GB FS's, both filled completely.
> 
> Filesystem                   1K-blocks     Used    Avail Capacity  Mounted on
> /dev/twed3d                  524698116 524697730      386   100%    /d/d0
> /dev/twed4d                  524698116 524502226   195890   100%    /d/d1
> newsfeed-inn# rm -f /d/d?/*
> newsfeed-inn# ls -lR /d
> total 4
> drwxr-xr-x  2 news  news  512 Jul 30 13:13 d0
> drwxr-xr-x  2 news  news  512 Jul 30 13:13 d1
> 
> /d/d0:
> 
> /d/d1:
> newsfeed-inn# df ; sleep 30 ; df
> Filesystem                   1K-blocks     Used    Avail Capacity  Mounted on
> /dev/twed3d                  524698116 524697730      386   100%    /d/d0
> /dev/twed4d                  524698116 524446754   251362   100%    /d/d1
> Filesystem                   1K-blocks     Used    Avail Capacity  Mounted on
> /dev/twed3d                  524698116 524697730      386   100%    /d/d0
> /dev/twed4d                  524698116 522361778  2336338   100%    /d/d1
> 
> I realize that one of the issues with softupdates is that freed space isn't
> returned immediately, but *none* of the freed up space is being returned on d0,
> while d1 is seeing it.
> 
> Seems like these should be more equal, otherwise, if you had a lot of SU mounted
> FS's, you could possibly deny service for a long time.
>
> It's been another minute now, and still no blocks freed up on /d/d0. 
> newsfeed-inn# df ; sleep 120 ; df
[snip]
> 
> Seems like it should round-robin them or something.

I hope you're not expecting that 'rm' command to somehow realize that
it's operating on two seperate FS's.  If you want to see deletions
happen at the same time you want to do this:

rm -f /d/d0/* & ; rm -f /d/d1/* & ;

Otherwise your rm is only going to process one directory tree at a
time.

If you want to accellerate the release of blocks issue a couple
of sync(1) commands:

sync;sync;sync;

which will 'accelerate' the free'ing of space, actually it will 
accellerate the writing of the meta data that will actually free
up the space.


-- 
-Alfred Perlstein [alfred@freebsd.org]
Ok, who wrote this damn function called '??'?
And why do my programs keep crashing in it?

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010730160043.Q26571>