From 172e7972f55437c6e5e16106ae5aba7464418d36 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Tue, 29 May 2012 16:13:22 +0200 Subject: [PATCH] reniced: Runtime adjusted to 300 sec. Nicelevel 15. --- reniced/reniced | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reniced/reniced b/reniced/reniced index 0f220b6..6c2ee1c 100755 --- a/reniced/reniced +++ b/reniced/reniced @@ -1,7 +1,7 @@ #!/usr/bin/perl -w init_whitelist(); -renice_all(60); +renice_all(5*60); sub init_whitelist { my @whitelist_commands; @@ -66,7 +66,7 @@ sub mail { '', " @command", '', - "has been using more than $cpu_seconds CPU seconds. I have therefore niced it to nice level 19.", + "has been using more than $cpu_seconds CPU seconds. I have therefore niced it to nice level 15.", '', 'There is no harm done, this is purely for your information so you know what happened and how', 'to avoid it.', @@ -106,7 +106,7 @@ sub user_pid_list { sub renice { my @pid = @_; - `renice -n 19 -p @pid 2>&1`; + `renice -n 15 -p @pid 2>&1`; return $?; }