Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753855AbbG0TZb (ORCPT ); Mon, 27 Jul 2015 15:25:31 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47453 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbbG0TZ3 (ORCPT ); Mon, 27 Jul 2015 15:25:29 -0400 Date: Mon, 27 Jul 2015 12:25:27 -0700 From: Andrew Morton To: Kees Cook Cc: Vladimir Davydov , Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Michal Hocko , Greg Thelen , Michel Lespinasse , David Rientjes , Pavel Emelyanov , Cyrill Gorcunov , Jonathan Corbet , Linux API , "linux-doc@vger.kernel.org" , Linux-MM , Cgroups , LKML Subject: Re: [PATCH -mm v9 0/8] idle memory tracking Message-Id: <20150727122527.c6f7786177e9b5096e623d18@linux-foundation.org> In-Reply-To: References: <20150721163402.43ad2527d9b8caa476a1c9e1@linux-foundation.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 925 Lines: 22 On Mon, 27 Jul 2015 12:18:57 -0700 Kees Cook wrote: > > Why were these put in /proc anyway? Rather than under /sys/fs/cgroup > > somewhere? Presumably because /proc/kpageidle is useful in non-memcg > > setups. > > Do we need a /proc/vm/ for holding these kinds of things? We're > collecting a lot there. Or invent some way for this to be sensible in > /sys? /proc is the traditional place for such things (/proc/kpagecount, /proc/kpageflags, /proc/pagetypeinfo). But that was probably a mistake. /proc/sys/vm is rather a dumping ground of random tunables and statuses, but yes, I do think that moving the kpageidle stuff into there would be better. -- 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/