Date: Wed, 26 Apr 2000 10:07:08 -0700 From: Mike Smith <msmith@freebsd.org> To: Stephen Hocking <shocking@prth.pgs.com> Cc: msmith@freebsd.org, hackers@freebsd.org Subject: Re: Using the boot loader to set maximum memory size? Message-ID: <200004261707.KAA03050@mass.cdrom.com> In-Reply-To: Your message of "Wed, 26 Apr 2000 23:28:48 %2B0800." <200004261528.XAA12560@bloop.craftncomp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Is there any chance of extending the loader so that it can set the memory
> size, rather than hard coding it into the kernel config file? This would be
> quite useful for testing things which like a large amount of memory set aside
> exclusively for hardware's use (I'm thinking of Utah-GLX's DMA buffers for
> G400 cards here).
There are better ways to achieve that, but you can use:
set hw.physmem=<value> MAXMEM (i386 only)
Limits the amount of physical memory space available to
the system to <value> bytes. <value> may have a k, M or G
suffix to indicate kilobytes, megabytes and gigabytes
respectively. Note that the current i386 architecture
limits this value to 4GB.
On systems where memory cannot be accurately probed,
this option provides a hint as to the actual size of
system memory (which will be tested before use).
--
\\ Give a man a fish, and you feed him for a day. \\ Mike Smith
\\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org
\\ and he'll hate you for a lifetime. \\ msmith@cdrom.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004261707.KAA03050>
