From: Daniel Phillips <phillips@bonn-fries.net>
To: Andrew Morton <akpm@zip.com.au>,
Daniel Phillips <phillips@bonn-fries.net>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [CFT] delayed allocation and multipage I/O patches for 2.5.6.
Date: Tue, 12 Mar 2002 21:40:02 +0100 [thread overview]
Message-ID: <E16kt3y-0000BL-00@starship> (raw)
In-Reply-To: <3C8D9999.83F991DB@zip.com.au> <E16kkID-0001qr-00@starship> <3C8E6544.1AE28413@zip.com.au>
In-Reply-To: <3C8E6544.1AE28413@zip.com.au>
On March 12, 2002 09:29 pm, Andrew Morton wrote:
> Daniel Phillips wrote:
> >
> > On March 12, 2002 07:00 am, Andrew Morton wrote:
> > > Identifies readahead thrashing.
> > >
> > > Currently, it just performs a shrink on the readahead window when thrashing
> > > occurs. This greatly reduces the amount of pointless I/O which we perform,
> > > and will reduce the CPU load. The idea is that the readahead window
> > > dynamically adjusts to a sustainable size. It improves things, but not
> > > hugely, experimentally.
> >
> > The question is, does it wipe out a nasty corner case? If so then the improvement
> > for the averge case is just a nice fringe benefit. A carefully constructed test
> > that triggers the corner case would be most interesting.
>
> There are many test scenarios. The one I use is:
>
> - 64 megs of memory.
>
> - Process A loops across N 10-megabyte files, reading 4k from each one
> and terminates when all N files are fully read.
>
> - Process B loops, repeatedly reading a one gig file off another disk.
>
> The total wallclock time for process A exhibits *massive* step jumps
> as you vary N. In stock 2.5.6 the runtime jumps from 40 seconds to
> ten minutes when N is increased from 40 to 60.
>
> With my changes, the rate of increase of runtime-versus-N is lower,
> and happens at later N. But it's still very sudden and very bad.
>
> Yes, it's a known-and-nasty corner case. Worth fixing if the
> fix is clean. But IMO the problem is not common enough to
> justify significantly compromising the common case.
It's a given the common case should be optimal. I'm sure there's an algorithm that
fixes up your test case, which by the way isn't that uncommon - it's Rik's '100 ftp
processes' case. I'll buy the suggestion it isn't common enough to drop everything
right now and go fix it.
--
Daniel
next prev parent reply other threads:[~2002-03-12 20:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-12 6:00 Andrew Morton
2002-03-12 11:18 ` Daniel Phillips
2002-03-12 20:29 ` Andrew Morton
2002-03-12 20:40 ` Daniel Phillips [this message]
2002-03-12 11:39 ` Daniel Phillips
2002-03-12 21:00 ` Andrew Morton
2002-03-13 11:58 ` Daniel Phillips
2002-03-13 19:50 ` Andrew Morton
2002-03-13 21:51 ` Mike Fedyk
2002-03-14 11:59 ` Daniel Phillips
2002-03-13 0:42 ` David Woodhouse
2002-03-18 19:16 ` Hanna Linder
2002-03-18 20:14 ` Andrew Morton
2002-03-18 20:22 ` Hanna Linder
2002-03-18 20:49 ` Andrew Morton
2002-03-19 0:41 rwhron
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=E16kt3y-0000BL-00@starship \
--to=phillips@bonn-fries.net \
--cc=akpm@zip.com.au \
--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®