Christian Gottschalch wrote:
> creation test: 10000 fiels in 10000 Directorys
> copy these files to another directory
> move all to anotehr Directory
> so far, it works fine, now i stoped the scripts,
> deleted all manually from the working dirs, and now
> i got this output from "df"
> /dev/sdb2 86G 108M 85G 1% /vol/xfs
> same result after a reboot, whats wrong ?
I assume that the "strange" part of the output is that your "empty"
filesystem shows 108M used? This is probably because XFS dynamically
allocates inodes as it needs them, and you just created 40,000 inodes on
your filesystem (10k files, 10k dirs, then copy). So what you are most
likely seeing is the space allocated for inodes.
XFS doesn't "reclaim" these inodes, so if you make 40,000 files, your
filesystem now has 40,000 inodes permanently allocated. This isn't so
bad, ext2 requires you to pre-allocate inodes, so on a filesystem where
you wanted to use 40,000 files, you'd probably have to allocate 50,000
inodes to be safe. With XFS you get them as you need them, and no more.
-Eric
--
Eric Sandeen XFS for Linux http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx SGI, Inc.
|