From: "Stephen C. Tweedie" <sct@redhat.com>
To: Heinz Mauelshagen <mauelsha@ez-darmstadt.telekom.de>
Cc: andrea@e-mind.com, linux-kernel@vger.rutgers.edu,
mge@ts1.ez-darmstadt.telekom.de, Stephen Tweedie <sct@redhat.com>
Subject: Re: [patch] dynamic buffer cache hash table size
Date: Mon, 25 Jan 1999 16:55:50 GMT [thread overview]
Message-ID: <199901251655.QAA04607@dax.scot.redhat.com> (raw)
In-Reply-To: <9901222301.AA13563@mailgate99.telekom.de>
Hi,
On Sat, 23 Jan 1999 0:00:23 MET, Heinz Mauelshagen
<mauelsha@ez-darmstadt.telekom.de> said:
> Have to do that test run later, but have a look at the already existing
> one below.
> Ingo Molnar asked me just today for a profile.
> Most of the time is wasted in sync_buffers.
I am not surprised. Currently we have no way to flush completed
writeback buffers off the LOCKED list and back onto the CLEAN list.
sync() is therefore wandering over clean buffers all the time.
Could you try the following patch (against 2.2.0-pre9)? It allows both
sync and bdflush to refile such completed buffers back to the CLEAN
list.
--Stephen
----------------------------------------------------------------
--- fs/buffer.c.~1~ Wed Jan 20 13:35:22 1999
+++ fs/buffer.c Mon Jan 25 15:39:28 1999
@@ -247,6 +248,9 @@
}
wait_on_buffer (bh);
goto repeat2;
+ } else {
+ refile_buffer(bh);
+ goto repeat2;
}
}
@@ -1752,7 +1788,7 @@
#ifdef DEBUG
for(nlist = 0; nlist < NR_LIST; nlist++)
#else
- for(nlist = BUF_DIRTY; nlist <= BUF_DIRTY; nlist++)
+ for(nlist = BUF_LOCKED; nlist <= BUF_DIRTY; nlist++)
#endif
{
ndirty = 0;
@@ -1772,6 +1808,13 @@
/* Clean buffer on dirty list? Refile it */
if (nlist == BUF_DIRTY && !buffer_dirty(bh) && !buffer_locked(bh))
+ {
+ refile_buffer(bh);
+ continue;
+ }
+
+ /* Unlocked buffer on locked list? Refile it */
+ if (nlist == BUF_LOCKED && !buffer_locked(bh))
{
refile_buffer(bh);
continue;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
parent reply other threads:[~1999-01-25 17:02 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <9901222301.AA13563@mailgate99.telekom.de>]
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=199901251655.QAA04607@dax.scot.redhat.com \
--to=sct@redhat.com \
--cc=andrea@e-mind.com \
--cc=linux-kernel@vger.rutgers.edu \
--cc=mauelsha@ez-darmstadt.telekom.de \
--cc=mge@ts1.ez-darmstadt.telekom.de \
/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®