Re: [PATCH] oom: add uid to "Killed process" message

From: David Rientjes
Date: Mon Jun 20 2011 - 17:09:32 EST

On Mon, 20 Jun 2011, Frantisek Hrbata wrote:

> Add user id to the oom killer's "Killed process" message, so the user of the
> killed process can be identified.

Notified in what way? Unless you are using the memory controller, there's
no userspace notification that an oom event has happened so nothing would
know to scrape the kernel log for this information.

We've had a long-time desire for an oom notifier, not only at the time of
oom but when approaching it with configurable thresholds, that would
wakeup a userspace daemon that might be polling on notifier. That seems
more useful for realtime notification of an oom event rather than relying
on the kernel log?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at