Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934044AbbDJOOX (ORCPT ); Fri, 10 Apr 2015 10:14:23 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:59059 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933886AbbDJOOT (ORCPT ); Fri, 10 Apr 2015 10:14:19 -0400 Message-ID: <5527DAAA.7030308@linux.vnet.ibm.com> Date: Fri, 10 Apr 2015 19:44:02 +0530 From: Preeti U Murthy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Serge E. Hallyn" , Tejun Heo CC: Peter Zijlstra , lizefan@huawei.com, anton@samba.org, svaidy@linux.vnet.ibm.com, rjw@rjwysocki.net, paulmck@linux.vnet.ibm.com, mingo@kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, bharata@linux.vnet.ibm.com Subject: Re: [PATCH] cpusets: Make cpus_allowed and mems_allowed masks hotplug invariant References: <20141008070739.1170.33313.stgit@preeti.in.ibm.com> <20141008080706.GC10832@worktop.programming.kicks-ass.net> <543505EF.7070804@linux.vnet.ibm.com> <20141008101828.GG10832@worktop.programming.kicks-ass.net> <54364564.3090305@linux.vnet.ibm.com> <20141009130611.GA14387@htj.dyndns.org> <551CE820.9090900@linux.vnet.ibm.com> <20150406174735.GG10582@htj.duckdns.org> <20150409211349.GA28729@mail.hallyn.com> In-Reply-To: <20150409211349.GA28729@mail.hallyn.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041014-0009-0000-0000-00000A00B02F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1917 Lines: 43 Hi Serge, On 04/10/2015 02:43 AM, Serge E. Hallyn wrote: > On Mon, Apr 06, 2015 at 01:47:35PM -0400, Tejun Heo wrote: >> Hello, Preeti. >> >> On Thu, Apr 02, 2015 at 12:26:32PM +0530, Preeti U Murthy wrote: >>> By ensuring that the user configured cpusets are untouched, I don't see >>> how we affect userspace adversely. The expectation usually is that the >>> kernel keeps track of the user configurations. If anything we would be >>> fixing an undesired behavior, wouldn't we? >> >> The problem is not really about which behavior is "righter" but rather >> it's fairly likely that there are users / tools out there expecting >> the current behavior and they wouldn't be too happy to see the >> behavior flipping underneath them. >> >> One way forward would be implementing a knob in cpuset which makes it >> switch sbetween the old and new behaviors in the legacy hierarchy. >> It's yucky but doable if absoluately necessary, but what's the reason >> for you not being able to transition to the unified hierarchy (except > > If the userspace is entirely new then this should work. The > unified hierarchy's behavior is not backward-compatible so any old > software which tried to create cgroups (libcgroup, lxc, etc) will > not work with it (since it won't, for instance, know to fill in > the enabled controllers in every newly created cgroup). > > Preeti, can you confirm that you don't have any need to run any > legacy programs which use cgroups? Long as that's the case, new I don't think I can vouch for this safely. I have posted out a V2 of this patch adhering to Tejun's first suggestion. IMO that seemed like a better option. Regards Preeti U Murthy -- 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/