real vs. avail memory

David Schultz das at FreeBSD.ORG
Wed Oct 15 23:07:38 PDT 2003


On Sun, Oct 12, 2003, Dag-Erling Smrgrav wrote:
> I've gotten used to the fact that there is a small discrepancy between
> real and available memory, but I was surprised to see the following in
> dmesg on a new P4 system:
> 
> real memory  = 1073676288 (1023 MB)
> avail memory = 1037799424 (989 MB)
> 
> That's a full 40 MB difference...  where does that memory go?  is it
> used for page maps or something like that?

Unless this is related to Peter's recent machdep.c changes, the
difference is probably just random chunks of memory that the BIOS
decided to use.  This could include a shadow copy of the BIOS, the
BIOS data segment, maybe a frame buffer for a cheap integrated
video card, etc.  If you do a verbose boot, you'll get a list of
the chunks of memory that are taken according to the BIOS.


More information about the freebsd-hackers mailing list