diff options
| author | San Mehat <[email protected]> | 2010-04-26 15:11:04 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-11-30 20:51:36 +0900 |
| commit | 4964cd41cd966502c1e0c5bc929ed15c175f8218 (patch) | |
| tree | 55c0fab2f53ffef52eef0f1a1c9c6b1afbfc9cfb /tools/perf/scripts/python/netdev-times.py | |
| parent | 3c762a49b12073c96f6a55b4dfc8b6a2a45fedff (diff) | |
staging: android: lowmemorykiller: Don't try to kill the same pid over and over
Under certain circumstances, a process can take awhile to
handle a sig-kill (especially if it's in a scheduler group with
a very low share ratio). When this occurs, lowmemkiller returns
to vmscan indicating the process memory has been freed - even
though the process is still waiting to die. Since the memory
hasn't actually freed, lowmemkiller is called again shortly after,
and picks the same process to die; regardless of the fact that
it has already been 'scheduled' to die and the memory has already
been reported to vmscan as having been freed.
Solution is to check fatal_signal_pending() on the selected
task, and if it's already pending destruction return; indicating
to vmscan that no resources were freed on this pass.
Signed-off-by: San Mehat <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions