Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Feb 2002 19:35:00 +0900 (JST)
From:      Tod McQuillin <devin@spamcop.net>
To:        Dimitar Peikov <mitko@rila.bg>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: kernel configuration option MAXMEM
Message-ID:  <20020205193204.O419-100000@glass.pun-pun.prv>
In-Reply-To: <20020205122305.116d88af.mitko@rila.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020205193204.O419-100000>