Re: mlock(2) man page errata

2012-03-30 Thread Dieter BSD
>> mlock(2) says: >> >> > A single process can mlock() the minimum of a system-wide >> > ``wired pages'' limit and the per-process RLIMIT_MEMLOCK >> > resource limit. >> >> Shouldn't this say maximum rather than minimum? > > I don't think so.  The minimum of the two would be the limit that you > wi

Re: mlock(2) man page errata

2012-03-29 Thread Ryan Stone
On Thu, Mar 29, 2012 at 3:17 PM, Dieter BSD wrote: > mlock(2) says: > >> A single process can mlock() the minimum of a system-wide >> ``wired pages'' limit and the per-process RLIMIT_MEMLOCK >> resource limit. > > Shouldn't this say maximum rather than minimum? I don't think so. The minimum of t

mlock(2) man page errata

2012-03-29 Thread Dieter BSD
mlock(2) says: > A single process can mlock() the minimum of a system-wide > ``wired pages'' limit and the per-process RLIMIT_MEMLOCK > resource limit. Shouldn't this say maximum rather than minimum? > [EAGAIN] Locking the indicated range would exceed either the > system or per-process limit for