Commit 339aa624 authored by Izik Eidus's avatar Izik Eidus Committed by Linus Torvalds
Browse files

ksm: change ksm nice level to be 5

ksm should try not to disturb other tasks as much as possible.
Signed-off-by: default avatarIzik Eidus <>
Cc: Chris Wright <>
Cc: Hugh Dickins <>
Cc: Andrea Arcangeli <>
Cc: Rik van Riel <>
Cc: Wu Fengguang <>
Cc: Balbir Singh <>
Cc: Hugh Dickins <>
Cc: KAMEZAWA Hiroyuki <>
Cc: Lee Schermerhorn <>
Cc: Avi Kivity <>
Cc: Nick Piggin <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 36b2528d
......@@ -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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment