From owner-freebsd-stable@FreeBSD.ORG Tue Dec 4 07:15:45 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F6154B0 for ; Tue, 4 Dec 2012 07:15:45 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 932CC8FC15 for ; Tue, 4 Dec 2012 07:15:44 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c13so2509180eek.13 for ; Mon, 03 Dec 2012 23:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=5RfZ9R6svGYmiseaw/bIlvsZ8mMhDyCl7oQj0y5a8WQ=; b=fxOkvcIY3zsr3395mk9xUaXpRTMYRJTNoPsgYCFIrIhSuM48M5cbnU7z62lfd/9tTo u0Yoo9Xr5iXFbOdcNqcGhwAaKddQ0O3DpNTkvHYbKhvIHhLdSRh9cHxAtofhbeuKITgY qifhD4flAZoyEnoiXr5xwvVr9O4fSAj5ABswUU1Od652tby04zSGtiVKtU1rnFIZh93L P9Fkjtquivc1tn1wa+I7pBkKsVkj6e4GEvC7mxe5MTHDId3Q9+sTs9fgj2aG1Ew87ohN x7XNDMwlnrk0tcL0GkttS5yOhR8uVcL9+AFvKYV8KzuX7T4c568EoppRoG1JGqb8KyaI XYJw== Received: by 10.14.203.2 with SMTP id e2mr45357600eeo.20.1354605343644; Mon, 03 Dec 2012 23:15:43 -0800 (PST) Received: from [192.168.1.104] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id r1sm938779eeo.2.2012.12.03.23.15.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2012 23:15:43 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Subject: =?windows-1250?Q?Re=3A_FreeBSD_9-STABLE=3A_jail_+_rctl_=85_what_?= =?windows-1250?Q?is_datasize=3F?= Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=windows-1250 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: Date: Tue, 4 Dec 2012 08:15:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <9CEF855F-2909-4ED5-8FC4-C8FC68321700@FreeBSD.org> References: To: Hub- FreeBSD X-Mailer: Apple Mail (2.1283) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2012 07:15:45 -0000 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?