public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mem size at bootup
@ 2003-10-24 19:59 Yaoping Ruan
  2003-10-24 20:25 ` Dave Hansen
  2003-10-24 20:49 ` Richard B. Johnson
  0 siblings, 2 replies; 3+ messages in thread
From: Yaoping Ruan @ 2003-10-24 19:59 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mem size at bootup
  2003-10-24 19:59 mem size at bootup Yaoping Ruan
@ 2003-10-24 20:25 ` Dave Hansen
  2003-10-24 20:49 ` Richard B. Johnson
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Hansen @ 2003-10-24 20:25 UTC (permalink / raw)
  To: Yaoping Ruan; +Cc: Linux Kernel Mailing List

On Fri, 2003-10-24 at 12:59, Yaoping Ruan wrote:
> 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"

-- 
Dave Hansen
haveblue@us.ibm.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mem size at bootup
  2003-10-24 19:59 mem size at bootup Yaoping Ruan
  2003-10-24 20:25 ` Dave Hansen
@ 2003-10-24 20:49 ` Richard B. Johnson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard B. Johnson @ 2003-10-24 20:49 UTC (permalink / raw)
  To: Yaoping Ruan; +Cc: linux-kernel

On Fri, 24 Oct 2003, Yaoping Ruan wrote:

> 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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-24 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-24 19:59 mem size at bootup Yaoping Ruan
2003-10-24 20:25 ` Dave Hansen
2003-10-24 20:49 ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox