[PATCH] kmemleak: Mark nice +10

From: Catalin Marinas
Date: Wed Jul 01 2009 - 05:18:57 EST


> The background scanning thread could probably also be reniced
> to +10.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
mm/kmemleak.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index e766e1d..6006553 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1039,6 +1039,7 @@ static int kmemleak_scan_thread(void *arg)
static int first_run = 1;

pr_info("Automatic memory scanning thread started\n");
+ set_user_nice(current, 10);

/*
* Wait before the first scan to allow the system to fully initialize.
--
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/