From bd8b7189c5c6be256a95d1793940c6d3866d376a Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Fri, 24 Dec 2010 17:23:27 +0100 Subject: [PATCH 2/3] writeback: change default dirty memory settings Enlarge the default dirty_ratio and dirty_background_ratio limits, in order to reduce the frequency of the writeback writes. The purpose of this patch is to perform less frequent but larger writes, so that the system gives better performance and a better power saving policy, even if the interface will be less smooth (during some large writes the interface may hang). Signed-off-by: Andrea Righi --- mm/page-writeback.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 2c5d792..8e42bca 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -60,7 +60,7 @@ static inline long sync_writeback_pages(unsigned long dirtied) /* * Start background writeback (via writeback threads) at this percentage */ -int dirty_background_ratio = 10; +int dirty_background_ratio = 50; /* * dirty_background_bytes starts at 0 (disabled) so that it is a function of @@ -77,7 +77,7 @@ int vm_highmem_is_dirtyable; /* * The generator of dirty data starts writeback at this percentage */ -int vm_dirty_ratio = 20; +int vm_dirty_ratio = 60; /* * vm_dirty_bytes starts at 0 (disabled) so that it is a function of -- 1.7.1