Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2001 02:10:23 -0700
From:      dannyman <dannyman@toldme.com>
To:        Jaye Mathisen <mrcpu@internetcds.com>
Cc:        hackers@freebsd.org
Subject:   Re: Softupdate gripe...
Message-ID:  <20010803021022.H28602@toldme.com>
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
On Mon, Jul 30, 2001 at 01:21:22PM -0700, Jaye Mathisen 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?/*
As noted elsewhere, this is an inefficient way to remove these files.
> newsfeed-inn# ls -lR /d
ls -lRa
> 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

Two things to note:

1) Are there any open filehandles on these disks?  If a process is
writing a file, and you remove that file, the disk space is not cleared
until the process that had that file open closes it.

2) As noted in other posts, use sync to force the OS to commit changes
to the filesystem.

> It's been another minute now, and still no blocks freed up on /d/d0. 
> newsfeed-inn# df ; sleep 120 ; df
> /dev/twed3d                  524698116 524697730      386   100%    /d/d0
> /dev/twed4d                  524698116 503964018 20734098    96%    /d/d1
> ...
> /dev/twed3d                  524698116 524697730      386   100%    /d/d0
> /dev/twed4d                  524698116 493186018 31512098    94%    /d/d1
> 
> Seems like it should round-robin them or something.

FWIW, I've noticed that .5TB filesystems can behave pretty slowly.

-danny

-- 
http://dannyman.toldme.com/

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?20010803021022.H28602>