Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2012 15:41:10 -0400
From:      Ping Chen <pchen@juniper.net>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   distinguish between Maxmem, realmem, physmem
Message-ID:  <CBE35EDBE4727C4BAD013A73D993FE6B04B28AE5C655@EMBX01-WF.jnpr.net>

next in thread | raw e-mail | index | archive | help
Hi,
   I am a bit confused with all these variables defined in freebsd(especial=
ly in freebsd 6.1): Which one of this represents the real memory of a syste=
m? Say we bought a system with 4G ram, which one tells me the RAM is 4G?

 Accordign to source code:

Maxmem =3D=3D> the highest page of phisycal address page  : if I understand=
 correctly, this is the highest page number of physical memory that is usab=
le?

realMem --> somehow get assigned by realmem =3D Maxmem:  this is confuing, =
if they are the same, why bother a realmem variables

physmem --> the number of usage pages : this seems the right one extract th=
e memory info, however, it seems system allocate portion of memory to messg=
e buffer which makes this physmem < 4G (assume RAM is 4G)

Could someone explains more?

Thanks

Ping




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CBE35EDBE4727C4BAD013A73D993FE6B04B28AE5C655>