Date: Mon, 03 Jun 2013 15:16:56 +0200 From: Andre Oppermann <oppermann@networx.ch> To: Gleb Smirnoff <glebius@FreeBSD.org> Cc: arch@FreeBSD.org Subject: Re: aio_mlock(2) system call Message-ID: <51AC9748.5070908@networx.ch> In-Reply-To: <20130603100618.GH67170@FreeBSD.org> References: <20130603100618.GH67170@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51AC9748.5070908>