RE: Overcommitable memory??

From: Jones D (ISaCS) (djones2@glam.ac.uk)
Date: Fri Mar 24 2000 - 09:08:19 EST


> 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/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:13 EST