linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt
@ 2012-11-16  7:01 Michael Kerrisk
  2012-11-16 10:10 ` Michal Hocko
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Kerrisk @ 2012-11-16  7:01 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-mm, lkml, linux-doc, Rob Landley, Jim Paris,
	Michael Kerrisk (gmail)

After migrating most of the information in 
Documentation/filesystems/proc.txt to the proc(5) man page,
Jim Paris pointed out to me that the description of SwapFree
in the man page seemed wrong. I think Jim is right,
but am given pause by fact that that text has been in 
Documentation/filesystems/proc.txt since at least 2.6.0.
Anyway, I believe that the patch below fixes things.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>


diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index a1793d6..cf4260f 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -778,8 +778,7 @@ AnonHugePages:   49152 kB
               other things, it is where everything from the Slab is
               allocated.  Bad things happen when you're out of lowmem.
    SwapTotal: total amount of swap space available
-    SwapFree: Memory which has been evicted from RAM, and is temporarily
-              on the disk
+    SwapFree: Amount of swap space that is currently unused.
        Dirty: Memory which is waiting to get written back to the disk
    Writeback: Memory which is actively being written back to the disk
    AnonPages: Non-file backed pages mapped into userspace page tables

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt
  2012-11-16  7:01 [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt Michael Kerrisk
@ 2012-11-16 10:10 ` Michal Hocko
  2012-11-16 10:16 ` Kamezawa Hiroyuki
  2012-11-17  5:11 ` Rob Landley
  2 siblings, 0 replies; 5+ messages in thread
From: Michal Hocko @ 2012-11-16 10:10 UTC (permalink / raw)
  To: Michael Kerrisk
  Cc: Andrew Morton, linux-mm, lkml, linux-doc, Rob Landley, Jim Paris

On Fri 16-11-12 08:01:42, Michael Kerrisk wrote:
> After migrating most of the information in 
> Documentation/filesystems/proc.txt to the proc(5) man page,
> Jim Paris pointed out to me that the description of SwapFree
> in the man page seemed wrong. I think Jim is right,
> but am given pause by fact that that text has been in 
> Documentation/filesystems/proc.txt since at least 2.6.0.
> Anyway, I believe that the patch below fixes things.

Yes, this goes back to 2003 when the /proc/meminfo doc has been added.

> 
> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>

Reviewed-by: Michal Hocko <mhocko@suse.cz>

> diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
> index a1793d6..cf4260f 100644
> --- a/Documentation/filesystems/proc.txt
> +++ b/Documentation/filesystems/proc.txt
> @@ -778,8 +778,7 @@ AnonHugePages:   49152 kB
>                other things, it is where everything from the Slab is
>                allocated.  Bad things happen when you're out of lowmem.
>     SwapTotal: total amount of swap space available
> -    SwapFree: Memory which has been evicted from RAM, and is temporarily
> -              on the disk
> +    SwapFree: Amount of swap space that is currently unused.
>         Dirty: Memory which is waiting to get written back to the disk
>     Writeback: Memory which is actively being written back to the disk
>     AnonPages: Non-file backed pages mapped into userspace page tables
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org.  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt
  2012-11-16  7:01 [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt Michael Kerrisk
  2012-11-16 10:10 ` Michal Hocko
@ 2012-11-16 10:16 ` Kamezawa Hiroyuki
  2012-11-17  5:11 ` Rob Landley
  2 siblings, 0 replies; 5+ messages in thread
From: Kamezawa Hiroyuki @ 2012-11-16 10:16 UTC (permalink / raw)
  To: Michael Kerrisk
  Cc: Andrew Morton, linux-mm, lkml, linux-doc, Rob Landley, Jim Paris

(2012/11/16 16:01), Michael Kerrisk wrote:
> After migrating most of the information in
> Documentation/filesystems/proc.txt to the proc(5) man page,
> Jim Paris pointed out to me that the description of SwapFree
> in the man page seemed wrong. I think Jim is right,
> but am given pause by fact that that text has been in
> Documentation/filesystems/proc.txt since at least 2.6.0.
> Anyway, I believe that the patch below fixes things.
>
> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

>
> diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
> index a1793d6..cf4260f 100644
> --- a/Documentation/filesystems/proc.txt
> +++ b/Documentation/filesystems/proc.txt
> @@ -778,8 +778,7 @@ AnonHugePages:   49152 kB
>                 other things, it is where everything from the Slab is
>                 allocated.  Bad things happen when you're out of lowmem.
>      SwapTotal: total amount of swap space available
> -    SwapFree: Memory which has been evicted from RAM, and is temporarily
> -              on the disk
> +    SwapFree: Amount of swap space that is currently unused.
>          Dirty: Memory which is waiting to get written back to the disk
>      Writeback: Memory which is actively being written back to the disk
>      AnonPages: Non-file backed pages mapped into userspace page tables
> --
> 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/
>


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt
  2012-11-16  7:01 [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt Michael Kerrisk
  2012-11-16 10:10 ` Michal Hocko
  2012-11-16 10:16 ` Kamezawa Hiroyuki
@ 2012-11-17  5:11 ` Rob Landley
  2012-11-19  6:07   ` Michael Kerrisk (man-pages)
  2 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2012-11-17  5:11 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: Andrew Morton, linux-mm, lkml, linux-doc, Jim Paris

On 11/16/2012 01:01:42 AM, Michael Kerrisk wrote:
> After migrating most of the information in
> Documentation/filesystems/proc.txt to the proc(5) man page,
> Jim Paris pointed out to me that the description of SwapFree
> in the man page seemed wrong. I think Jim is right,
> but am given pause by fact that that text has been in
> Documentation/filesystems/proc.txt since at least 2.6.0.
> Anyway, I believe that the patch below fixes things.
> 
> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>

Acked-by: Rob Landley <rob@landley.net>

Want me to forward it on? (Lots of documentation stuff gets grabbed by  
whoever maintains what it's documenting, this looks like it might fall  
through the cracks...)

Rob
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt
  2012-11-17  5:11 ` Rob Landley
@ 2012-11-19  6:07   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-11-19  6:07 UTC (permalink / raw)
  To: Rob Landley; +Cc: Andrew Morton, linux-mm, lkml, linux-doc, Jim Paris

Rob,

On Sat, Nov 17, 2012 at 6:11 AM, Rob Landley <rob@landley.net> wrote:
> On 11/16/2012 01:01:42 AM, Michael Kerrisk wrote:
>>
>> After migrating most of the information in
>> Documentation/filesystems/proc.txt to the proc(5) man page,
>> Jim Paris pointed out to me that the description of SwapFree
>> in the man page seemed wrong. I think Jim is right,
>> but am given pause by fact that that text has been in
>> Documentation/filesystems/proc.txt since at least 2.6.0.
>> Anyway, I believe that the patch below fixes things.
>>
>> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
>
>
> Acked-by: Rob Landley <rob@landley.net>
>
> Want me to forward it on? (Lots of documentation stuff gets grabbed by
> whoever maintains what it's documenting, this looks like it might fall
> through the cracks...)

That would be great.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2012-11-19  6:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16  7:01 [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt Michael Kerrisk
2012-11-16 10:10 ` Michal Hocko
2012-11-16 10:16 ` Kamezawa Hiroyuki
2012-11-17  5:11 ` Rob Landley
2012-11-19  6:07   ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).