From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id 01E1D6B000C for ; Fri, 23 Feb 2018 03:11:50 -0500 (EST) Received: by mail-wr0-f199.google.com with SMTP id 5so386924wrb.15 for ; Fri, 23 Feb 2018 00:11:49 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id a53si1516993wra.252.2018.02.23.00.11.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Feb 2018 00:11:48 -0800 (PST) Date: Fri, 23 Feb 2018 09:11:47 +0100 From: Michal Hocko Subject: Re: [PATCH] Synchronize task mm counters on context switch Message-ID: <20180223081147.GD30773@dhcp22.suse.cz> References: <20180205220325.197241-1-dancol@google.com> <20180222001635.GB27147@rodete-desktop-imager.corp.google.com> <20180222020633.GC27147@rodete-desktop-imager.corp.google.com> 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: Daniel Colascione Cc: Minchan Kim , linux-mm@kvack.org, Andrew Morton , Oleg Nesterov , Peter Zijlstra On Wed 21-02-18 18:49:35, Daniel Colascione wrote: [...] > For more context: on Android, we've historically scanned each processes's > address space using /proc/pid/smaps (and /proc/pid/smaps_rollup more > recently) to extract memory management statistics. We're looking at > replacing this mechanism with the new /proc/pid/status per-memory-type > (e.g., anonymous, file-backed) counters so that we can be even more > efficient, but we'd like the counts we collect to be accurate. If you need the accuracy then why don't you simply make SPLIT_RSS_COUNTING configurable and disable it in your setup? -- Michal Hocko SUSE Labs -- 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