Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753192AbbHUGxZ (ORCPT ); Fri, 21 Aug 2015 02:53:25 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:34865 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbbHUGxX (ORCPT ); Fri, 21 Aug 2015 02:53:23 -0400 Date: Fri, 21 Aug 2015 08:53:21 +0200 From: Michal Hocko To: Naoya Horiguchi Cc: Andrew Morton , David Rientjes , =?iso-8859-1?Q?J=F6rn?= Engel , Mike Kravetz , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Naoya Horiguchi Subject: Re: [PATCH v5 2/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/status Message-ID: <20150821065321.GD23723@dhcp22.suse.cz> References: <20150812000336.GB32192@hori1.linux.bs1.fc.nec.co.jp> <1440059182-19798-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1440059182-19798-3-git-send-email-n-horiguchi@ah.jp.nec.com> <20150820110004.GB4632@dhcp22.suse.cz> <20150820233450.GB10807@hori1.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150820233450.GB10807@hori1.linux.bs1.fc.nec.co.jp> 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 Content-Length: 1020 Lines: 24 On Thu 20-08-15 23:34:51, Naoya Horiguchi wrote: [...] > > Reading a single file is, of course, easier but is it really worth the > > additional code? I haven't really looked at the patch so I might be > > missing something but what would be an advantage over reading > > /proc//smaps and extracting the information from there? > > My first idea was just "users should feel it useful", but permission as David > commented sounds a good technical reason to me. 9 files changed, 112 insertions(+), 1 deletion(-) is quite a lot especially when it touches hot paths like fork so it better should have a good usecase. I have already asked in the other email but is actually anybody requesting this? Nice to have is not a good justification IMO. -- Michal Hocko SUSE Labs -- 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/