From: Roger Larsson <roger.larsson@norran.net>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: User mode stalls - can it be...?
Date: Wed, 05 Jul 2000 21:26:09 +0200 [thread overview]
Message-ID: <39638BD1.20ECAEB3@norran.net> (raw)
In-Reply-To: <20000705143519.D1290@redhat.com>
"Stephen C. Tweedie" wrote:
>
> Hi,
>
> On Wed, Jul 05, 2000 at 03:29:22AM +0200, Roger Larsson wrote:
> >
> > static void sync_page_buffers(struct buffer_head *bh, int wait)
> > {
> > struct buffer_head * tmp = bh;
> >
> > do {
> > struct buffer_head *p = tmp;
> > tmp = tmp->b_this_page;
> > if (!buffer_locked(p) &&
> > buffer_dirty(p))
> > ll_rw_block(WRITE, 1, &p);
> > if (wait)
> > __wait_on_buffer(p);
> > } while (tmp != bh);
>
> Yikes no. That will make the syncer wait for every single write
> synchronously. It will cause a page full of 1k buffers to be written
> out as four separate 1k writes instead of being streamed. This will
> _kill_ performance.
>
> Cheers,
> Stephen
Well, 'wait' is not set at each call...
But I agree that it was not a wery bright idea...
(I am more awake now :-)
/RogerL
--
Home page:
http://www.norran.net/nra02596/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
prev parent reply other threads:[~2000-07-05 19:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-05 0:54 Roger Larsson
2000-07-05 1:29 ` Roger Larsson
2000-07-05 13:35 ` Stephen C. Tweedie
2000-07-05 19:26 ` Roger Larsson [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=39638BD1.20ECAEB3@norran.net \
--to=roger.larsson@norran.net \
--cc=linux-mm@kvack.org \
--cc=sct@redhat.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