Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2007 19:50:49 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        freebsd-amd64@freebsd.org
Subject:   amd64 process sizes
Message-ID:  <20070905095049.GH1167@turion.vk2pj.dyndns.org>

next in thread | raw e-mail | index | archive | help

--r5Pyd7+fXNt84Ff3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've been comparing VSZ reported for similar processes on amd64 and
i386 and found that amd64 processes report as vastly larger than I
expected:

i386  amd64
1476   3572  getty
6272  29184  xclock
4784  28020  xdm
6420  30000  xterm
3828   9444  sendmail

I did some further digging into the procfs map for xterm and found
that each of the amd64 shared objects has an additional mapping that
is 255 or 256 pages.  Once you remove those mappings, the sizes are
reasonably similar.  A typical set of mappings is:

0x800f60000 0x800fba000 61 0 0xffffff0027ac2540 r-x 36 18 0x0 COW NC vnode =
/usr/local/lib/libXaw8.so.8
0x800fba000 0x800fbb000 1 0 0xffffff002765ed20 r-x 1 0 0x2180 COW NC vnode =
/usr/local/lib/libXaw8.so.8
0x800fbb000 0x8010bb000 18 0 0xffffff0027ac2540 r-x 36 18 0x0 COW NC vnode =
/usr/local/lib/libXaw8.so.8 [*]
0x8010bb000 0x8010cd000 18 0 0xffffff00274d2c40 rw- 1 0 0x2180 COW NC vnode=
 /usr/local/lib/libXaw8.so.8

0x28284000 0x282d7000 15 0 0xc360ad68 r-x 9 6 0x0 COW NC vnode /usr/local/l=
ib/libXaw8.so.8
0x282d7000 0x282d8000 0 0 0xc3a4b210 r-x 1 0 0x2180 COW NC vnode /usr/local=
/lib/libXaw8.so.8
0x282d8000 0x282df000 3 0 0xc3aef39c rwx 1 0 0x2180 COW NC vnode /usr/local=
/lib/libXaw8.so.8

Could someone please explain the purpose of the mapping [*] and what
system resources they occupy.

--=20
Peter Jeremy


--r5Pyd7+fXNt84Ff3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFG3nv5/opHv/APuIcRAk7YAJ9vO6xou63u758HaOiOaaP1In7MJgCfRcPZ
XEqiHMcWzcrifx24GY46lek=
=spBq
-----END PGP SIGNATURE-----

--r5Pyd7+fXNt84Ff3--



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