05-10-04 10:44 PM
say we have a small program that is about 16k
and we want to ensure that the entire thing is in memory
so we use mlock.
mlock expects an address followed by the number of bytes
to ensure in memory. What address should I get that would resemble
the starting address of my program? And should I get the size
of the executable and add that to the starting address for
the len size?
also, what happens with data passed to functions in
shared libraries? is it possible for data passed to
functions in shared libraries to end up in swap, when
using mlock?
[ Post a follow-up to this message ]
|