Frequently Asked Questions for FreeBSD 2.X : Troubleshooting : I have 128 MB of RAM but the system only uses 64 MB.
Previous: When I boot, the screen goes black and loses sync!
Next: FreeBSD 2.0 panics with ``kmem_map too small!''

4.11. I have 128 MB of RAM but the system only uses 64 MB.

Due to the manner in which FreeBSD gets the memory size from the BIOS, it can only detect 16 bits worth of Kbytes in size (65535 Kbytes = 64MB) (or less... some BIOSes peg the memory size to 16M). If you have more than 64MB, FreeBSD will attempt to detect it; however, the attempt may fail.

To work around this problem, you need to use the kernel option specified below. There is a way to get complete memory information from the BIOS, but we don't have room in the bootblocks to do it. Someday when lack of room in the bootblocks is fixed, we'll use the extended BIOS functions to get the full memory information...but for now we're stuck with the kernel option.

options "MAXMEM=<n>"

Where n is your memory in Kilobytes. For a 128 MB machine, you'd want to use 131072.


Frequently Asked Questions for FreeBSD 2.X : Troubleshooting : I have 128 MB of RAM but the system only uses 64 MB.
Previous: When I boot, the screen goes black and loses sync!
Next: FreeBSD 2.0 panics with ``kmem_map too small!''