Making OOM-killer more informative

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Currently the OOM-killer reports the process PID and name it killed.

This can be useful information to determine which process was
responsible for the OOM-situation, however the logging is not very
informative if the process is an interpreter used for various tasks.

I figured it'd be useful to also print the cmdline for the killed process.

I took a first stab and would be interested to hear what you think:
http://bzzt.net/~arnouten/oom_informative.patch

Some questions:
* I took the code for getting the cmdline-string from fs/proc/base.c. Of
course it'd be neater not to copy-paste this code. Should it be moved to
a place where both fs/proc and mm can 'see' it? What would be a suitable
place?
* What about the buffer size for the oom_pid_cmdline()-function? Is
there a known upper bound for the length of a commandline?
* Anything else?


Arnout

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux