lkml.org 
[lkml]   [2000]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] VM fix for 2.4.0-test9 & OOM handler
On Mon, 9 Oct 2000, Ingo Molnar wrote:

> what do you think about the attached patch? It increases the effective
> priority of a (kernel-) killed process, and initiates a reschedule, so
> that it gets selected ASAP. (except if there are RT processes around.)
> This should make OOM decisions 'visible' much more quickly.

Note that the OOM killer already has this code built-in,
but it may be a good idea to have SIGKILL delivery speeded
up for every SIGKILL ...

regards,

Rik
--
"What you're running that piece of shit Gnome?!?!"
-- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/ http://www.surriel.com/
--- linux/kernel/signal.c.orig Mon Oct 9 12:56:45 2000
+++ linux/kernel/signal.c Mon Oct 9 13:00:20 2000
@@ -569,6 +569,14 @@
spin_unlock_irqrestore(&t->sigmask_lock, flags);
return -ESRCH;
}
+ /*
+ * Special case, kernel is forcing SIGKILL.
+ * Decrease signal delivery latency.
+ */
+ if (sig == SIGKILL && (t->policy == SCHED_OTHER)) {
+ t->counter = MAX_COUNTER;
+ current->need_resched = 1;
+ }

if (t->sig->action[sig-1].sa.sa_handler == SIG_IGN)
t->sig->action[sig-1].sa.sa_handler = SIG_DFL;
\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.047 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site