From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by kanga.kvack.org (Postfix) with ESMTP id 964A46B0253 for ; Thu, 30 Jul 2015 05:12:34 -0400 (EDT) Received: by lafd3 with SMTP id d3so21292990laf.1 for ; Thu, 30 Jul 2015 02:12:34 -0700 (PDT) Received: from relay.parallels.com (relay.parallels.com. [195.214.232.42]) by mx.google.com with ESMTPS id b9si320099lah.122.2015.07.30.02.12.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 02:12:32 -0700 (PDT) Date: Thu, 30 Jul 2015 12:12:12 +0300 From: Vladimir Davydov Subject: Re: [PATCH -mm v9 0/8] idle memory tracking Message-ID: <20150730091212.GA8100@esperanza> References: <20150729123629.GI15801@dhcp22.suse.cz> <20150729135907.GT8100@esperanza> <20150729142618.GJ15801@dhcp22.suse.cz> <20150729152817.GV8100@esperanza> <20150729154718.GN15801@dhcp22.suse.cz> <20150729162908.GY8100@esperanza> <20150729143015.e8420eca17acbd36d1ce9242@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20150729143015.e8420eca17acbd36d1ce9242@linux-foundation.org> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Michal Hocko , Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Greg Thelen , Michel Lespinasse , David Rientjes , Pavel Emelyanov , Cyrill Gorcunov , Jonathan Corbet , linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org On Wed, Jul 29, 2015 at 02:30:15PM -0700, Andrew Morton wrote: > On Wed, 29 Jul 2015 19:29:08 +0300 Vladimir Davydov wrote: > > > /proc/kpageidle should probably live somewhere in /sys/kernel/mm, but I > > added it where similar files are located (kpagecount, kpageflags) to > > keep things consistent. > > I think these files should be moved elsewhere. Consistency is good, > but not when we're being consistent with a bad thing. > > So let's place these in /sys/kernel/mm and then start being consistent > with that? I really don't think we should separate kpagecgroup from kpagecount and kpageflags, because they look very similar (each of them is read-only, contains an array of u64 values referenced by PFN). Scattering these files between different filesystems would look ugly IMO. However, kpageidle is somewhat different (it's read-write, contains a bitmap) so I think it's worth moving it to /sys/kernel/mm. We have to move the code from fs/proc to mm/something then to remove dependency from PROC_FS, which would be unnecessary. Let me give it a try. Thanks, Vladimir -- 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