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 <[email protected]>
Cc: Chris Wright <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Lee Schermerhorn <[email protected]>
Cc: Avi Kivity <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Izik Eidus 2009-09-21 17:02:07 -07:00 • committed by Linus Torvalds
commit 339aa62469

View file

@ -1263,7 +1263,7 @@ static void ksm_do_scan(unsigned int scan_npages)
static int ksm_scan_thread(void *nothing)
{
set_user_nice(current, 0);
set_user_nice(current, 5);
while (!kthread_should_stop()) {
if (ksm_run & KSM_RUN_MERGE) {