Subject: Re: Space disappearing under LFS?
To: Paul Mather <paul@gromit.dlib.vt.edu>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 09/04/2001 16:23:52
On Tue, Aug 14, 2001 at 11:03:51PM -0400, Paul Mather wrote:
> Recently, I decided to give LFS a try on my DEC 3000/300 running
> NetBSD-current (last built 2001-08-01).  I don't think I'll stick with
> it, because the read performance (as measured unscientifically whilst
> watching systat vmstat:) is much inferior to that of FFS, and write
> performance on my system doesn't win against FFS with soft updates.
> 
> But, the thing I've found most intriguing is the way the disk usage (as
> reported by df) fluctuates even when the file system is static.
> However, that's not the oddest thing I've noted.  For some reason, the
> number of 1K blocks reported by the filesystem, and the "Avail" amount
> has decreased.  This morning, "df" told me:
> 
> Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
> [...]
> /dev/sd1c      968877     6098    865892     0%    /scratch
> 
> and just now, it reports:
> 
> Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
> [...]
> /dev/sd1c      737204     6142    657342     0%    /scratch
> 
> even though the filesystem contents have not changed in the intervening
> hours!
> 
> Where have the ~200 MB gone?  Is lfs_cleanerd cleaning away my disk
> space permanently? ;-)

With the way LFS works it's normal to see this. It's hard to know the real
free space (see the panic problem when the filesystem fills up) because
it's used by metadata too. So the free and total 'user' space is
an estimation which may change depending on what the cleaner did with
the data.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--