From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753046AbbGNPcf (ORCPT ); Tue, 14 Jul 2015 11:32:35 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34823 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752968AbbGNPcd (ORCPT ); Tue, 14 Jul 2015 11:32:33 -0400 Date: Tue, 14 Jul 2015 17:32:29 +0200 From: Michal Hocko To: Vladimir Davydov Cc: Johannes Weiner , Andrew Morton , Tejun Heo , Oleg Nesterov , Greg Thelen , KAMEZAWA Hiroyuki , KOSAKI Motohiro , linux-mm@kvack.org, LKML Subject: Re: [PATCH 7/8] memcg: get rid of mm_struct::owner Message-ID: <20150714153229.GH17660@dhcp22.suse.cz> References: <1436358472-29137-1-git-send-email-mhocko@kernel.org> <1436358472-29137-8-git-send-email-mhocko@kernel.org> <20150708173251.GG2436@esperanza> <20150709140941.GG13872@dhcp22.suse.cz> <20150710075400.GN2436@esperanza> <20150710124520.GA29540@dhcp22.suse.cz> <20150711070905.GO2436@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150711070905.GO2436@esperanza> 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 Sat 11-07-15 10:09:06, Vladimir Davydov wrote: [...] > Why can't we make root_mem_cgroup statically allocated? AFAICS it's a > common practice - e.g. see blkcg_root, root_task_group. It's not that easy. mem_cgroup doesn't have a fixed size. It depends on the number of online nodes. I haven't looked closer to this yet but cgroup has an early init code path maybe we can hook in there. I would like to settle with the current issues described in other email first, though. This is just a cosmetic issue. -- Michal Hocko SUSE Labs