linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonello Piemonte <ap@cyberlab.de>
To: Jakob Oestergaard <jakob@unthought.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: raid 1 vs raid 0+1
Date: Tue, 29 Oct 2002 16:27:32 +0100	[thread overview]
Message-ID: <200210291527.g9TFRl018162@gg.cyberlab.de> (raw)
In-Reply-To: <20021029131453.GB24171@unthought.net>

On Tuesday 29 October 2002 14:14, Jakob Oestergaard wrote:
> On a dual PIII-550 with 512 MB of memory, ext3, and a RAID-0+1 (four 40G
> 7200rpm IBM IDE Deathstar disks, 64k chunk-size on the RAID-0), I get:
>
> $ time for i in {0,1,2,3,4,5,6,7,8,9}; do mkdir $i; for j in
> {0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}; do dd if=/dev/zero of=$j/$i
> bs=1k count=4; done done
>
> real    0m5.024s
>
> So, 5 seconds for writing one thousand 4 kb files *sequentially*.
>
> Note that I only put 100 files in each directory - if I put 1000 files
> in one directory, performance would degrade (more significantly when the
> number is, say, 10000).

Dear Jakob,

for a start I have set my "baseline" measurement: using a 10000 rpm IBM 
Ultrastar with Adaptec 29160 Ultra160 SCSI adapter
with 512Mb RAM and PIII-800 I can create 1000 4kb files
in one directory (this case is what is going to happen in the real
application) in abou 8secs using this:
--
#!/bin/sh

i=1
while [ $i -le 1000 ]
do
        echo $i
        dd if=/dev/zero of=file_$i bs=1k count=4
        i=`expr $i + 1`
done
exit 0
--

$ time sh write.sh
...
 real    0m8.388s
user    0m4.037s
sys     0m3.834s

writing 10.000 files gives instead
$ time sh write.sh
real    1m46.499s
user    0m40.096s
sys     1m0.400s

so a 10-folds increase of number of files gives about
a 12-fold increase in "real" time ... 
I will play next with journaling mode (using data=ordered now)
and post outcome here: thanks for your comments so far !
antonello

  parent reply	other threads:[~2002-10-29 15:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 12:29 raid 1 vs raid 0+1 Antonello Piemonte
2002-10-29 13:14 ` Jakob Oestergaard
2002-10-29 15:16   ` Stephen Lee
2002-10-29 15:39     ` Adam Luter
2002-10-29 16:16       ` Stephen Lee
2002-10-29 21:08       ` Trent Piepho
2002-10-29 15:27   ` Antonello Piemonte [this message]
2002-10-29 15:42     ` Adam Luter
2002-10-29 16:19   ` Roy Sigurd Karlsbakk

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=200210291527.g9TFRl018162@gg.cyberlab.de \
    --to=ap@cyberlab.de \
    --cc=jakob@unthought.net \
    --cc=linux-raid@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).