http://www.berklix.com/~jhs/src/bsd/fixes/freebsd/src/gen/sys/amd64/amd64/machdep.c.REL=8.0-RELEASE.diff FreeBSD is reporting something badly wrong for one weird laptop. I havent sorted it out yet, so this patch is just a comment. *** 8.0-RELEASE/src/sys/amd64/amd64/machdep.c Sat Aug 14 13:59:07 2010 --- new/src/sys/amd64/amd64/machdep.c Sat Aug 14 14:43:21 2010 *************** *** 250,255 **** --- 250,281 ---- if (memsize < ptoa((uintmax_t)cnt.v_free_count)) memsize = ptoa((uintmax_t)Maxmem); printf("real memory = %ju (%ju MB)\n", memsize, memsize >> 20); + /* Note by jhs@@berklix.com + * "real memory" above, is the total of + * "DMI type 17, Memory Device" "Size"s. + * Described by: + * http://dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.0.pdf + * Shown by: + * cd /usr/ports/sysutils/dmidecode ; make install ; + * dmidecode -t 17 | grep Size: + * My strange MiTAC laptop: + * http://www.berklix.com/~jhs/hardware/laptops/novatech-8355/ + * shows: + * Size: 2047 MB # Other items corrupt too in this type 17. + * Size: 2048 MB + * Size: 4080 MB + * hence as 2047 + 2048 + 4080 = 8175, + * dmesg shows: + * real memory = 8572108800 (8175 MB) + * Physical memory chunk(s): + * 0x0000000000001000 - 0x000000000009bfff, + * 634880 bytes ( 155 pages) + * 0x0000000000f1a000 - 0x000000003e19ffff, + * 1026056192 bytes (250502 pages) + * avail memory = 1018191872 (971 MB) + * Why the 8G to 1G reduction I dont know. + * dmesg pages are 4K. + */ /* * Display any holes after the first chunk of extended memory.