File: linux-nice-level.patch

package info (click to toggle)
killer 0.90-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: perl: 8,785; makefile: 35; sh: 1
file content (27 lines) | stat: -rw-r--r-- 920 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Reduce nice limit from 20 (impossible on Linux as 19 is max) to 9.
 Using nice with no arguments set nice level to 10, and those should
 be allowed to live, I believe.
Author: Petter Reinholdtsen 2008-02-20

--- killer-git.orig/killer	2014-09-28 09:00:40.643976329 +0200
+++ killer-git/killer	2014-09-28 09:00:40.859978137 +0200
@@ -665,8 +665,8 @@
 
 =head2 removeNiceJobs
 
-This function removes all jobs that have a nice value greater than 20.
-That is, they have a lower sceduling priority than the default.  
+This function removes all jobs that have a nice value greater than 9 (default
+is 0, and 10 when running with the "nice" command without specifying nice value).
 
 Example:
 
@@ -684,7 +684,7 @@
 	# Get rid of things not in the "default" scheduling class
 	next unless ($val =~ /^[0-9]+$/);
 
-	if ( int($val) > 20 ) {
+	if ( int($val) > 9 ) {
 	    $self->removeProcessId($key);
 	}
     }