[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: mlock(2) man page errata
From:       "Dieter BSD" <dieterbsd () engineer ! com>
Date:       2012-03-30 21:17:15
Message-ID: 20120330211716.155060 () gmx ! com
[Download RAW message or body]

>> 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.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic