linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adam Luter <luterac@bellsouth.net>
To: linux-raid@vger.kernel.org
Subject: Re: raid 1 vs raid 0+1
Date: Tue, 29 Oct 2002 09:42:53 -0600	[thread overview]
Message-ID: <20021029154253.GB21099@smeagol> (raw)
In-Reply-To: <200210291527.g9TFRl018162@gg.cyberlab.de>

On Tue, Oct 29, 2002 at 04:27:32PM +0100, Antonello Piemonte wrote:
> 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

Get rid of while loop in favor of the for loop, your spending alot of
time with the shell!  (It's bad enough this test involves spawning
10,000 copies of dd!).  Also don't do an echo, and pipe dd's output to
dev/null.  You'll increase your numbers -alot- this way.  (Especially
if you are in a fb-console or xterm, I/O to the screen costs -alot-
then).

-Gryn (Adam Luter)

  reply	other threads:[~2002-10-29 15:42 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
2002-10-29 15:42     ` Adam Luter [this message]
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=20021029154253.GB21099@smeagol \
    --to=luterac@bellsouth.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).