lkml.org 
[lkml]   [2000]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Overcommitable memory??
Date

> Some system call "get_free_pages", maybe... If it's getting low,
> don't do <something> you were about to do??
>
> This requires cooperative tasks, but many programs could be
> "taught" to cooperate, just put such a call into malloc().

AmigaOS (and probably some others) has/had a function where you could
install a low-memory handler for each process.
When the system ran low on ram, it would iterate through the
process table telling a process to free something.
As an example, a text-editor could then save undo buffers etc to
tmp workspace until needed, or a graphical program could purge
off-screen buffers etc...

This does of course mean that a lot of userspace apps need rewriting
to support the new feature, and not all apps are written in a way that
they can discard unused parts (even temporarily).

regards,

Dave.

-
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:57    [W:0.031 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site