All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status
@ 2014-12-14 14:20 Sven Hoexter
       [not found] ` <E1Y0APl-0002WV-Ai-mFPisyE7dAXhXIiyNabO3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Hoexter @ 2014-12-14 14:20 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.

Signed-off-by: Sven Hoexter <sven-jJOYKVDXsn5H4x6Dk/4f9A@public.gmane.org>
---
 man5/proc.5 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/man5/proc.5 b/man5/proc.5
index 96077d0..b16f2a7 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -1587,6 +1587,7 @@ VmStk:        88 kB
 VmExe:       572 kB
 VmLib:      1708 kB
 VmPTE:        20 kB
+VmSwap:        0 kB
 Threads:        1
 SigQ:   0/3067
 SigPnd: 0000000000000000
@@ -1672,6 +1673,9 @@ Shared library code size.
 .IR VmPTE :
 Page table entries size (since Linux 2.6.10).
 .IP *
+.IR VmSwap :
+Size of swap usage (the number of referred swapents).
+.IP *
 .IR Threads :
 Number of threads in process containing this thread.
 .IP *
-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status
       [not found] ` <E1Y0APl-0002WV-Ai-mFPisyE7dAXhXIiyNabO3w@public.gmane.org>
@ 2014-12-23 15:06   ` Michael Kerrisk (man-pages)
       [not found]     ` <549984F9.9090501-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-12-23 15:06 UTC (permalink / raw)
  To: Sven Hoexter
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA

Sven,

On 12/14/2014 03:20 PM, Sven Hoexter wrote:
> Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.
> 
> Signed-off-by: Sven Hoexter <sven-jJOYKVDXsn5H4x6Dk/4f9A@public.gmane.org>
> ---
>  man5/proc.5 | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/man5/proc.5 b/man5/proc.5
> index 96077d0..b16f2a7 100644
> --- a/man5/proc.5
> +++ b/man5/proc.5
> @@ -1587,6 +1587,7 @@ VmStk:        88 kB
>  VmExe:       572 kB
>  VmLib:      1708 kB
>  VmPTE:        20 kB
> +VmSwap:        0 kB
>  Threads:        1
>  SigQ:   0/3067
>  SigPnd: 0000000000000000
> @@ -1672,6 +1673,9 @@ Shared library code size.
>  .IR VmPTE :
>  Page table entries size (since Linux 2.6.10).
>  .IP *
> +.IR VmSwap :
> +Size of swap usage (the number of referred swapents).
> +.IP *
>  .IR Threads :
>  Number of threads in process containing this thread.
>  .IP *

Thanks for this patch. I've applied, and added text that the field 
appeared in Linux 2.6.34. However, I have a question: what does the
text "(the number of referred swapents)" mean? Is this field
not just reporting a value in kB (i.e., the number of kB across all 
swap entries)?

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status
       [not found]     ` <549984F9.9090501-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-12-24  0:24       ` Sven Hoexter
       [not found]         ` <20141224002412.GA1719-ckv7mInNtAwb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Hoexter @ 2014-12-24  0:24 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages), kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A
  Cc: Sven Hoexter, linux-man-u79uwXL29TY76Z2rM5mHXA

On Tue, Dec 23, 2014 at 04:06:33PM +0100, Michael Kerrisk (man-pages) wrote:

Hi,

> On 12/14/2014 03:20 PM, Sven Hoexter wrote:
> > Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.
> > 
> > Signed-off-by: Sven Hoexter <sven-jJOYKVDXsn5H4x6Dk/4f9A@public.gmane.org>
> > ---
> >  man5/proc.5 | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/man5/proc.5 b/man5/proc.5
> > index 96077d0..b16f2a7 100644
> > --- a/man5/proc.5
> > +++ b/man5/proc.5
> > @@ -1587,6 +1587,7 @@ VmStk:        88 kB
> >  VmExe:       572 kB
> >  VmLib:      1708 kB
> >  VmPTE:        20 kB
> > +VmSwap:        0 kB
> >  Threads:        1
> >  SigQ:   0/3067
> >  SigPnd: 0000000000000000
> > @@ -1672,6 +1673,9 @@ Shared library code size.
> >  .IR VmPTE :
> >  Page table entries size (since Linux 2.6.10).
> >  .IP *
> > +.IR VmSwap :
> > +Size of swap usage (the number of referred swapents).
> > +.IP *
> >  .IR Threads :
> >  Number of threads in process containing this thread.
> >  .IP *
> 
> Thanks for this patch. I've applied, and added text that the field 
> appeared in Linux 2.6.34. However, I have a question: what does the
> text "(the number of referred swapents)" mean? Is this field
> not just reporting a value in kB (i.e., the number of kB across all 
> swap entries)?

I copied the text verbatim from what I found in the proc.txt
documentation. To be honest so far I failed to understand
what exactly is counted and did not trust the kB unit at all.
(It did not matter for my usecase.)

Maybe KAMEZAWA Hiroyuki can shed some light on what exactly
is counted here and if the kB unit makes sense here and why?

Looking at commit b084d4353ff99d824d3bc5a5c2c22c70b1fba722 
it seems to be a value incremented/decremented with every
page table entry moved to swap/moved out of swap, but I'm
far away from claiming that this is stuff I understand.

Sven
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status
       [not found]         ` <20141224002412.GA1719-ckv7mInNtAwb1SvskN2V4Q@public.gmane.org>
@ 2014-12-24 14:26           ` Michael Kerrisk (man-pages)
       [not found]             ` <549ACCFE.3030809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-12-24 14:26 UTC (permalink / raw)
  To: Sven Hoexter, kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA

On 12/24/2014 01:24 AM, Sven Hoexter wrote:
> On Tue, Dec 23, 2014 at 04:06:33PM +0100, Michael Kerrisk (man-pages) wrote:
> 
> Hi,
> 
>> On 12/14/2014 03:20 PM, Sven Hoexter wrote:
>>> Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.
>>>
>>> Signed-off-by: Sven Hoexter <sven-jJOYKVDXsn5H4x6Dk/4f9A@public.gmane.org>
>>> ---
>>>  man5/proc.5 | 4 ++++
>>>  1 file changed, 4 insertions(+)
>>>
>>> diff --git a/man5/proc.5 b/man5/proc.5
>>> index 96077d0..b16f2a7 100644
>>> --- a/man5/proc.5
>>> +++ b/man5/proc.5
>>> @@ -1587,6 +1587,7 @@ VmStk:        88 kB
>>>  VmExe:       572 kB
>>>  VmLib:      1708 kB
>>>  VmPTE:        20 kB
>>> +VmSwap:        0 kB
>>>  Threads:        1
>>>  SigQ:   0/3067
>>>  SigPnd: 0000000000000000
>>> @@ -1672,6 +1673,9 @@ Shared library code size.
>>>  .IR VmPTE :
>>>  Page table entries size (since Linux 2.6.10).
>>>  .IP *
>>> +.IR VmSwap :
>>> +Size of swap usage (the number of referred swapents).
>>> +.IP *
>>>  .IR Threads :
>>>  Number of threads in process containing this thread.
>>>  .IP *
>>
>> Thanks for this patch. I've applied, and added text that the field 
>> appeared in Linux 2.6.34. However, I have a question: what does the
>> text "(the number of referred swapents)" mean? Is this field
>> not just reporting a value in kB (i.e., the number of kB across all 
>> swap entries)?
> 
> I copied the text verbatim from what I found in the proc.txt
> documentation. To be honest so far I failed to understand
> what exactly is counted and did not trust the kB unit at all.
> (It did not matter for my usecase.)
> 
> Maybe KAMEZAWA Hiroyuki can shed some light on what exactly
> is counted here and if the kB unit makes sense here and why?
> 
> Looking at commit b084d4353ff99d824d3bc5a5c2c22c70b1fba722 
> it seems to be a value incremented/decremented with every
> page table entry moved to swap/moved out of swap, but I'm
> far away from claiming that this is stuff I understand.

Okay. Pending any input from KAMEZAWA Hiroyuki, I have simply removed
the text "(the number of referred swapents)".

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status
       [not found]             ` <549ACCFE.3030809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-12-25  0:15               ` Kamezawa Hiroyuki
       [not found]                 ` <549B571E.8080407-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Kamezawa Hiroyuki @ 2014-12-25  0:15 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages), Sven Hoexter
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On 2014/12/24 23:26, Michael Kerrisk (man-pages) wrote:
> On 12/24/2014 01:24 AM, Sven Hoexter wrote:
>> On Tue, Dec 23, 2014 at 04:06:33PM +0100, Michael Kerrisk (man-pages) wrote:
>>
>> Hi,
>>
>>> On 12/14/2014 03:20 PM, Sven Hoexter wrote:
>>>> Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.
>>>>
>>>> Signed-off-by: Sven Hoexter <sven-jJOYKVDXsn5H4x6Dk/4f9A@public.gmane.org>
>>>> ---
>>>>   man5/proc.5 | 4 ++++
>>>>   1 file changed, 4 insertions(+)
>>>>
>>>> diff --git a/man5/proc.5 b/man5/proc.5
>>>> index 96077d0..b16f2a7 100644
>>>> --- a/man5/proc.5
>>>> +++ b/man5/proc.5
>>>> @@ -1587,6 +1587,7 @@ VmStk:        88 kB
>>>>   VmExe:       572 kB
>>>>   VmLib:      1708 kB
>>>>   VmPTE:        20 kB
>>>> +VmSwap:        0 kB
>>>>   Threads:        1
>>>>   SigQ:   0/3067
>>>>   SigPnd: 0000000000000000
>>>> @@ -1672,6 +1673,9 @@ Shared library code size.
>>>>   .IR VmPTE :
>>>>   Page table entries size (since Linux 2.6.10).
>>>>   .IP *
>>>> +.IR VmSwap :
>>>> +Size of swap usage (the number of referred swapents).
>>>> +.IP *
>>>>   .IR Threads :
>>>>   Number of threads in process containing this thread.
>>>>   .IP *
>>>
>>> Thanks for this patch. I've applied, and added text that the field
>>> appeared in Linux 2.6.34. However, I have a question: what does the
>>> text "(the number of referred swapents)" mean? Is this field
>>> not just reporting a value in kB (i.e., the number of kB across all
>>> swap entries)?
>>
>> I copied the text verbatim from what I found in the proc.txt
>> documentation. To be honest so far I failed to understand
>> what exactly is counted and did not trust the kB unit at all.
>> (It did not matter for my usecase.)
>>
>> Maybe KAMEZAWA Hiroyuki can shed some light on what exactly
>> is counted here and if the kB unit makes sense here and why?
>>
>> Looking at commit b084d4353ff99d824d3bc5a5c2c22c70b1fba722
>> it seems to be a value incremented/decremented with every
>> page table entry moved to swap/moved out of swap, but I'm
>> far away from claiming that this is stuff I understand.
>
> Okay. Pending any input from KAMEZAWA Hiroyuki, I have simply removed
> the text "(the number of referred swapents)".
>

The counter is

  +1 when a page table entry is modified to refer a swap.
  -1 when a page table entry, which referes swap, is modified to some other.

Then, proc.text says "the number of referred swapents". But this may not be
suitable for man pages.

How about, "swapped-out virtual memory size"  ?


Regards,
-Kame








--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status
       [not found]                 ` <549B571E.8080407-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
@ 2014-12-26  6:20                   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-12-26  6:20 UTC (permalink / raw)
  To: Kamezawa Hiroyuki; +Cc: Sven Hoexter, linux-man

Hello Kame,

On Thu, Dec 25, 2014 at 1:15 AM, Kamezawa Hiroyuki
<kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org> wrote:
> On 2014/12/24 23:26, Michael Kerrisk (man-pages) wrote:
>>
>> On 12/24/2014 01:24 AM, Sven Hoexter wrote:
>>>
>>> On Tue, Dec 23, 2014 at 04:06:33PM +0100, Michael Kerrisk (man-pages)
>>> wrote:
>>>
>>> Hi,
>>>
>>>> On 12/14/2014 03:20 PM, Sven Hoexter wrote:
>>>>>
>>>>> Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.
>>>>>
>>>>> Signed-off-by: Sven Hoexter <sven-jJOYKVDXsn5H4x6Dk/4f9A@public.gmane.org>
>>>>> ---
>>>>>   man5/proc.5 | 4 ++++
>>>>>   1 file changed, 4 insertions(+)
>>>>>
>>>>> diff --git a/man5/proc.5 b/man5/proc.5
>>>>> index 96077d0..b16f2a7 100644
>>>>> --- a/man5/proc.5
>>>>> +++ b/man5/proc.5
>>>>> @@ -1587,6 +1587,7 @@ VmStk:        88 kB
>>>>>   VmExe:       572 kB
>>>>>   VmLib:      1708 kB
>>>>>   VmPTE:        20 kB
>>>>> +VmSwap:        0 kB
>>>>>   Threads:        1
>>>>>   SigQ:   0/3067
>>>>>   SigPnd: 0000000000000000
>>>>> @@ -1672,6 +1673,9 @@ Shared library code size.
>>>>>   .IR VmPTE :
>>>>>   Page table entries size (since Linux 2.6.10).
>>>>>   .IP *
>>>>> +.IR VmSwap :
>>>>> +Size of swap usage (the number of referred swapents).
>>>>> +.IP *
>>>>>   .IR Threads :
>>>>>   Number of threads in process containing this thread.
>>>>>   .IP *
>>>>
>>>>
>>>> Thanks for this patch. I've applied, and added text that the field
>>>> appeared in Linux 2.6.34. However, I have a question: what does the
>>>> text "(the number of referred swapents)" mean? Is this field
>>>> not just reporting a value in kB (i.e., the number of kB across all
>>>> swap entries)?
>>>
>>>
>>> I copied the text verbatim from what I found in the proc.txt
>>> documentation. To be honest so far I failed to understand
>>> what exactly is counted and did not trust the kB unit at all.
>>> (It did not matter for my usecase.)
>>>
>>> Maybe KAMEZAWA Hiroyuki can shed some light on what exactly
>>> is counted here and if the kB unit makes sense here and why?
>>>
>>> Looking at commit b084d4353ff99d824d3bc5a5c2c22c70b1fba722
>>> it seems to be a value incremented/decremented with every
>>> page table entry moved to swap/moved out of swap, but I'm
>>> far away from claiming that this is stuff I understand.
>>
>>
>> Okay. Pending any input from KAMEZAWA Hiroyuki, I have simply removed
>> the text "(the number of referred swapents)".
>>
>
> The counter is
>
>  +1 when a page table entry is modified to refer a swap.
>  -1 when a page table entry, which referes swap, is modified to some other.
>
> Then, proc.text says "the number of referred swapents". But this may not be
> suitable for man pages.
>
> How about, "swapped-out virtual memory size"  ?


Thanks. Amended as you suggest.

Cheers,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-26  6:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-14 14:20 [PATCH] proc.5: Add "VmSwap" to /proc/[pid]/status Sven Hoexter
     [not found] ` <E1Y0APl-0002WV-Ai-mFPisyE7dAXhXIiyNabO3w@public.gmane.org>
2014-12-23 15:06   ` Michael Kerrisk (man-pages)
     [not found]     ` <549984F9.9090501-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-24  0:24       ` Sven Hoexter
     [not found]         ` <20141224002412.GA1719-ckv7mInNtAwb1SvskN2V4Q@public.gmane.org>
2014-12-24 14:26           ` Michael Kerrisk (man-pages)
     [not found]             ` <549ACCFE.3030809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-25  0:15               ` Kamezawa Hiroyuki
     [not found]                 ` <549B571E.8080407-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2014-12-26  6:20                   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.