Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2012 08:15:37 +0100
From:      =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org>
To:        Hub- FreeBSD <freebsd@hub.org>
Cc:        freebsd-stable@freebsd.org
Subject:   =?windows-1250?Q?Re=3A_FreeBSD_9-STABLE=3A_jail_+_rctl_=85_what_?= =?windows-1250?Q?is_datasize=3F?=
Message-ID:  <9CEF855F-2909-4ED5-8FC4-C8FC68321700@FreeBSD.org>
In-Reply-To: <F86DC5E2-C3E1-4F4C-8F9D-421C9903AF32@hub.org>
References:  <F86DC5E2-C3E1-4F4C-8F9D-421C9903AF32@hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Wiadomo=9C=E6 napisana przez Hub- FreeBSD w dniu 1 gru 2012, o godz. =
20:37:
> Eagerly awaiting the %cpu ability that is in 10, I'm starting to play =
with using this =85 not so much to deny, but to allow me to more =
accurately calculate usage =85=20
>=20
> when I do an 'rctl -u' for a jail, I see two values:
>=20
> datasize=3D11173888
> memoryuse=3D88137728
>=20
> My question is simple =85 does memoryuse *include* datasize?  Or is =
total memory use memoryuse+datasize?
>=20
> Basically, memoryuse =3D=3D sum of the RSS column in ps =85 vmemoryuse =
is sum of the VSZ =85 one of them has to include the datasize, but is it =
VSZ or RSS?

VSZ.  The datasize is exactly the same as with setrlimit(2); it's a sum
of data segment sizes.  In most cases you don't want to use it - use =
memoryuse
and vmemoryuse instead.

--=20
If you cut off my head, what would I say?  Me and my head, or me and my =
body?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9CEF855F-2909-4ED5-8FC4-C8FC68321700>