Skip to contentSkip to conversation

mem size at bootup

DISCUSSION Yaoping Ruan 3 participants 3 messages Oct 24, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

could anybody tell me if there's any option to specify the size of memory I want to use in Linux. We have a box with 4GB memory but we would like to run some experiment with only 2GB memory. Is there any option like the "hw.physmem" in FreeBSD?

Thanks a lot

- Yaoping Ruan

#1 lore raw
Quoted 4 lines · Yaoping Ruan

could anybody tell me if there's any option to specify the size of memory I want to use in Linux. We have a box with 4GB memory but we would like to run some experiment with only 2GB memory. Is there any option like the "hw.physmem" in FreeBSD?

mem= on the kernel command-line.

In lilo, you do something like this:
image=/boot/vmlinuz-2.4.20

	label=2420
	read-only
	optional
	append="mem=2G"
Signature · 2 lines
Dave Hansen
[email protected]
#2 lore raw
In reply to Yaoping Ruan
Quoted 10 lines · Yaoping Ruan

Hello,

could anybody tell me if there's any option to specify the size of memory I want to use in Linux. We have a box with 4GB memory but we would like to run some experiment with only 2GB memory. Is there any option like the "hw.physmem" in FreeBSD?

Thanks a lot

- Yaoping Ruan

	mem=16M

...on the LILO command-line will tell Linux to use only 16 megabytes. You hit the [Alt] key during boot to get to the LILO command-line. Then you can hit the [Tab] key to see the available systems to boot.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.