bdflush synchronous IO on prerelease-diff

From: Marcelo Tosatti (marcelo@conectiva.com.br)
Date: Wed Jan 03 2001 - 19:50:00 EST


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/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:17 EST