Build an erlang computer
Thu Jan 26 11:42:01 CET 2006
"Joe Armstrong \(AL/EAB\)" <joe.armstrong@REDACTED> writes:
> Question: Is there a simple program to make main memory totally
> unavailable in my linux system? - I'd like to boot the system
> saying "use only 100K of memory" or "use only 200K or memory"
> (I currently have 512K) so I can measure the effect of different
> memory sizes on performance.
512k, that reminds me of my Amiga days. ;)
You can use the kernel command line arguments for this, boot e.g. with
mem=128M or mem=64M. If you don't want to reboot your main system, you
might try virtualization with User Mode Linux, Xen or the like.
Another approach would be to lock portions of memory into RAM using
mlock(2) or mlockall(2).
The last thing one knows in constructing a work is what to put first.
-- Blaise Pascal
More information about the erlang-questions