Subject: kern/11122: LFS space usage on large partitions excessive
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gendalia@iastate.edu>
List: netbsd-bugs
Date: 10/03/2000 05:18:22
>Number:         11122
>Category:       kern
>Synopsis:       df shows excessively strange usage on large partitions on LFS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 03 05:24:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tracy J. Di Marco WHite
>Release:        1.5 branch, updated September 30, 2000
>Organization:
>Environment:
System: NetBSD lyra 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (LYRA) #0: Sun Oct 1 11:54:43 CDT 2000 gendalia@solstice.cc.iastate.edu:/usr/src/sys/arch/i386/compile/LYRA i386


>Description:
A filesystem that started out being very close to 85GB has had about 3GB
of files copied to it, then some of the files deleted (files included
pkgsrc, src & xsrc, with object files in the first two, then the object
files in src & pkgsrc were cleaned up).
lyra:/stuff# df -k /stuff
/dev/raid0d    55925583  7655619 47710709    13%    /stuff
lyra:/stuff# du -sk .
2392785 .
lyra:/stuff# du -a|wc -l
  115295

This is after about 9 hours of lfs_cleanerd running after most changes on
the filesystem had stopped.

> During copy:
> # while 1
> while? df /stuff
> while? sleep 20
> while? end
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54479268  7915360 46019115    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54478533  7919316 46014432    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54482146  7923200 46014125    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54481456  7927177 46009464    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54484326  7931477 46008006    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54483835  7935400 46003597    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54487336  7939321 46003142    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54486354  7943328 45998162    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54489896  7947247 45997751    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54488865  7951287 45992690    14%    /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54491814  7955288 45991608    14%    /stuff
>
> Things finished copying, and I deleted some stuff, then:
> # df /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  54828170  7558761 46721128    13%    /stuff
>
> 5 hours later:
> # df /stuff
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/raid0d  55417900  7595273 47268448    13%    /stuff

>How-To-Repeat:
copy files to a large LFS partition.
>Fix:
Hmm.  Give up and go back to FFS and hope the machine never crashes.
>Release-Note:
>Audit-Trail:
>Unformatted: