Am Dienstag 06 Mai 2008 schrieb Leszek Dubiel:
> I consider moving server from reiserfs to xfs. In all benchmarks I have
> read both file systems have had comparable results.
> But I've made a test:
> 1. formated /dev/hda2 with reiserfs with default options and made
> 10.000 files
> 2. formated /dev/hda2 with xfs with default options and made 10.000
> Reiserfs created those files in 2 (two) seconds, and xfs created them
> in 35 (thirty five) seconds.
> Is that normal? What I am doing wrong?
> My system is Debian, current stable version. Below is a log of
> Thanks in advance.
> debian:/mnt/hdc2# time for f in `seq 9999`; do echo $f > $f; done
> real 0m35.558s
> user 0m0.256s
> sys 0m1.080s
> debian:/mnt/hdc2# time cat * | wc -l
> real 0m0.239s
> user 0m0.020s
> sys 0m0.172s
martin@shambala:~/Zeit/filetest -> rm *; sync ; time for ((I=1; I<=10000;
I=I+1)); do echo $I > $I; done
martin@shambala:~/Zeit/filetest -> sync ; time cat * >/dev/null
martin@shambala:~/Zeit/filetest -> sync ; time cat * | wc -l
martin@shambala:~/Zeit/filetest -> sync ; time rm *
for XFS with optimized settings...
shambala> xfs_info /home
meta-data=/dev/sda5 isize=256 agcount=6, agsize=4883256
= sectsz=512 attr=2
data = bsize=4096 blocks=29299536, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096
log =internal bsize=4096 blocks=32768, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
agcount is two more than would be optimal cause I growed the partition
shambala> mount | grep home
/dev/sda5 on /home type xfs (rw,relatime,logbsize=256k,logbufs=8)
This is on a ThinkPad T42 internal laptop 160 GB harddisk drive with I
Partition I tested on was not empty at that time and is heavily used.
shambala> LANG=EN df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 112G 84G 29G 75% /home
And there is quite some fragmentation on it:
actual 653519, ideal 587066, fragmentation factor 10.17%
I do not have free space in my playground LVM to test against ext3 and
reiserfs at the moment.
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7