Re: [PATCH 10/10] ksm: change ksm nice level to be 5

From: Balbir Singh
Date: Mon Jul 20 2009 - 00:51:30 EST


* Izik Eidus <ieidus@xxxxxxxxxx> [2009-07-17 20:30:50]:

> From: Izik Eidus <ieidus@xxxxxxxxxx>
>
> ksm should try not to disturb other tasks as much as possible.
>
> Signed-off-by: Izik Eidus <ieidus@xxxxxxxxxx>
> ---
> 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);

Is the 5 arbitrary? Why not +19? What is the intention of this change
- to run when no other task is ready to run?

>
> while (!kthread_should_stop()) {
> if (ksm_run & KSM_RUN_MERGE) {

--
Balbir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/