Skip to content

Commit

Permalink
kmemleak: Renice the scanning thread to +10
Browse files Browse the repository at this point in the history
This is a long-running thread but not high-priority. So it makes sense
to renice it to +10.

Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
ctmarinas committed Jul 7, 2009
1 parent faf80d6 commit bf2a76b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf2a76b

Please sign in to comment.