Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966914Ab2EOVNv (ORCPT ); Tue, 15 May 2012 17:13:51 -0400 Received: from casper.infradead.org ([85.118.1.10]:60064 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966814Ab2EOVNt convert rfc822-to-8bit (ORCPT ); Tue, 15 May 2012 17:13:49 -0400 Message-ID: <1337116407.27694.118.camel@twins> Subject: Re: [PATCH v3 5/5] cpusets, suspend: Save and restore cpusets during suspend/resume From: Peter Zijlstra To: David Rientjes Cc: Nishanth Aravamudan , "Srivatsa S. Bhat" , mingo@kernel.org, pjt@google.com, paul@paulmenage.org, akpm@linux-foundation.org, rjw@sisk.pl, nacc@us.ibm.com, paulmck@linux.vnet.ibm.com, tglx@linutronix.de, seto.hidetoshi@jp.fujitsu.com, tj@kernel.org, mschmidt@redhat.com, berrange@redhat.com, nikunj@linux.vnet.ibm.com, vatsa@linux.vnet.ibm.com, liuj97@gmail.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Date: Tue, 15 May 2012 23:13:27 +0200 In-Reply-To: References: <20120513231325.3566.37740.stgit@srivatsabhat> <20120513231710.3566.45349.stgit@srivatsabhat> <20120515014042.GA9774@linux.vnet.ibm.com> <20120515044539.GA25256@linux.vnet.ibm.com> <1337112653.27694.110.camel@twins> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1035 Lines: 30 On Tue, 2012-05-15 at 14:05 -0700, David Rientjes wrote: > Not sure what you're disagreeing with, it only happens with > MPOL_F_STATIC_NODES or MPOL_F_RELATIVE_NODES and I've clearly defined the > behavior in the man page. I personally never had a use-case for > MPOL_F_RELATIVE_NODES but Paul Jackson asked that it be added for SGI when > we added mempolicy mode flags. So what you're saying is that: task t: set_mempolicy(,mask=2-3); add t to cpuset A A.mems = 0-1 A.mems = 0-n At which point t will again have 2-3, right? My objection is that you'll have to keep the 2-3 mask around some place because t->mems_allowed will be wrecked by cpuset actions. Also, what does it mean to silently return to 2-3 after you've broken that promise by forcing it to 0-1 using cpusets? -- 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/