From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756566AbbIYN3N (ORCPT ); Fri, 25 Sep 2015 09:29:13 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:36563 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756216AbbIYN3K (ORCPT ); Fri, 25 Sep 2015 09:29:10 -0400 Date: Fri, 25 Sep 2015 15:29:07 +0200 From: Michal Hocko To: Vlastimil Babka Cc: Andrew Morton , Jerome Marchand , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , "Kirill A. Shutemov" , Cyrill Gorcunov , Randy Dunlap , linux-s390@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo , Oleg Nesterov , Linux API , Konstantin Khlebnikov , Minchan Kim Subject: Re: [PATCH v3 4/4] mm, procfs: Display VmAnon, VmFile and VmShm in /proc/pid/status Message-ID: <20150925132907.GK16497@dhcp22.suse.cz> References: <1438779685-5227-1-git-send-email-vbabka@suse.cz> <1438779685-5227-5-git-send-email-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438779685-5227-5-git-send-email-vbabka@suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05-08-15 15:01:25, Vlastimil Babka wrote: > From: Jerome Marchand > > It's currently inconvenient to retrieve MM_ANONPAGES value from status > and statm files and there is no way to separate MM_FILEPAGES and > MM_SHMEMPAGES. Add VmAnon, VmFile and VmShm lines in /proc//status > to solve these issues. Yes this is definitely an improvement. I have no strong opinion on naming. VmFOO is consistent with the rest (e.g. VmData, Stk...) > > Signed-off-by: Jerome Marchand > Signed-off-by: Vlastimil Babka Acked-by: Michal Hocko [...] > @@ -82,7 +91,7 @@ unsigned long task_statm(struct mm_struct *mm, > unsigned long *data, unsigned long *resident) > { > *shared = get_mm_counter(mm, MM_FILEPAGES) + > - get_mm_counter(mm, MM_SHMEMPAGES); > + get_mm_counter_shmem(mm); > *text = (PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK)) > >> PAGE_SHIFT; > *data = mm->total_vm - mm->shared_vm; Ahh, so you have fixed up the compilation issue from previous patch here... This really belong to the previous patch as already noted. -- Michal Hocko SUSE Labs