Locking shared memory
Mike Kearey
mkearey at redhat.com
Sat Mar 3 01:43:29 UTC 2007
Allen, Jack wrote:
> Michael:
> Thanks for the information. After I posted the last update I did
> some more testing related to page boundaries. I did ps =
> sysconf(_SC_PAGESIZE) which set ps to 4096. I then logged the results of
> (addr % ps) for each address and (size % ps) for each size before
> calling mlock(addr,size). Both calulations logged 0, which means the
> address starts on a page boundary and ends on a page boundary. So I am
> still at a loss as to why only the last segment fails.
>
> Any more thoughts or things to check from you or anybody?
>
> Thanks:
> Jack Allen
>
>
Send us some example code, and I shall have a look into it?
Cheers
More information about the redhat-list
mailing list