diff options
author | David Rientjes <[email protected]> | 2010-09-22 13:04:52 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-09-22 17:22:38 -0700 |
commit | f19e8aa11afa24036c6273428da51949b5acf30c (patch) | |
tree | e768541c3b83ffe488119f77ef178cdf97f9bece /drivers/scsi/mpt2sas | |
parent | 767b68e96993e29e3480d7ecdd9c4b84667c5762 (diff) |
oom: always return a badness score of non-zero for eligible tasks
A task's badness score is roughly a proportion of its rss and swap
compared to the system's capacity. The scale ranges from 0 to 1000 with
the highest score chosen for kill. Thus, this scale operates on a
resolution of 0.1% of RAM + swap. Admin tasks are also given a 3% bonus,
so the badness score of an admin task using 3% of memory, for example,
would still be 0.
It's possible that an exceptionally large number of tasks will combine to
exhaust all resources but never have a single task that uses more than
0.1% of RAM and swap (or 3.0% for admin tasks).
This patch ensures that the badness score of any eligible task is never 0
so the machine doesn't unnecessarily panic because it cannot find a task
to kill.
Signed-off-by: David Rientjes <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas')
0 files changed, 0 insertions, 0 deletions