Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2012 17:17:15 -0400
From:      "Dieter BSD" <dieterbsd@engineer.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: mlock(2) man page errata
Message-ID:  <20120330211716.155060@gmx.com>

next in thread | raw e-mail | index | archive | help
>> 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
something like

 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120330211716.155060>