linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: bdflush synchronous IO on prerelease-diff
Date: Wed, 3 Jan 2001 22:50:00 -0200 (BRST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0101032241500.839-100000@freak.distro.conectiva> (raw)


Hi Linus, 

I've noticed you changed bdflush to do synchronous IO on page_launder().

That seems to be a performance problem, since kflushd will have to wait
for dirty buffers to get synced instead looping on the inactive dirty
list more often. 

Here is a patch to change this. 

--- linux.orig/fs/buffer.c      Wed Jan  3 22:43:24 2001
+++ linux/fs/buffer.c   Thu Jan  4 00:28:50 2001
@@ -2710,7 +2710,7 @@
 
                flushed = flush_dirty_buffers(0);
                if (free_shortage())
-                       flushed += page_launder(GFP_KERNEL, 1);
+                       flushed += page_launder(GFP_KERNEL, 0);
 
                /*
                 * If there are still a lot of dirty buffers around,


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2001-01-04  2:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-04  0:50 Marcelo Tosatti [this message]
2001-01-04  2:38 ` bdflush synchronous IO on prerelease-diff Marcelo Tosatti
2001-01-04  4:51   ` Linus Torvalds
2001-01-04  5:23     ` try_to_swap_out() return value problem? Marcelo Tosatti
2001-01-04  7:42       ` Linus Torvalds
2001-01-04 16:14         ` Rik van Riel
2001-01-04 16:24           ` Linus Torvalds
2001-01-04 16:34             ` Rik van Riel
2001-01-04 16:43               ` Linus Torvalds
2001-01-04 14:32       ` Rik van Riel

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.21.0101032241500.839-100000@freak.distro.conectiva \
    --to=marcelo@conectiva.com.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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;
as well as URLs for NNTP newsgroup(s).