aio_mlock(2) system call

Andre Oppermann oppermann at networx.ch
Mon Jun 3 13:17:10 UTC 2013


On 03.06.2013 12:06, Gleb Smirnoff wrote:
>    Hello!
>
>    This patch brings a new system call - aio_mlock(2). The idea is
> quite clear from its name: it performs mlock(2), which can take
> a long time if pages aren't resident, under aio(4) control.
>
>    The patch is quite simple, and non-desctructive. Here it is
> for your review.

I didn't immediately see something about permissions to prevent normal
users from easily exhausting all kernel memory.

Since this is likely to be only used on dedicated servers it may be
sufficient to have a global sysctl allowing its use for non-root users.

-- 
Andre



More information about the freebsd-arch mailing list