Swapping places in 64-bit Linux

I have 64 bit Linux (SUSE 10) dual processor. When I start my process it uses about 4G virtual memory. Only 3G is resident memory. Stopping around 9G memory is free. How do I load this 1 G also into RAM? Why is it still in swap space, why can't the kernel load this into RAM when all RAM is available.

Rahul

+2


source to share


1 answer


The kernel can load data into memory. However, when not in use, he wants to write them to the paging file.



If you absolutely need data in memory, you should either disable all swap files (using swapoff (8)) or lock specific pages in memory using mlock or mlockall.

+1


source







All Articles