From owner-freebsd-hackers Wed Apr 26 9:59:43 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (adsl-63-202-176-132.dsl.snfc21.pacbell.net [63.202.176.132]) by hub.freebsd.org (Postfix) with ESMTP id 1157537BAB0; Wed, 26 Apr 2000 09:59:40 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id KAA03050; Wed, 26 Apr 2000 10:07:08 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Message-Id: <200004261707.KAA03050@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Stephen Hocking Cc: msmith@freebsd.org, hackers@freebsd.org Subject: Re: Using the boot loader to set maximum memory size? In-reply-to: Your message of "Wed, 26 Apr 2000 23:28:48 +0800." <200004261528.XAA12560@bloop.craftncomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 26 Apr 2000 10:07:08 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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= MAXMEM (i386 only) Limits the amount of physical memory space available to the system to bytes. 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