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>
index | next in thread | previous in thread | raw e-mail
Wiadomość 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 … not so much to deny, but to allow me to more accurately calculate usage … > > when I do an 'rctl -u' for a jail, I see two values: > > datasize=11173888 > memoryuse=88137728 > > My question is simple … does memoryuse *include* datasize? Or is total memory use memoryuse+datasize? > > Basically, memoryuse == sum of the RSS column in ps … vmemoryuse is sum of the VSZ … 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. -- If you cut off my head, what would I say? Me and my head, or me and my body?help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9CEF855F-2909-4ED5-8FC4-C8FC68321700>
