summaryrefslogtreecommitdiffstats
path: root/fs/proc/inode.c
diff options
context:
space:
mode:
authorPetr Cermak <petrcermak@chromium.org>2015-02-12 15:01:00 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-12 18:54:12 -0800
commit695f055936938c674473ea071ca7359a863551e7 (patch)
tree8975abce255f8d638fa1291beb62803e2d611004 /fs/proc/inode.c
parentd170cf4674768db22b66a1be4be7877d3b2c3874 (diff)
downloadlinux-stable-695f055936938c674473ea071ca7359a863551e7.tar.gz
linux-stable-695f055936938c674473ea071ca7359a863551e7.tar.bz2
linux-stable-695f055936938c674473ea071ca7359a863551e7.zip
fs/proc/task_mmu.c: add user-space support for resetting mm->hiwater_rss (peak RSS)
Peak resident size of a process can be reset back to the process's current rss value by writing "5" to /proc/pid/clear_refs. The driving use-case for this would be getting the peak RSS value, which can be retrieved from the VmHWM field in /proc/pid/status, per benchmark iteration or test scenario. [akpm@linux-foundation.org: clarify behaviour in documentation] Signed-off-by: Petr Cermak <petrcermak@chromium.org> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Primiano Tucci <primiano@chromium.org> Cc: Petr Cermak <petrcermak@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/inode.c')
0 files changed, 0 insertions, 0 deletions