What happens when you run out of ram with mlockall set?
Posted
by James Dean
on Stack Overflow
See other posts from Stack Overflow
or by James Dean
Published on 2009-07-27T21:01:20Z
Indexed on
2010/04/10
2:03 UTC
Read the original article
Hit count: 374
I am working on a C++ application that requires a large amounts of memory for a batch run. (> 20gb)
Some of my customers are running into memory limits where sometimes the OS starts swapping and the total run time doubles or worse.
I have read that I can use the mlockall to keep the process from being swapped out. What would happen when the process memory requirements approaches or exceeds the the available physical memory in this way?
I guess the answer might be OS specific so please list the OS in your answer.
© Stack Overflow or respective owner