[Top] [All Lists]

Speed of rm compared to reiserfs (slow)

To: xfs@xxxxxxxxxxx
Subject: Speed of rm compared to reiserfs (slow)
From: Török Edwin <edwintorok@xxxxxxxxx>
Date: Wed, 24 Sep 2008 11:43:13 +0300
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=CREUNW+LN7qSIvVz20DRQg/53gaLc6DF+0b0QysMCno=; b=f9KJLZ1Hqqm/VfuiDKkUU1GlVsuDkHL6rXRUwDkut6HcH097vpnVcl/lHRAFUD+110 tMFeR5Qw9M3JhI9eUl5vSKF/aGWTVOh+u3//6DwJdDz3kvCHsYbV6orpCWwc2B+TPGnC yM/EU5aFqtD0SAKZU4vM4Qsm8LaylytD54vV4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=YUaexAbmL4RJgtcouOO5kxaj4eIgU+Wjb/5WiJNTPXzj5AS2ZCteC1jTzoX5Cw2TP0 9ySYgOgiqT0J1NIS9y+9eUyQAmzQNSf4yZlshhomUgzlZ2Wx1P/wx922Ucil3vcIc0AO slZgM3PdRTnrIKgoeSdIpXT8FxpaU3wVeB5gQ=
User-agent: Mozilla-Thunderbird (X11/20080724)

I am happily using xfs for /var, /usr and /, and I am very pleased with
the read speed.
I've just recommended xfs to a friend, and he complained about the speed
of rm.

I did a test on my box, and indeed the speed of rm is order of magnitude
slower compared to reiserfs.
I already use lazy-count, and noatime/nodiratime. Write barriers are off
because I run on raid10.

Is there anything else I can tune to get faster rm speed?

1. svn co svn://gcc.gnu.org/svn/gcc/trunk gcc
# sync; echo 3 >/proc/sys/vm/drop_caches; sync
3. time rm -rf gcc

Results for XFS:
real 1m30.100s
user 0m0.188s
sys 0m11.401s

Results for Reiserfs:
real 0m10.937s
user 0m0.140s
sys 0m6.616

# xfs_info /var
meta-data=/dev/mapper/vg--all-lv--var isize=256    agcount=4,
agsize=85196800 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=340787200, imaxpct=5
         =                       sunit=16     swidth=96 blks
naming   =version 2              bsize=4096
log      =internal               bsize=4096   blocks=32768, version=2
         =                       sectsz=512   sunit=16 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

# mount | grep var
/dev/mapper/vg--all-lv--var on /var type xfs (rw,noatime,nodiratime)

# mount | grep reiserfs
/dev/mapper/vg--all-lv--home on /home type reiserfs (rw,noatime,notail)

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md3              9.2G  5.1G  3.7G  58% /
tmpfs                 2.0G   12K  2.0G   1% /lib/init/rw
udev                   10M  188K  9.9M   2% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
                      100G  5.3G   95G   6% /usr
                      1.3T  230G  1.1T  18% /var
                      600G   41G  560G   7% /home
tmpfs                 2.0G  1.9M  2.0G   1% /tmp

[   23.861497] Filesystem "dm-0": Disabling barriers, not supported by
the underlying device
[   23.863915] XFS mounting filesystem dm-0
[   24.050223] Ending clean XFS mount for filesystem: dm-0
[   24.056295] Filesystem "dm-1": Disabling barriers, not supported by
the underlying device
[   24.056295] XFS mounting filesystem dm-1
[   24.248025] Ending clean XFS mount for filesystem: dm-1
[   24.335968] ReiserFS: dm-2: found reiserfs format "3.6" with standard
[   24.335968] ReiserFS: dm-2: using ordered data mode
[   24.359968] ReiserFS: dm-2: journal params: device dm-2, size 8192,
journal first block 18,
max trans len 1024, max batch 900, max commit age 30, max trans age 30
[   24.359968] ReiserFS: dm-2: checking transaction log (dm-2)
[   24.426700] ReiserFS: dm-2: Using r5 hash to sort names

Best regards,

<Prev in Thread] Current Thread [Next in Thread>