lkml.org 
[lkml]   [2000]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] VM fix for 2.4.0-test9 & OOM handler
Here's an idea, farfetched as it may be.

Page the entire process out to disk into a user defined area, SIGHALT it and use
printk or a kthread/userproc to notify the user that something was kicked out of
the sandbox for playing bad. The user can add more swap if desired, then use a
userland tool w/ the kthread/userproc to pop it back into memory or destroy it
and SIGCONT.

This allows the user to make almost all decisions about what gets killed and
what remains running. Necessarily if you're out of disk space as well we'll
have to resort to simply killing. Hmm, sounds like 2.5.

-d

Jamie Lokier wrote:

> Kurt Garloff wrote:
> > I could not agree more. Normally, you'd better kill a foreground task
> > (running nice 0) than selecting one of those background jobs for some
> > reasons:
> > * The foreground job can be restarted by the interactive user
> > (Most likely, it will be only netscape anyway)
> > * The background job probably is the more useful one which has been running
> > since a longer time (computations, ...)
>
> Ick. A background job that's been running for a long time will be saved
> by that, as Rik pointed out.
>
> If I've got a background process running for 30 minutes, and a Netscape
> with 5 windows open that I'm using (for long or not, doesn't matter),
> guess which one I'd rather died? Not Netscape -- I'm using that and
> I'll never remember how to find those 5 windows again if it just dies.
>
> -- Jamie
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

--
"There is a natural aristocracy among men. The grounds of this are
virtue and talents", Thomas Jefferson [1742-1826], 3rd US President



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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