public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Leszek Dubiel <Leszek.Dubiel@dubielvitrum.pl>
To: xfs@oss.sgi.com
Subject: XFS for lots of small files
Date: Tue, 06 May 2008 18:11:23 +0200	[thread overview]
Message-ID: <4820832B.3070903@dubielvitrum.pl> (raw)


Hello!

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 operation.


Thanks in advance.



debian:/mnt/hdc2# mkfs.xfs /dev/hdc2 -f; mount /dev/hdc2 /mnt/hdc2; cd /mnt/hdc2; mount | egrep hdc2
meta-data=/dev/hdc2              isize=256    agcount=16, agsize=1220688 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=19531008, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=9536, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
/dev/hdc2 on /mnt/hdc2 type xfs (rw)



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 
9999

real	0m0.239s
user	0m0.020s
sys	0m0.172s



debian:/mnt/hdc2# cd /; umount /dev/hdc2; mkreiserfs /dev/hdc2 -f; mount /dev/hdc2 /mnt/hdc2; cd /mnt/hdc2; mount | egrep hdc2
mkreiserfs 3.6.19 (2003 www.namesys.com)
[...]
ReiserFS is successfully created on /dev/hdc2.
/dev/hdc2 on /mnt/hdc2 type reiserfs (rw)



debian:/mnt/hdc2# time for f in `seq 9999`; do echo $f > $f; done

real	0m1.075s
user	0m0.232s
sys	0m0.844s

debian:/mnt/hdc2# time cat * | wc -l
9999

real	0m0.257s
user	0m0.028s
sys	0m0.256s



debian:/mnt/hdc2# exit

             reply	other threads:[~2008-05-06 16:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06 16:11 Leszek Dubiel [this message]
2008-05-06 16:23 ` XFS for lots of small files Nicolas KOWALSKI
2008-05-06 18:55 ` Martin Steigerwald
2008-05-23  0:44   ` Linda Walsh
2008-05-24 16:16     ` Martin Steigerwald
2008-05-25  3:25   ` Eric Sandeen
2008-05-25 11:38     ` Martin Steigerwald
2008-05-25 15:39       ` Eric Sandeen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4820832B.3070903@dubielvitrum.pl \
    --to=leszek.dubiel@dubielvitrum.pl \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox