On Thursday 06 January 2005 06:58 pm, [EMAIL PROTECTED] wrote:
> On 06-01-05 17:30 -0600, Boyd Stephen Smith Jr. wrote:
> > I like reiserfs WITHOUT notail, I've experienced *large* disk usage
> > savings. Then again, I don't have the 10k (or even 1k) of messages
> > talked about on this list.
>
> Just a silly request, but could you please check if the
> output of du -sbmx and df for a partition with reiser3 and
> tail. I had quite an annoying issue where my values
> differed by about 500M.
This is not so much an issue with reiserfs as it is with du.
If two small files are in the same block df counts the block once. If two
small files are in the same block du counts the block twice. Because of
this, namesys always recommends using df for determining the size of a
filesystem. Also, df reports the filesystem overhead as used on a
reiserfs parition while du does not report filesystem overhead at all.
Just after creation, before any files are on it, df will show 33M used for
a reiserfs parition. I'm fairly sure this is filesstem specific; ext3 has
overhead but it simply subtracts it from the size of the filesystem
instead of showing it as used.
Here are my results on this machine:
merlin / # df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/vga/lv0
reiserfs 1048540 185316 863224 18% /
/dev/root.old ext2 2948 2202 596 79% /initrd
/dev/vga/lv1
reiserfs 20970876 15933640 5037236 76% /home
/dev/vga/lv2
reiserfs 8388348 6321476 2066872 76% /usr
/dev/vga/lv3
reiserfs 1048540 649940 398600 62% /opt
/dev/vga/lv4
reiserfs 2097084 508284 1588800 25% /var
/dev/vga/lv5
reiserfs 1048540 38616 1009924 4% /tmp
shmem tmpfs 192416 0 192416 0% /dev/shm
merlin / # du -sbmx / /initrd /home /usr /opt /var /tmp /dev/shm
142 /
3 /initrd
15483 /home
5865 /usr
590 /opt
420 /var
4 /tmp
1 /dev/shm
merlin / # df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/vga/lv0 1024 181 843 18% /
/dev/root.old 3 3 1 79% /initrd
/dev/vga/lv1 20480 15561 4919 76% /home
/dev/vga/lv2 8192 6174 2019 76% /usr
/dev/vga/lv3 1024 635 390 62% /opt
/dev/vga/lv4 2048 497 1552 25% /var
/dev/vga/lv5 1024 38 987 4% /tmp
shmem 188 0 188 0% /dev/shm
/opt and /var were over 1G a piece under ext3.
--
Boyd Stephen Smith Jr.
[EMAIL PROTECTED]
ICQ: 514984 YM/AIM: DaTwinkDaddy
--
[email protected] mailing list