Re: fork: out of memory

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 29 Nov 1997 11:39:02 +0000 (GMT)


> __get_free_pages would fail the improved version probably doesn't fail
> but is only a bit slower than a normal __get_free_pages call. There won't
> be any user-visible changes except this.
>
> What do the kernel gurus think about this proposal? Have I overlooked
> something?

Two things.

Firstly there is no real way to say

swap_out(physical_address);

and work back to the virtual addresses and remap the pages.

Secondly even if you do so there is no way to be sure the next page
to the one you picked isnt locked in memory right now