hw.physmem (loader.conf and sysctl)

Dmitry Krivenok krivenok.dmitry at gmail.com
Fri Mar 4 14:36:43 UTC 2011


Hello Hackers,
I've limited the amount of physical memory visible for my FreeBSD-8.2 by adding
the following in loader.conf:

$ cat /boot/loader.conf | grep hw.physmem
hw.physmem="500M"
$

However, according to sysctl, the system sees

$ sysctl hw.physmem
hw.physmem: 507445248
$

The difference is (500 * 2**20 - 507445248) / 2**20 == 16.0625 Mb.
How does the system use this "hidden" memory?

Thanks!

-- 
Sincerely yours, Dmitry V. Krivenok
e-mail: krivenok.dmitry at gmail.com
skype: krivenok_dmitry
jabber: krivenok_dmitry at jabber.ru
icq: 242-526-443


More information about the freebsd-hackers mailing list