Is there any way to specify that you want something loaded to memory and not to the page file?
I have an array which should easily fit in memory, 600mb on 2056, but it insists on loading it to the page file.
Any help?
This is a discussion on Avoiding Page File within the C Programming forums, part of the General Programming Boards category; Is there any way to specify that you want something loaded to memory and not to the page file? I ...
Is there any way to specify that you want something loaded to memory and not to the page file?
I have an array which should easily fit in memory, 600mb on 2056, but it insists on loading it to the page file.
Any help?
Unix/gcc
You really should let the OS manage memory.
Look into using mmap() to map the file into your process's address space.
gg