From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: "Jeffrey W. Baker" <jwbaker@acm.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: userland starvation with 2.4.25-rc2
Date: Fri, 13 Feb 2004 19:23:56 -0200 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.58L.0402131903260.6713@logos.cnet> (raw)
In-Reply-To: <1076705542.24165.198.camel@heat>
On Fri, 13 Feb 2004, Jeffrey W. Baker wrote:
> I have this machine with 8GB main memory, two CPUs, two internal IDE
> disks (on AMD 8111), and two external SCSI disks (on AIC79xx). The
> kernel is 2.4.25-rc2 built for ia32, with no aditional patches. The
> filesystem on the IDE disk is ext2 and the file system on the SCSI disks
> is XFS. I am trying to load the SCSI disk by doing in parallel:
>
> 1) bonnie++ -f
> 2) find /scsivol -type f | xargs cat > /dev/null
> 3) untar millions of files from tarball on IDE disk to SCSI disk
> 4) copy postgresql databases (data, xlogs on SCSI) using pg_dump | psql
>
> The odd behavior I am observing is that userland can be virtually
> starved for minutes at a stretch. I have plotted the I/O and CPU load
> time series here, if you care to see it graphically:
>
> http://saturn5.com/~jwb/prime-starve.png
>
> The upper graph is the CPU load, the lower graph is the I/O load. As
> you can see, at certain points the kernel will take all available CPU,
> and I/O will slow to nearly a halt. The longest period seen in this
> graph is 140 seconds, during which certain interactive user processes
> made progress (iostat -k 10, watch df -ha) while others did not (top,
> watch "dmesg | tail"). Obviously very little of the I/O made progress.
>
> I wonder if there is a /proc tweak I can make to avoid this behavior?
Hi Jeffrey,
Boot with profile=2, run your tests, then do:
readprofile -m /path/to/System.map -v | sort -nr +2 | head -50
So we can see what is using the CPU time in the kernel.
I'm not sure if the IDE controller can do highmem IO. If it can't, then
the kernel has to copy data to lower 1GB to do IO, which is nasty.
The SCSI stack has known scalability problems, but those shouldnt be
hurting that much as far as I know. Well, the readprofile will show us.
Try 2.6.3-rc, too.
prev parent reply other threads:[~2004-02-13 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-13 20:52 Jeffrey W. Baker
2004-02-13 21:23 ` Marcelo Tosatti [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=Pine.LNX.4.58L.0402131903260.6713@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=jwbaker@acm.org \
--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
all inboxes | Powered by JetHome®