Skip to contentSkip to conversation

proc.5: Add description of CLEAR_REFS_MM_HIWATER_RSS

PATCH Superseded Namhyung Kim 2 participants 3 messages Sep 7, 2016 – Sep 9, 2016 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc.5: Add description of CLEAR_REFS_MM_HIWATER_RSS

The Linux kernel commit 695f05593693 ("fs/proc/task_mmu.c: add user-space support for resetting mm->hiwater_rss (peak RSS)") added a way to reset peak RSS of a process but missed to update manpage.

---
 man5/proc.5 | 5 +++++
 1 file changed, 5 insertions(+)
man5/proc.5 +5 -0
index 14588fe..5cb3c85 100644
@@ -352,6 +352,11 @@ by the check-point restore system to discover which pages of a process
 have been dirtied since the file
 .IR /proc/[pid]/clear_refs
 was written to.
+.TP
+5 (since Linux 4.0)
+.\" Internally: CLEAR_REFS_MM_HIWATER_RSS
+Reset the peak resident set size ("high water mark") to the process's
+current value.
 .RE
 .IP
 Writing any value to
Signature · 6 lines
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20160907150439.21524-1-namhyung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Acked-by
#2 lore raw
Quoted 29 lines · Namhyung Kim

The Linux kernel commit 695f05593693 ("fs/proc/task_mmu.c: add user-space support for resetting mm->hiwater_rss (peak RSS)") added a way to reset peak RSS of a process but missed to update manpage.

---
 man5/proc.5 | 5 +++++
 1 file changed, 5 insertions(+)
man5/proc.5 +5 -0
index 14588fe..5cb3c85 100644
@@ -352,6 +352,11 @@ by the check-point restore system to discover which pages of a process
 have been dirtied since the file
 .IR /proc/[pid]/clear_refs
 was written to.
+.TP
+5 (since Linux 4.0)
+.\" Internally: CLEAR_REFS_MM_HIWATER_RSS
+Reset the peak resident set size ("high water mark") to the process's
+current value.
 .RE
 .IP
 Writing any value to
Signature · 1 line
2.9.3

Thanks for updating the documentation. I think you should also change the line above from:

"A further value can be written to affect a different bit:"

to:

"Further values can be written to affect a different properties:"

Apart from that,

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hello,

Quoted 36 lines · Petr Cermak
Quoted 27 lines · Namhyung Kim

The Linux kernel commit 695f05593693 ("fs/proc/task_mmu.c: add user-space support for resetting mm->hiwater_rss (peak RSS)") added a way to reset peak RSS of a process but missed to update manpage.

---
 man5/proc.5 | 5 +++++
 1 file changed, 5 insertions(+)
man5/proc.5 +5 -1
index 14588fe..5cb3c85 100644
@@ -352,6 +352,11 @@ by the check-point restore system to discover which pages of a process
 have been dirtied since the file
 .IR /proc/[pid]/clear_refs
 was written to.
+.TP
+5 (since Linux 4.0)
+.\" Internally: CLEAR_REFS_MM_HIWATER_RSS
+Reset the peak resident set size ("high water mark") to the process's
+current value.
 .RE
 .IP
 Writing any value to
--
Quoted 2 lines

2.9.3

Thanks for updating the documentation. I think you should also change the line above from:

"A further value can be written to affect a different bit:"

Quoted 7 lines

to:

"Further values can be written to affect a different properties:"

Apart from that,

Thanks, I'll send v2 soon.

Namhyung

Signature · 6 lines
Thanks,
Namhyung Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html