How can you limit the physical memory consumption of a C program from within the source code on a linux 2.6.32 machine?
I need to determine the type of page replacement algorithm the system is using.
The problem is that without limiting the number of pages a process can have in memory, it becomes difficult to analyze the pattern of page faults to determine the page replacement algorithm.
Also, I don't have root access on the machine.
setrlimit(RLIMIT_MEMLOCK, ...)
.
man setrlmit
returns nothing - karlphillip 2012-04-04 19:19
man
can't find it. Try setrlimit
with two 'i' s - Ben Voigt 2012-04-04 19:50