lkml.org 
[lkml]   [1998]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 'disposable' dirty pages [was: Out Of Memory in v. 2.1]
On Wed, Oct 07, 1998 at 10:45:39AM -0400, Stefan Monnier wrote:

> It doesn't. It would only mark free'd pages as disposable. Pages
> that the application is not supposed to use anyway. Of course, I'm
> not quite sure how much better this would be compared to having a
> malloc library that returns unused pages to the OS.

OK - this makes sense now. I still don't see how libc gets told about
this portably though....

> Well, disposing of disposable pages can be done without application
> involvement (at the OOM time) which makes a big difference since
> when you're out of memory, your application's ENOMEM handler would
> probably fail.

We just need to send ENOMEM before it gets super-critical, sysctl
tunable with sane defaults perhaps.

And assumnig thats possible - why not put a ENOMEM handler in libc
that actively returns pages to the kernel?



-cw

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

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