From: Andrew Morton <akpm@zip.com.au>
To: Jens Axboe <axboe@suse.de>
Cc: Roger Larsson <roger.larsson@norran.net>,
Roy Sigurd Karlsbakk <roy@karlsbakk.net>,
linux-kernel@vger.kernel.org
Subject: Re: Errors in the VM - detailed
Date: Thu, 31 Jan 2002 12:43:08 -0800 [thread overview]
Message-ID: <3C59AC5C.6B6C6066@zip.com.au> (raw)
In-Reply-To: <Pine.LNX.4.30.0201311604470.14025-100000@mustard.heime.net> <200201312024.g0VKORD19223@mailf.telia.com>, <200201312024.g0VKORD19223@mailf.telia.com> <20020131212909.T5301@suse.de>
Jens Axboe wrote:
>
> That will trigger _all the time_ even on a moderately busy machine.
> Checking if tossing away read-ahead is the issue is probably better
> tested with just increasing the request slots. Roy, please try and change
> the queue_nr_requests assignment in ll_rw_blk:blk_dev_init() to
> something like 2048.
>
heh. Yep, Roger finally nailed it, I think.
Roy says the bug was fixed in rmap11c. Changelog says:
rmap 11c:
...
- elevator improvement (Andrew Morton)
Which includes:
- queue_nr_requests = 64;
- if (total_ram > MB(32))
- queue_nr_requests = 128; + queue_nr_requests = (total_ram >> 9) & ~15; /* One per half-megabyte */
+ if (queue_nr_requests < 32)
+ queue_nr_requests = 32;
+ if (queue_nr_requests > 1024)
+ queue_nr_requests = 1024;
So Roy is running with 1024 requests.
The question is (sorry, Roy): does this need fixing?
The only thing which can trigger it is when we have
zillions of threads doing reads (or zillions of outstanding
aio read requests) or when there are a large number of
unmerged write requests in the elevator. It's a rare
case.
If we _do_ need a fix, then perhaps we should just stop
using READA in the readhead code? readahead is absolutely
vital to throughput, and best-effort request allocation
just isn't good enough.
Thoughts?
-
next prev parent reply other threads:[~2002-01-31 20:50 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-31 15:05 Errors in the VM - detailed Roy Sigurd Karlsbakk
2002-01-31 15:44 ` David Mansfield
2002-01-31 20:21 ` Roger Larsson
2002-01-31 20:29 ` Jens Axboe
2002-01-31 20:43 ` Andrew Morton [this message]
2002-01-31 21:37 ` Jens Axboe
2002-02-01 16:05 ` Roy Sigurd Karlsbakk
2002-02-01 16:11 ` Roy Sigurd Karlsbakk
2002-02-01 18:44 ` Roger Larsson
2002-02-01 18:52 ` Roger Larsson
2002-02-01 18:57 ` Jens Axboe
2002-02-02 14:52 ` Roy Sigurd Karlsbakk
2002-02-02 14:43 ` Roy Sigurd Karlsbakk
2002-02-02 14:43 ` Roy Sigurd Karlsbakk
2002-02-02 14:44 ` Jens Axboe
2002-02-02 15:03 ` Roy Sigurd Karlsbakk
2002-02-02 15:06 ` Jens Axboe
2002-02-02 15:22 ` Errors in the VM - detailed (or is it Tux?) Roy Sigurd Karlsbakk
2002-02-02 15:31 ` Errors in the VM - detailed (or is it Tux? or rmap? or those together...) Roger Larsson
2002-02-02 15:38 ` Roy Sigurd Karlsbakk
2002-02-02 16:24 ` Roger Larsson
2002-02-02 16:39 ` Roy Sigurd Karlsbakk
2002-02-02 16:52 ` Roy Sigurd Karlsbakk
2002-02-02 17:29 ` Roger Larsson
2002-02-02 17:45 ` Errors in the VM - detailed Roy Sigurd Karlsbakk
2002-02-01 17:39 ` Denis Vlasenko
[not found] <OF675D993F.933C6CB9-ON88256B52.00595CCC@boulder.ibm.com>
2002-02-01 11:52 ` Roy Sigurd Karlsbakk
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=3C59AC5C.6B6C6066@zip.com.au \
--to=akpm@zip.com.au \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=roger.larsson@norran.net \
--cc=roy@karlsbakk.net \
/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