Re: mlock(2), unprivileged users, and RLIMIT_MEMLOCK

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Sun, 13 Apr 2008 00:06:12 -0400
On Sat, 2008-04-12 at 22:16 -0400, Coleman Kane wrote:

> It turns out that in order to use some commands (such as ps, w, top, and
> others), you'll need a memorylocked limit even higher. I have mine at
> around 250 right now and so far it seems to be fine. If you don't do
> this, then these programs will spin in an infinite loop attempting to
> allocate some memory (which the system refuses).

Yeah, as I said, quite a few sysctl handlers user vslock() which wires
memory. Some of the bigger ones are the new procstat sysctls.  I wonder
how gnome-system-monitor and procstat work with a limited
RLIMIT_MEMLOCK.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome_at_FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

Received on Sun Apr 13 2008 - 02:06:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC