From: Helge Hafting <helgehaf@idb.hist.no>
To: jlm <jsado@mediaone.net>, linux-kernel@vger.kernel.org
Subject: Re: Poor performance during disk writes
Date: Thu, 20 Dec 2001 11:49:03 +0100 [thread overview]
Message-ID: <3C21C21F.92F834AB@idb.hist.no> (raw)
In-Reply-To: <20011218195509.U2272-100000@gerard> <1008804413.926.5.camel@PC2>
jlm wrote:
> I think people might be missing the issue that I'm having, here. Let me
> see if I can clarify. I'm not too concerned about write speed. I don't
> care too much if the hard drive can only write one byte per second. The
> problem is that when the kernel decides to write out to the disk, it is
> pre-empting everything else. All output to the user in X, the sound
> card, and also text typing in the console is put "on the back burner"
> while the disk is written to.
There may be a problem here, and maybe not:
All of the actions above _may_ require disk access. The shell you type
into could be swapped out, for example. A slow disk will be a problem
in that case, swapin won't happen until the disk head seeks to
the relevant position, and that may be delayed by the write. Even
if the cpu is capable of doing other work while IO is going on.
> It seems to me that smaller chunks of data can be written to the disk
> without disrupting my use of the computer (which is the case with
> untarring a small file, for instance), so if the kernel has got a lot to
> write to disk, just do that as a bunch of smaller writes and we should
> be fine.
>
> So I guess I don't really care what mode the hard drive is operating in
> (udma, mdma, dma or plain ide), I just don't want to have to go get a
> cup of coffee while the hard drive saves some data. Is there a "don't
Devices generally get the cpu before anything else. A good disk system
don't need much cpu. Running IDE in PIO mode require a lot
of cpu though. Using any of the DMA modes avoids that.
> pre-empt the rest of the system" switch for the eide drives? Is there
> something fundamental/unique going on here that I'm missing?
dma, udma, etc. is that switch. It lets the cpu do other work (such as
redrawing X) while the disk is busy. Plain ide is what you don't want.
The problem of waiting for other files or swapping while a really big
write
is going on is different. Get more drives, so the big writes go
to one drive while you get stuff swapped in (or other file access)
on other drive(s). The kernel is capable of getting fast response
from one drive while another is completely bogged down with
enormous writes.
Helge Hafting
next prev parent reply other threads:[~2001-12-20 10:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-18 0:53 Poor performance during disk writes jlm
2001-12-18 1:09 ` Reid Hekman
2001-12-18 1:36 ` jlm
2001-12-18 2:01 ` Reid Hekman
2001-12-18 18:46 ` Andre Hedrick
2001-12-18 17:42 ` Gérard Roudier
2001-12-18 20:34 ` Andre Hedrick
2001-12-18 19:09 ` Gérard Roudier
2001-12-19 23:26 ` jlm
2001-12-20 10:49 ` Helge Hafting [this message]
2001-12-20 11:16 ` Oops in 2.4.14-pre6 and 2.4.14-pre9aa1 Andre Margis
2001-12-21 16:29 ` Poor performance during disk writes Troy Benjegerdes
-- strict thread matches above, loose matches on Subject: below --
2001-12-20 13:27 Dieter Nützel
2001-12-20 14:51 ` safemode
2001-12-20 17:40 ` William Lee Irwin III
2001-12-20 18:19 ` Andrew Morton
2001-12-20 18:29 ` Dave Jones
2001-12-21 16:50 ` Jens Axboe
2001-12-21 16:50 ` Jens Axboe
[not found] ` <0112201629230E.01835@manta>
[not found] ` <200112201436.fBKEa2m26640@zero.tech9.net>
2001-12-20 19:02 ` Robert Love
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=3C21C21F.92F834AB@idb.hist.no \
--to=helgehaf@idb.hist.no \
--cc=jsado@mediaone.net \
--cc=linux-kernel@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