Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Feb 2002 21:30:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Feb 2002 21:30:44 -0500 Received: from rcpt-expgw.biglobe.ne.jp ([210.147.6.232]:14837 "EHLO rcpt-expgw.biglobe.ne.jp") by vger.kernel.org with ESMTP id ; Wed, 20 Feb 2002 21:30:31 -0500 X-Biglobe-Sender: Date: Wed, 20 Feb 2002 18:29:43 -0800 From: Kimio Suganuma To: Paul Jackson Subject: Re: [Lse-tech] Re: [PATCH] O(1) scheduler set_cpus_allowed for non-current tasks Cc: Erich Focht , Robert Love , linux-kernel , Ingo Molnar , Matthew Dobson , lse-tech@lists.sourceforge.net In-Reply-To: In-Reply-To: <20020220173242.2BDF.K-SUGANUMA@mvj.biglobe.ne.jp> Message-Id: <20020220181141.2BE2.K-SUGANUMA@mvj.biglobe.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.05 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Feb 2002 18:04:49 -0800 Paul Jackson wrote: > On Wed, 20 Feb 2002, Kimio Suganuma wrote: > > > > CPU hotplug needs to change cpus_allowed in definite time. > > When a process is sleeping for 100000 seconds, how can we offline > > a CPU the process belongs? > > Good - I figured I'd hear from you on this - thanks. > > Are you thinking "definite time" on the order of a second? > I presume you don't require millisecond response time, and that > minute response time would be too slow, right? Exactly. > And just brainstorming ... if a process is sleeping for a long > time, and the last cpu it executed on is being taken offline, > what need is there to wake up the process? Let the process > stay asleep, and find it a new home when it wakes up for other > reasons. In such the case, the waken up process's p->cpu must be changed by another process or in interrupt, not by itself. So, we cannot assume that p->cpu, or p->cpus_allowed, must be changed by itself, right? > In other words, perhaps the goal of having the smallest, > simplest, least intrusive, most clearly correct code is more > important here than waking up a process just to tell it that > it's last cpu went offline. Smallest, simplest and correct... I wish I could figure out such codes. :( Regards, Kimi -- Kimio Suganuma - 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/