Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756074AbaGIUYO (ORCPT ); Wed, 9 Jul 2014 16:24:14 -0400 Received: from mail-vc0-f172.google.com ([209.85.220.172]:60085 "EHLO mail-vc0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766AbaGIUYM (ORCPT ); Wed, 9 Jul 2014 16:24:12 -0400 Date: Wed, 9 Jul 2014 16:24:08 -0400 From: Tejun Heo To: Li Zefan Cc: LKML , cgroups Subject: Re: [PATCH v3 12/12] cpuset: export effective masks to userspace Message-ID: <20140709202408.GE21090@htj.dyndns.org> References: <53BD0174.4060002@huawei.com> <53BD0215.8060305@huawei.com> <20140709201549.GD21090@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140709201549.GD21090@htj.dyndns.org> 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 Wed, Jul 09, 2014 at 04:15:49PM -0400, Tejun Heo wrote: > On Wed, Jul 09, 2014 at 04:49:25PM +0800, Li Zefan wrote: > > cpuset.cpus and cpuset.mems are the configured masks, and we need > > to export effective masks to userspace, so users know the real > > cpus_allowed and mems_allowed that apply to the tasks in a cpuset. > > > > v2: > > - export those masks unconditionally, suggested by Tejun. > > > > Signed-off-by: Li Zefan > > I applied this patch but there's a pending patchset to split legacy > and dfl cftype arrays, so maybe doing it separately makes more sense > now, I'm not sure. Anyways, we need to review cpuset interface for > the default hierarchy anyway. At least the memory pressure knobs > should go. It's measuring something which is completely > implementation dependent. The exclusive knobs too. These are purely to aid configuration. memory_migrate is questionable too given that we're moving towards the model where the controllers are set up before the cgroup gets populated. Also, if necessary, this should be implementable from userland with migrate_pages(2). Thanks. -- tejun -- 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/