aboutsummaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorIzik Eidus <ieidus@redhat.com>2009-09-21 20:02:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-22 10:17:31 -0400
commit339aa62469f65daf38a01d6c098b5f3ff8016653 (patch)
treefa38bc8d54fe98b8b1eadfdd0b58831c3ce40d76 /mm/ksm.c
parent36b2528dc1819dc783f69917ac20e66a678b3479 (diff)
ksm: change ksm nice level to be 5
ksm should try not to disturb other tasks as much as possible. Signed-off-by: Izik Eidus <ieidus@redhat.com> Cc: Chris Wright <chrisw@redhat.com> Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Rik van Riel <riel@redhat.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com> Cc: Avi Kivity <avi@redhat.com> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/ksm.c')
-rw-r--r--mm/ksm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index 0113f15ff43b..cf072c54df32 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -1263,7 +1263,7 @@ static void ksm_do_scan(unsigned int scan_npages)
1263 1263
1264static int ksm_scan_thread(void *nothing) 1264static int ksm_scan_thread(void *nothing)
1265{ 1265{
1266 set_user_nice(current, 0); 1266 set_user_nice(current, 5);
1267 1267
1268 while (!kthread_should_stop()) { 1268 while (!kthread_should_stop()) {
1269 if (ksm_run & KSM_RUN_MERGE) { 1269 if (ksm_run & KSM_RUN_MERGE) {