lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3aaafc130811170614r39f7eeabk73fd08354655bed3@mail.gmail.com>
Date:	Mon, 17 Nov 2008 09:14:55 -0500
From:	"J.R. Mauro" <jrm8005@...il.com>
To:	"Victoria Muntean" <vikimun@...il.com>
Cc:	"Kernel Linux" <linux-kernel@...r.kernel.org>
Subject: Re: size of swapped-out part of the process

On Mon, Nov 17, 2008 at 9:08 AM, Victoria Muntean <vikimun@...il.com> wrote:
> On Mon, Nov 17, 2008 at 3:55 PM, J.R. Mauro <jrm8005@...il.com> wrote:
>> On Mon, Nov 17, 2008 at 8:47 AM, Victoria Muntean <vikimun@...il.com> wrote:
>>> On Mon, Nov 17, 2008 at 3:33 PM, J.R. Mauro <jrm8005@...il.com> wrote:
>>>> On Mon, Nov 17, 2008 at 7:53 AM, Victoria Muntean <vikimun@...il.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ