Re: mlock(1)

From: Andrew Morton
Date: Fri Sep 24 2004 - 16:21:05 EST


Jeff Garzik <jgarzik@xxxxxxxxx> wrote:
>
> How feasible is it to create an mlock(1) utility, that would allow
> priveleged users to execute a daemon such that none of the memory the
> daemon allocates will ever be swapped out?

It used to be the case that mlockall(MCL_FUTURE) was inherited across fork,
which would do what you want.

But that was a bug and we fixed it a couple of years back, sadly.

I guess we could add a new mlockall mode which _is_ inherited across fork.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/