Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965801AbbBCD0o (ORCPT ); Mon, 2 Feb 2015 22:26:44 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:62907 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422AbbBCD0n (ORCPT ); Mon, 2 Feb 2015 22:26:43 -0500 Date: Tue, 3 Feb 2015 03:26:28 +0000 From: Petr Cermak To: David Rientjes Cc: Primiano Tucci , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Bjorn Helgaas , Hugh Dickins Subject: Re: [PATCH v2 2/2] task_mmu: Add user-space support for resetting mm->hiwater_rss (peak RSS) Message-ID: <20150203032628.GA4006@google.com> References: <20150107172452.GA7922@node.dhcp.inet.fi> <20150114152225.GB31484@google.com> <20150114233630.GA14615@node.dhcp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 17 On Mon, Jan 26, 2015 at 04:00:20PM -0800, David Rientjes wrote: > [...] > This is a result of allowing something external (process B) be able to > clear hwm so that you never knew the value went to 100MB. That's the > definition of a race, I don't know how to explain it any better and making > any connection between clearing PG_referenced and mm->hiwater_rss is a > stretch. This approach just makes mm->hiwater_rss meaningless. I understand your concern, but I hope you agree that the functionality we are proposing would be very useful for profiling. Therefore, I suggest adding an extra resettable field to /proc/pid/status (e.g. resettable_hiwater_rss) instead. What is your view on this approach? -- 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/