Preallocate memory for a program in Linux before it gets started

Posted by Fyg on Stack Overflow See other posts from Stack Overflow or by Fyg
Published on 2010-05-04T22:17:38Z Indexed on 2010/05/05 12:48 UTC
Read the original article Hit count: 225

Hi, folks,

I have a program that repeatedly solves large systems of linear equations using cholesky decomposition. Characterising is that I sometimes need to store the complete factorisation which can exceed about 20 GB of memory. The factorisation happens inside a library that I call. Furthermore, this matrix and the resulting factorisation changes quite frequently and as such the memory requirements as well.

I am not the only person to use this compute-node. Therefore, is there a way to start the program under Linux and preallocate free memory for the process?

Something like: $: prealloc -m 25G ./program

© Stack Overflow or respective owner

Related posts about linux

Related posts about memory