From: Nick Piggin <piggin@cyberone.com.au>
To: Suman Puthana <suman@broadware.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: problem with iowait (disk I/O) in 2.4.21 kernel
Date: Mon, 01 Dec 2003 19:03:24 +1100 [thread overview]
Message-ID: <3FCAF5CC.9090700@cyberone.com.au> (raw)
In-Reply-To: <003c01c3b7de$b2f02090$04740718@vaiors410>
Suman Puthana wrote:
>Hello,
>
>Is anybody aware of any changes in the 2.4.21 kernel which affects disk I/O
>badly? We are noticing that the cpu taken up by iowait's is causing
>significant degradation in disk performance.
>
>We have an application in which there are multiple processes writing to disk
>simultaneously, each process writing anywhere from 16 - 64 K Bytes at a time
>and sleeping for about 50 ms depending on how long the write() call takes to
>finish. It is important that the write() finishes within 50 ms for this
>application. The file's are opened with the open() call with the standard
>O_RDWR and O_CREAT flags.
>
>On the 2.4.18 kernel, 25 of these processes take up about 15% of CPU on a
>dual Xeon Pentium 4 2.4 GHz processor with 1 MB of memory for a total
>throughput of about 7 MBps which is very good. The write() calls typically
>take less than 5 ms to complete and we sleep for the remaining 45 ms or so.
>
>But on the same system when we installed the 2.4.21 kernel, these 25
>processes take anywhere between 40 - 70 % of the CPU depending on how much
>CPU the iowait is taking up. The iowait part of it varies all the way from
>10 - 60 %. (The iowait CPU is within 1% on the 2.4.18 kernel.). What is
>even worse - sometimes the write() calls take anywhere between 1 - 2
>seconds( yes seconds!) to return, which degrades the performance of our
>application server pretty badly.
>
> It happens on all kinds of storage devices so it's definitely not a
>hardware problem.(We tested on the standard IDE disk all the way upto the
>EMC clariion storage system).
>
>Is this iowait something which was introduced in the 2.4.21 kernel core code
>or in the file system driver code? It definitely happens with jfs, reiserfs
>and also on ext3 though not as badly . Is there a way to turn it off or to
>make it take up lesser CPU?
>
>Any insight or pointers regarding this problem would be greatly
>appreciated. Thank you for your support.
>
Does this happen with 2.4.23? If yes, then can you find the last kernel
with good performance (is it 2.4.18, 19 or 20)?
Can you make the source code of this program available or make available
a minimal program with which you can reproduce the bad behaviour?
Thanks,
Nick
prev parent reply other threads:[~2003-12-01 8:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-01 7:35 problem with iowait (disk I/O) in 2.4.21 kernel Suman Puthana
2003-12-01 8:03 ` Nick Piggin [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=3FCAF5CC.9090700@cyberone.com.au \
--to=piggin@cyberone.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=suman@broadware.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