:: [DNG] programmatic swap control
Top Page
Delete this message
Reply to this message
Author: Didier Kryn
Date:  
To: dng@lists.dyne.org
New-Topics: Re: [DNG] Disabling daemon/process swap
Subject: [DNG] programmatic swap control
    It is possible to disable the current process' swapping
programmatically.

    You would need to write a very small wrapper application which
would call

    mlockall(MCL_CURRENT | MCL_FUTURE);

    then execute your daemon, by calling execve() or a wrapper. *Do
not* fork another process before execve.

--     Didier