]> git.baikalelectronics.ru Git - kernel.git/commit
rlimits: Print more information when CPU/RT limits are exceeded
authorArun Raghavan <arun@arunraghavan.net>
Wed, 1 Mar 2017 14:53:09 +0000 (20:23 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 13 Mar 2017 20:32:15 +0000 (21:32 +0100)
commitdfad8aafbaa91388184a04c818fae9c9dde0125d
tree10c31f31e93c29475e2a443db27109238f89aa6b
parentb925dc0fa3cd58cb6756a936c80f94f655a27964
rlimits: Print more information when CPU/RT limits are exceeded

When a process is sent a SIGKILL because it exceeded CPU or RT limits,
the cause may not be obvious in userspace -- daemonised processes just
get killed, and even foreground process just see a 'Killed' message. The
lack of any information on why this might be happening in logs can be
confusing to users who are not aware of this mechanism.

Add messages which dump the process name and tid in dmesg when a process
exceeds its CPU or RT limits (soft and hard) in order to make it clearer to
people debugging such issues.

Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
Link: http://lkml.kernel.org/r/20170301145309.27214-1-arun@arunraghavan.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/posix-cpu-timers.c