From owner-freebsd-stable Tue Feb 5 2:35:14 2002 Delivered-To: freebsd-stable@freebsd.org Received: from glass.dnsart.com (Q102228.ppp.dion.ne.jp [61.204.102.228]) by hub.freebsd.org (Postfix) with ESMTP id 3DF4E37B405 for ; Tue, 5 Feb 2002 02:35:09 -0800 (PST) Received: from localhost ([127.0.0.1]) by glass.dnsart.com with esmtp (Exim 3.34 #1) id 16Y2wI-00066Z-00; Tue, 05 Feb 2002 19:35:02 +0900 Date: Tue, 5 Feb 2002 19:35:00 +0900 (JST) From: Tod McQuillin X-X-Sender: devin@glass.pun-pun.prv To: Dimitar Peikov Cc: freebsd-stable@freebsd.org Subject: Re: kernel configuration option MAXMEM In-Reply-To: <20020205122305.116d88af.mitko@rila.bg> Message-ID: <20020205193204.O419-100000@glass.pun-pun.prv> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 5 Feb 2002, Dimitar Peikov wrote: > Yesterday I've upgrade my hardware from P3 766 -> P4 1.7, but the presence > of option MAXMEM in my kernel config causes boot to hang. I have on both > machines 256MB RAM but have some needs to execute programs using 1G > virtual memory. That's why I've added MAXDSIZE, DLFDSIZE, MAXSSIZE into my > kernel config and MAXMEM too. It's strange that on my old machine this > configuration worked! I've being using 4.5-stable since yesterday. > > options MAXMEM="(512*1024)" I think you are misunderstanding the purpose/meaning of MAXMEM. Please read these comments from the LINT kernel configuration file: # MAXMEM specifies the amount of RAM on the machine; if this is not # specified, FreeBSD will first read the amount of memory from the CMOS # RAM, so the amount of memory will initially be limited to 64MB or 16MB # depending on the BIOS. If the BIOS reports 64MB, a memory probe will # then attempt to detect the installed amount of RAM. If this probe # fails to detect >64MB RAM you will have to use the MAXMEM option. # The amount is in kilobytes, so for a machine with 128MB of RAM, it would # be 131072 (128 * 1024). MAXMEM tells FreeBSD how much physical memory you have installed in your machine. The only reason to use it is if it is probing the memory incorrectly. If you set MAXMEM to a value higher than the amount of memory actually installed, it is no wonder that FreeBSD crashes as soon as it tries to access this nonexistent memory. -- Tod McQuillin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message