From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by kanga.kvack.org (Postfix) with ESMTP id C22E66B0032 for ; Wed, 7 Jan 2015 12:24:58 -0500 (EST) Received: by mail-wg0-f41.google.com with SMTP id l18so1619259wgh.0 for ; Wed, 07 Jan 2015 09:24:58 -0800 (PST) Received: from kirsi1.inet.fi (mta-out1.inet.fi. [62.71.2.203]) by mx.google.com with ESMTP id n13si5549751wjw.88.2015.01.07.09.24.57 for ; Wed, 07 Jan 2015 09:24:58 -0800 (PST) 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) Message-ID: <20150107172452.GA7922@node.dhcp.inet.fi> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Petr Cermak Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Bjorn Helgaas , Primiano Tucci , Hugh Dickins 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 -- 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: email@kvack.org