mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Moritz Franosch <jfranosc@physik.tu-muenchen.de>
Cc: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org
Subject: Re: IO performance problems in 2.4.19-pre5 when writing to DVD-RAM/ZIP/MO
Date: Wed, 17 Apr 2002 19:32:46 +0200	[thread overview]
Message-ID: <20020417193246.E14322@dualathlon.random> (raw)
In-Reply-To: <rxxadshj1rh.fsf@synapse.t30.physik.tu-muenchen.de> <20020416165358.E29747@dualathlon.random> <rxxk7r6tkh6.fsf@synapse.t30.physik.tu-muenchen.de>

On Wed, Apr 17, 2002 at 05:26:13PM +0200, Moritz Franosch wrote:
> 
> 
> > > The problem is that writing to a DVD-RAM, ZIP or MO device almost
> > > totally blocks reading from a _different_ device. Here is some data.
> > > 
> > > nr bench read       write      2.4.18  2.4.19-rc5  expected factor
> > > 1  dd    30GB HDD   DVD-RAM    278     490         60       8.2
> > > 2  dd    120GB HDD  DVD-RAM    197     438         32       14
> > > 3  dd    30GB HDD   ZIP        158     239         60       4.0
> > > 4  dd    120GB HDD  ZIP        142     249         32       7.8
> > > 5  dd    30GB HDD   120GB HDD   87      89         60       1.5
> > > 6  dd    120GB HDD  30GB HDD    66      69         32       2.2
> > > 7  cp    30GB HDD   120GB HDD   97      77         60       1.3
> > > 8  cp    120GB HDD  30GB HDD    78      65         50       1.3
> 
> Should be -pre5, sorry.

Never mind, that was clear :).

> 
> > The reason hd is faster is because new algorithm is much better than the
> > previous mainline code. Now the reason the DVDRAM hangs the machine
> > more, that's probably because more ram can be marked dirty with those
> > new changes (beneficial for some workload, but it stalls much more the
> > fast hd, if there's one very slow blkdev in the system). You can try
> > decrasing the percent of vm dirty in the system with:
> > 
> > 	echo 2 500 0 0 500 3000 3 1 0 >/proc/sys/vm/bdflush
> 
> With the bdflush-parameters above, I get
> 
> nr bench read       write      2.4.19-pre5  expected factor
> 9  dd    30GB HDD   DVD-RAM    208/0/6      60       3.5
> 10 dd    120GB HDD  DVD-RAM    39/0/6       32       1.2
> 11 dd    30GB HDD   ZIP        66/0/10      60       1.1
> 12 dd    120GB HDD  ZIP        85/0/7       32       2.7
> 
> Numbers in the column 2.4.19-pre5 are total time / user time / system
> time in seconds.
> 
> Performance is much better with the new parameters. Also, with the new
> parameters, the system can read from HDD almost steadily while writing
> to DVD. This should much increase responsiveness.

Good. As said that's a mere workaround at the moment, something generic
and possibly autotuning is a bit more complex, and still a research
item (I see it more as a 2.5 thing, because the slow reads during DVD
etc.. isn't really a regression).

> In cases 9 and 12 where performance is bad, both tested drives are on
> the same IDE controller. Should that matter?

yes very much so, I should had asked you about it, I was assuming it
wasn't bound by hardware limitations. IDE isn't able to submit commands
in parallel to both hosts on the same IDE controller, so you will get
much slower performance doing I/O on the master and slave of the same
ide channel. So if your "expected" doesn't count the IDe channel
collisions then it sounds good.

> > Right fix is different but not suitable for 2.4.
> 
> I'm looking forward to the definitive solution.

Right you are.

> Thank you very much,

You're welcome.

Andrea

      parent reply	other threads:[~2002-04-17 17:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <rxxadshj1rh.fsf@synapse.t30.physik.tu-muenchen.de>
2002-04-16 14:53 ` Andrea Arcangeli
2002-04-16 15:39   ` Rik van Riel
2002-04-16 16:25     ` Andrea Arcangeli
2002-04-17 15:35     ` Moritz Franosch
2002-04-16 16:09   ` Alan Cox
2002-04-16 16:40     ` Rik van Riel
2002-04-16 16:41     ` Andrea Arcangeli
2002-04-17 15:47     ` Moritz Franosch
2002-04-16 19:14   ` Roger Larsson
2002-04-17 19:12     ` Moritz Franosch
2002-04-17 15:26   ` Moritz Franosch
2002-04-17 16:34     ` Andreas Dilger
2002-04-17 17:32     ` Andrea Arcangeli [this message]

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=20020417193246.E14322@dualathlon.random \
    --to=andrea@suse.de \
    --cc=jfranosc@physik.tu-muenchen.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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

all inboxes | Powered by JetHome®