On Mon, 2005-12-19 12:42:31 +0100, Marc-Jano Knopp <[email protected]> wrote: > On Mon, 19 Dec 2005 at 02:21 (-0800), Andrew Morton wrote: > > Marc-Jano Knopp <[email protected]> wrote: > > > A year ago, I wrote a small mlockall()-wrapper ("noswap") to make > > > certain programs unswappable. It used to work perfectly, until I > > > upgraded to kernel 2.6.x (2.6.13.1 in my case, but that shouldn't > > > matter), which made the mlockall() execute without error, but also > > > without any effect (the "L" in the STAT column of "ps axf" which > > > indicates locked pages is missing). > > Prior to 2.4.18 the kernel would allow MCL_FUTURE to propagate into child > > processes. But that was disabled in 2.4.18 and later. I seem to recall > > that we did this because inheriting MCL_FUTURE is standards-incorrect. > > Oh! So how can I make programs unswappable with kernel 2.6.x then? That would mean that you cannot just exec() another program that will also be mlockall()ed. The new program has to do that on its own... MfG, JBG -- Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Attachment:
signature.asc
Description: Digital signature
- Follow-Ups:
- Re: [Bug] mlockall() not working properly in 2.6.x
- From: Alan Cox <[email protected]>
- Re: [Bug] mlockall() not working properly in 2.6.x
- References:
- [Bug] mlockall() not working properly in 2.6.x
- From: Marc-Jano Knopp <[email protected]>
- Re: [Bug] mlockall() not working properly in 2.6.x
- From: Andrew Morton <[email protected]>
- Re: [Bug] mlockall() not working properly in 2.6.x
- From: Marc-Jano Knopp <[email protected]>
- [Bug] mlockall() not working properly in 2.6.x
- Prev by Date: Re: [PATCH rc5-rt2 3/3] plist: convert the code to new implementation
- Next by Date: reboot from 2.6.15-rc5 wasn't clean
- Previous by thread: Re: [Bug] mlockall() not working properly in 2.6.x
- Next by thread: Re: [Bug] mlockall() not working properly in 2.6.x
- Index(es):