[lkml]   [2002]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Killing/balancing processes when overcommited

On Fri, 13 Sep 2002, Giuliano Pochini wrote:
> > ...the last of the user who has the most processes?
> No, the last one it's likely to be the sysadmin that
> logged in to try to fix the situation.

Not exactly.

if (we run oom) {
if (we find a malloc() eater) {
kill it;
} else if (there's an ->user<- who forked lots of processes) {
kill some;
} else {
kill randomly, based on some table, or whatever...;

Means we only kill processes if (task->euid) in the second stage. Malloc
eaters are likely to be system jobs (such as data servers), so we better
don't check the UID then.

--./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .-
--/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..-
.- -/---/--/---/.-./.-./---/.--/.-.-.-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.049 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site