Linux-kernel mailing list archive 1997-47,: Re: fork: out of memory

# Re: fork: out of memory

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

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Lorenzo M. Catucci: "Re: Linux privs (was: Re: proc exploit)"
- Previous message: Urs Thuermann: "Re: small patch for setting RTC on Linux/intel (fwd)"
- Next in thread: Theodore Y. Ts'o: "Re: fork: out of memory"
- Reply: Theodore Y. Ts'o: "Re: fork: out of memory"

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

- Next message: Lorenzo M. Catucci: "Re: Linux privs (was: Re: proc exploit)"
- Previous message: Urs Thuermann: "Re: small patch for setting RTC on Linux/intel (fwd)"
- Next in thread: Theodore Y. Ts'o: "Re: fork: out of memory"
- Reply: Theodore Y. Ts'o: "Re: fork: out of memory"