Tech Journal Back to Tech Journal

How do I limit linux to use only a limited part of the RAM? (for cases of bad memory chips)

Linux kernel param available to limit RAM below "bad" memory:
"mem=XXX"
Like:
"mem=64M" to limit the memory to the first 64MB.

You can also do this by adding the line

append = "mem=128M"

to the appropriate section of your lilo.conf. Example:

image=/boot/vmlinuz
	label=linux
	root=/dev/sda1
	read-only
	append = "mem=128M"

You may also wish to look at "badmem" (http://rick.vanrein.org/linux/badram/) which allows more accurate control of what addresses the OS shouldn't use.

Last updated on 2003-08-06 14:00:00 -0800, by Shalom Craimer

Back to Tech Journal