mlockall() on freebsd 7.2 + amd64 returns EAGAIN

Konstantin Belousov kostikbel at gmail.com
Fri Apr 13 08:12:05 UTC 2012


On Thu, Apr 12, 2012 at 08:10:26PM -0700, Sushanth Rai wrote:
> > 
> > Then it should be fixed in r190885.
> > 
> 
> Thanks. That works like a charm. 
> 
> mlockall() mostly works now. There is still a, issue in wiring the stacks of multithreaded program when the program uses default stack allocation scheme. Thread library allocates stack for each thread by calling mmap() and sending address and size to be mapped. The kernel adjusts the start address to sgrowsz in  vm_map_stack() and maps at the adjusted address. But the subsequent wiring is done using the original address, which fails. 
> 
Can you, please provide stand-alone example which demostrates the issue ?
I suspect this should have not changed in HEAD.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120413/2f5999bb/attachment.pgp


More information about the freebsd-hackers mailing list