Subject: pthread_create and mlock
To: None <current-users@netbsd.org>
From: Sourath Roy <sourath@gmail.com>
List: current-users
Date: 12/12/2006 22:10:11
------=_Part_162429_11538002.1165941611861
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
While running my application on NetBSD, I often see a problem where
pthread_create() returns EAGAIN. Looking through the pthread_create()
function implementation it appeared to me that the mlock() fails.
Now the "locked memory" limit on my system is high enough for the
pthread_create() to fail on that. Is it truly the mlock failure, or there is
some known issues with pthread_create()?

Also, when I try to change the per process MEMLOCK limit to higher than the
system default, I don't see any real increase. Is it limited by the wired
memory? Is there a system call on NetBSD that would tell me the wired memory
on the system?

Thanks in advance!

-- Sourath

------=_Part_162429_11538002.1165941611861
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,<br>
While running my application on NetBSD, I often see a problem where
pthread_create() returns EAGAIN. Looking through the pthread_create()
function implementation it appeared to me that the mlock() fails. <br>
Now the &quot;locked memory&quot; limit on my system is high enough for the
pthread_create() to fail on that. Is it truly the mlock failure, or
there is some known issues with pthread_create()?<br>
<br>
Also, when I try to change the per process MEMLOCK limit to higher than
the system default, I don't see any real increase. Is it limited by the
wired memory? Is there a system call on NetBSD that would tell me the
wired memory on the system?<br>
<br>
Thanks in advance!<br>
<br>
-- Sourath<br>

------=_Part_162429_11538002.1165941611861--