mlock(2) man page errata
dieterbsd at engineer.com
Fri Mar 30 21:17:24 UTC 2012
>> 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
> will hit first, and presumably is the point at which you cannot mlock
> any more pages.
Ok, but "can mlock() the minimum of" is easy to misread as
"can mlock() at least". Perhaps it would be more clear to say
The amount of memory that a process can mlock() is limited by the
per-process RLIMIT_MEMLOCK resource limit, and by a system-wide
``wired pages'' limit.
More information about the freebsd-hackers