lkml.org 
[lkml]   [2009]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 10/10] ksm: change ksm nice level to be 5
On Fri, 17 Jul 2009, Izik Eidus wrote:
> From: Izik Eidus <ieidus@redhat.com>
>
> ksm should try not to disturb other tasks as much as possible.
>
> Signed-off-by: Izik Eidus <ieidus@redhat.com>

Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>

> ---
> mm/ksm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/ksm.c b/mm/ksm.c
> index 75d7802..4afe345 100644
> --- a/mm/ksm.c
> +++ b/mm/ksm.c
> @@ -1270,7 +1270,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) {
> --
> 1.5.6.5


\
 
 \ /
  Last update: 2009-07-19 15:53    [W:0.230 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site