From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH v4 8/8] cgroup: Define CGROUP_SUBSYS_COUNT according the configuration Date: Thu, 13 Sep 2012 14:46:08 +0800 Message-ID: <50518130.6000909@huawei.com> References: <1347459128-32236-1-git-send-email-wagi@monom.org> <1347459128-32236-9-git-send-email-wagi@monom.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1347459128-32236-9-git-send-email-wagi-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Daniel Wagner Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Daniel Wagner , Gao feng , Jamal Hadi Salim , John Fastabend , Neil Horman , Tejun Heo On 2012/9/12 22:12, Daniel Wagner wrote: > From: Daniel Wagner > > Since we know exactly how many subsystems exists at compile time we are > able to define CGROUP_SUBSYS_COUNT correctly. CGROUP_SUBSYS_COUNT will > be at max 12 (all controllers enabled). Depending on the architecture > we safe either 32 - 12 pointers (80 bytes) or 64 - 12 pointers (416 > bytes) per cgroup. > > With this change we can also remove the temporary placeholder to avoid > compilation errors. > > Signed-off-by: Daniel Wagner > Cc: Gao feng > Cc: Jamal Hadi Salim > Cc: John Fastabend > Cc: Li Zefan > Cc: Neil Horman > Cc: Tejun Heo > Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > include/linux/cgroup.h | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) Acked-by: Li Zefan From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH v4 8/8] cgroup: Define CGROUP_SUBSYS_COUNT according the configuration Date: Thu, 13 Sep 2012 14:46:08 +0800 Message-ID: <50518130.6000909@huawei.com> References: <1347459128-32236-1-git-send-email-wagi@monom.org> <1347459128-32236-9-git-send-email-wagi@monom.org> Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Cc: , , Daniel Wagner , Gao feng , Jamal Hadi Salim , John Fastabend , Neil Horman , Tejun Heo To: Daniel Wagner Return-path: In-Reply-To: <1347459128-32236-9-git-send-email-wagi-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 2012/9/12 22:12, Daniel Wagner wrote: > From: Daniel Wagner > > Since we know exactly how many subsystems exists at compile time we are > able to define CGROUP_SUBSYS_COUNT correctly. CGROUP_SUBSYS_COUNT will > be at max 12 (all controllers enabled). Depending on the architecture > we safe either 32 - 12 pointers (80 bytes) or 64 - 12 pointers (416 > bytes) per cgroup. > > With this change we can also remove the temporary placeholder to avoid > compilation errors. > > Signed-off-by: Daniel Wagner > Cc: Gao feng > Cc: Jamal Hadi Salim > Cc: John Fastabend > Cc: Li Zefan > Cc: Neil Horman > Cc: Tejun Heo > Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > include/linux/cgroup.h | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) Acked-by: Li Zefan