From: "J.R. Mauro" <jrm8005@gmail.com>
To: "Victoria Muntean" <vikimun@gmail.com>
Cc: "Kernel Linux" <linux-kernel@vger.kernel.org>
Subject: Re: size of swapped-out part of the process
Date: Mon, 17 Nov 2008 09:14:55 -0500 [thread overview]
Message-ID: <3aaafc130811170614r39f7eeabk73fd08354655bed3@mail.gmail.com> (raw)
In-Reply-To: <ab4346860811170608n4f940506v55862448c09f0b19@mail.gmail.com>
On Mon, Nov 17, 2008 at 9:08 AM, Victoria Muntean <vikimun@gmail.com> wrote:
> On Mon, Nov 17, 2008 at 3:55 PM, J.R. Mauro <jrm8005@gmail.com> wrote:
>> On Mon, Nov 17, 2008 at 8:47 AM, Victoria Muntean <vikimun@gmail.com> wrote:
>>> On Mon, Nov 17, 2008 at 3:33 PM, J.R. Mauro <jrm8005@gmail.com> wrote:
>>>> On Mon, Nov 17, 2008 at 7:53 AM, Victoria Muntean <vikimun@gmail.com> 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.
>
Ah, I see. The smap solution Hugh mentioned is what you're after, I guess.
next prev parent reply other threads:[~2008-11-17 14:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ab4346860811170452t2cbcb451u407edca19c9e0ba6@mail.gmail.com>
2008-11-17 12:53 ` Victoria Muntean
2008-11-17 13:33 ` J.R. Mauro
2008-11-17 13:47 ` Victoria Muntean
2008-11-17 13:55 ` J.R. Mauro
2008-11-17 14:08 ` Victoria Muntean
2008-11-17 14:14 ` J.R. Mauro [this message]
2008-11-17 14:02 ` Hugh Dickins
2008-11-17 14:09 ` Victoria Muntean
2008-11-17 19:42 ` Victoria Muntean
2008-11-17 20:31 ` Bryan Donlan
2008-11-17 21:14 ` Andreas Schwab
2008-11-18 1:33 ` David Schwartz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3aaafc130811170614r39f7eeabk73fd08354655bed3@mail.gmail.com \
--to=jrm8005@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vikimun@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®