Magellan Linux

Contents of /trunk/kernel26-alx/patches-2.6.17-r7/0026-2.6.17-mm-set_zero_dirty_ratio.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 199 - (show annotations) (download)
Fri May 18 11:04:36 2007 UTC (16 years, 11 months ago) by niro
File size: 1908 byte(s)
-import

1 Set dirty_ratio to 0 by default. This makes processes doing file writes more
2 responsible for any I/O induced delays by throttling them very early instead
3 of handing off the workload to a pdflush thread. This improves latencies for
4 small writes and any reads in the presence of heavy writes. It also helps
5 preserve more mapped pages and useful pagecache by not ever having large
6 amounts of dirty data taking up ram.
7
8 Signed-off-by: Con Kolivas <kernel@kolivas.org>
9
10 ---
11 mm/page-writeback.c | 12 ++++++------
12 1 files changed, 6 insertions(+), 6 deletions(-)
13
14 Index: linux-ck-dev/mm/page-writeback.c
15 ===================================================================
16 --- linux-ck-dev.orig/mm/page-writeback.c 2006-06-18 15:25:16.000000000 +1000
17 +++ linux-ck-dev/mm/page-writeback.c 2006-06-18 15:25:22.000000000 +1000
18 @@ -64,33 +64,33 @@ static inline long sync_writeback_pages(
19 /*
20 * Start background writeback (via pdflush) at this percentage
21 */
22 -int dirty_background_ratio = 10;
23 +int dirty_background_ratio __read_mostly = 10;
24
25 /*
26 * The generator of dirty data starts writeback at this percentage
27 */
28 -int vm_dirty_ratio = 40;
29 +int vm_dirty_ratio __read_mostly;
30
31 /*
32 * The interval between `kupdate'-style writebacks, in jiffies
33 */
34 -int dirty_writeback_interval = 5 * HZ;
35 +int dirty_writeback_interval __read_mostly = 5 * HZ;
36
37 /*
38 * The longest number of jiffies for which data is allowed to remain dirty
39 */
40 -int dirty_expire_interval = 30 * HZ;
41 +int dirty_expire_interval __read_mostly = 30 * HZ;
42
43 /*
44 * Flag that makes the machine dump writes/reads and block dirtyings.
45 */
46 -int block_dump;
47 +int block_dump __read_mostly;
48
49 /*
50 * Flag that puts the machine in "laptop mode". Doubles as a timeout in jiffies:
51 * a full sync is triggered after this time elapses without any disk activity.
52 */
53 -int laptop_mode;
54 +int laptop_mode __read_mostly;
55
56 EXPORT_SYMBOL(laptop_mode);
57