Yan Zhu
2007-Oct-24 08:18 UTC
[zfs-discuss] who can tell me why zfs reduce the block numbers when removing files?
I am removing files on ZFS, but I found the the "df" data is interesting: I am removing file all the while, but when I run command "df", I''ve gotten the data following: bash-3.00# date;df /zfs-test Wed Oct 24 15:46:25 CST 2007 /zfs-test (zfs-test ):3424842971 blocks 3424842971 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:27 CST 2007 /zfs-test (zfs-test ):3424868810 blocks 3424868810 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:41 CST 2007 /zfs-test (zfs-test ):3424868810 blocks 3424868810 files bash-3..00# date;df /zfs-test Wed Oct 24 15:46:41 CST 2007 /zfs-test (zfs-test ):3424923399 blocks 3424923399 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:49 CST 2007 /zfs-test (zfs-test ):3424940495 blocks 3424940495 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:52 CST 2007 /zfs-test (zfs-test ):3425009484 blocks 3425009484 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:54 CST 2007 /zfs-test (zfs-test ):3425008984 blocks 3425008984 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:55 CST 2007 /zfs-test (zfs-test ):3425008984 blocks 3425008984 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:55 CST 2007 /zfs-test (zfs-test ):3425008984 blocks 3425008984 files bash-3.00# date;df /zfs-test Wed Oct 24 15:46:56 CST 2007 /zfs-test (zfs-test ):3425008984 blocks 3425008984 files bash-3..00# date;df /zfs-test Wed Oct 24 15:46:56 CST 2007 /zfs-test (zfs-test ):3425021894 blocks 3425021894 files I was removing files all the while and should do nothing with zpool except removing files.. Look at the result of df, in the beginning, the free block was increasing, but please notice the text at Wed Oct 24 15:46:54 CST 2007. The free block was decreased; and at Wed Oct 24 15:46:56 CST 2007, the free block was incresing again. All above is periodicity, like ZFS is buffered the remove ops and flush them sometime. but why the FREE BLOCK is increased, when I was removing files? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20071024/ebb0eab2/attachment.html>