Messages in this thread | | | Date | Wed, 7 Jan 2015 19:24:52 +0200 | From | "Kirill A. Shutemov" <> | Subject | Re: [PATCH v2 2/2] task_mmu: Add user-space support for resetting mm->hiwater_rss (peak RSS) |
| |
On Wed, Jan 07, 2015 at 05:06:54PM +0000, Petr Cermak wrote: > Peak resident size of a process can be reset 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.
And how it's not an ABI break?
We have never-lowering VmHWM for 9+ years. How can you know that nobody expects this behaviour?
And why do you reset hiwater_rss, but not hiwater_vm?
-- Kirill A. Shutemov
| |