cvs commit: src/sys/i386/i386 machdep.c src/sys/kern kern_mib.c src/sys/sys sysctl.h systm.h

Wes Peters wes at
Mon Feb 28 21:59:50 GMT 2005

On Monday 28 February 2005 01:42 pm, Wes Peters wrote:
> wes         2005-02-28 21:42:57 UTC
>   FreeBSD src repository
>   Modified files:
>     sys/i386/i386        machdep.c
>     sys/kern             kern_mib.c
>     sys/sys              sysctl.h systm.h
>   Log:
>   Add a sysctl that records the amount of physical memory in the machine.

In case you're wondering why anyone would want this, vs. the already
existing hw.physmem, consider:

 hw.physmem: 526737408
 hw.usermem: 509272064
 hw.realmem: 535691264

The difference between 'realmem' and 'physmem' should always be the same for 
a given device, unless BIOS settings have altered the memory map somehow.  
We use this as a quick check to verify the BIOS settings haven't been 
altered (at least enough to change the memory map).  You'd be astonished 
how much the physmem setting can bounce around on supposedly identical 

         "Where am I, and what am I doing in this handbasket?"

Wes Peters                                              wes at

More information about the cvs-all mailing list