diff options
author | Colin Cross <ccross@android.com> | 2013-05-03 14:57:29 -0700 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-13 14:47:37 +1000 |
commit | 60a864d62b964dbde426df2f53b053c13cfbe50f (patch) | |
tree | 41f1346933da712d66a1461ec3a132d77e176c51 /drivers/scsi/mpt2sas | |
parent | fd6a3ac352f2be6e0894c8d8cba2b6646b53cf9d (diff) | |
download | kernel_samsung_smdk4412-60a864d62b964dbde426df2f53b053c13cfbe50f.tar.gz kernel_samsung_smdk4412-60a864d62b964dbde426df2f53b053c13cfbe50f.tar.bz2 kernel_samsung_smdk4412-60a864d62b964dbde426df2f53b053c13cfbe50f.zip |
lowmemorykiller: make default lowmemorykiller debug message useful
lowmemorykiller debug messages are inscrutable and mostly useful
for debugging the lowmemorykiller, not explaining why a process
was killed. Make the messages more useful by prefixing them
with "lowmemorykiller: " and explaining in more readable terms
what was killed, who it was killed for, and why it was killed.
The messages now look like:
[ 76.997631] lowmemorykiller: Killing 'droid.gallery3d' (2172), adj 1000,
[ 76.997635] to free 27436kB on behalf of 'kswapd0' (29) because
[ 76.997638] cache 122624kB is below limit 122880kB for oom_score_adj 1000
[ 76.997641] Free memory is -53356kB above reserved
A negative number for free memory above reserved means some of the
reserved memory has been used and is being regenerated by kswapd,
which is likely what called the shrinkers.
Change-Id: I1fe983381e73e124b90aa5d91cb66e55eaca390f
Signed-off-by: Colin Cross <ccross@android.com>
Conflicts:
drivers/staging/android/lowmemorykiller.c
Diffstat (limited to 'drivers/scsi/mpt2sas')
0 files changed, 0 insertions, 0 deletions