From owner-freebsd-hackers Fri Aug 3 2: 8:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dell.dannyland.org (dell.dannyland.org [64.81.36.13]) by hub.freebsd.org (Postfix) with ESMTP id 8A6A137B403 for ; Fri, 3 Aug 2001 02:08:47 -0700 (PDT) (envelope-from dannyman@toldme.com) Received: by dell.dannyland.org (Postfix, from userid 1001) id C31ED5C20; Fri, 3 Aug 2001 02:10:23 -0700 (PDT) Date: Fri, 3 Aug 2001 02:10:23 -0700 From: dannyman To: Jaye Mathisen Cc: hackers@freebsd.org Subject: Re: Softupdate gripe... Message-ID: <20010803021022.H28602@toldme.com> References: <20010730132122.C548@apocalypse.cdsnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010730132122.C548@apocalypse.cdsnet.net>; from mrcpu@internetcds.com on Mon, Jul 30, 2001 at 01:21:22PM -0700 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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