Date: Mon, 28 Feb 2005 13:59:42 -0800 From: Wes Peters <wes@softweyr.com> To: Wes Peters <wes@freebsd.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/i386/i386 machdep.c src/sys/kern kern_mib.c src/sys/sys sysctl.h systm.h Message-ID: <200502281359.42589.wes@softweyr.com> In-Reply-To: <200502282142.j1SLgvhh067909@repoman.freebsd.org> References: <200502282142.j1SLgvhh067909@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 hardware. -- "Where am I, and what am I doing in this handbasket?" Wes Peters wes@softweyr.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502281359.42589.wes>