G
Guest
Ive got a time-critical application that runs on Windows XP and Unix. I've
got some timing issues that Ive traced to virtual memory getting paged in and
out. I think I can solve the problem if I can "lock" a certain huge memory
buffer into physical memory, so it is not paged out and in. The rest of my
program (code and other data) can get paged in and out: it is just this one
buffer that is critical.
Unix (some Unixs, at least) have an mlock() function that is working well
for me. Now Id like to do the same thing on Windows.
Question: Is there a technique in Windows XP (Im using Visual C++) to lock
a memory buffer (that my program allocated with malloc() ) into physical
memory so it is never paged out?
Thanks in advance for any replies,
neal
got some timing issues that Ive traced to virtual memory getting paged in and
out. I think I can solve the problem if I can "lock" a certain huge memory
buffer into physical memory, so it is not paged out and in. The rest of my
program (code and other data) can get paged in and out: it is just this one
buffer that is critical.
Unix (some Unixs, at least) have an mlock() function that is working well
for me. Now Id like to do the same thing on Windows.
Question: Is there a technique in Windows XP (Im using Visual C++) to lock
a memory buffer (that my program allocated with malloc() ) into physical
memory so it is never paged out?
Thanks in advance for any replies,
neal