Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872AbYKQOIX (ORCPT ); Mon, 17 Nov 2008 09:08:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751818AbYKQOIP (ORCPT ); Mon, 17 Nov 2008 09:08:15 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:18413 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbYKQOIO (ORCPT ); Mon, 17 Nov 2008 09:08:14 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EV7kbTq2aD6RfSs0lU0RI6/F7V5vp5uuIPLIMzmiLDf1qiQcR4+AafPnJpfDPvvQ2Q ovJqBmQY1pX9T6JmMHKS8nAP13/tOiPRvtVEaeSNnoJIVVWYgrZWY2j57Po4kASPyip6 YNxLQhz2YWK5dBer9RoQcsx5jQvmrWTOq3Zeo= Message-ID: Date: Mon, 17 Nov 2008 16:08:12 +0200 From: "Victoria Muntean" To: "J.R. Mauro" Subject: Re: size of swapped-out part of the process Cc: "Kernel Linux" In-Reply-To: <3aaafc130811170555l7e35b6b9s169d03f23eeb6388@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3aaafc130811170533j4c7e0008vd76c42da0cbb9f36@mail.gmail.com> <3aaafc130811170555l7e35b6b9s169d03f23eeb6388@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1257 Lines: 26 On Mon, Nov 17, 2008 at 3:55 PM, J.R. Mauro wrote: > On Mon, Nov 17, 2008 at 8:47 AM, Victoria Muntean wrote: >> On Mon, Nov 17, 2008 at 3:33 PM, J.R. Mauro wrote: >>> On Mon, Nov 17, 2008 at 7:53 AM, Victoria Muntean wrote: >>>> How can I calculate size of swapped-out part of the process from >>>> /proc/PID/*, even if approximately ? >>>> For example, I have VmSize=1216192 kB, VmRSS = 628788 kB, but global >>>> swap-in-use==0. >>>> Hence (VmSize - VmRSS) is far from being swapped-out part of the >>>> process. What is ? >>> >>> Doesn't top's SWAP field give you this? >> >> No. SWAP is global. I need per-process. Per-process participation in swap. >> > > Are you sure? I'm not talking about the Swap: BigNumber in the header. > If you hit f you can add a SWAP column which is per process. Or if it > isn't per-process, it's horribly misleading. 'top' naively shows (VmSize - VmRSS) in the SWAP column, which is not helpful. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/