Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753647AbYHNDgS (ORCPT ); Wed, 13 Aug 2008 23:36:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751164AbYHNDgF (ORCPT ); Wed, 13 Aug 2008 23:36:05 -0400 Received: from gw.goop.org ([64.81.55.164]:51300 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104AbYHNDgE (ORCPT ); Wed, 13 Aug 2008 23:36:04 -0400 Message-ID: <48A3A806.8060509@goop.org> Date: Wed, 13 Aug 2008 20:35:34 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Mathieu Desnoyers CC: "H. Peter Anvin" , Andi Kleen , Linus Torvalds , Ingo Molnar , Steven Rostedt , Steven Rostedt , LKML , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Miller , Roland McGrath , Ulrich Drepper , Rusty Russell , Gregory Haskins , Arnaldo Carvalho de Melo , "Luis Claudio R. Goncalves" , Clark Williams , Christoph Lameter Subject: Re: [RFC PATCH] x86 alternatives : fix LOCK_PREFIX race with preemptible kernel and CPU hotplug References: <20080813175213.GA8679@Krystal> <20080813184142.GM1366@one.firstfloor.org> <20080813193011.GC15547@Krystal> <20080813193715.GQ1366@one.firstfloor.org> <20080813200119.GA18966@Krystal> <20080813234156.GA25775@Krystal> <48A375E3.9090609@zytor.com> <48A388CE.2020404@goop.org> <20080814014944.GA31883@Krystal> In-Reply-To: <20080814014944.GA31883@Krystal> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 19 Mathieu Desnoyers wrote: > A virtualized guest kernel could use that to limit its use of the > overall machine CPU resources in different time periods. Policies can > determine how many physical CPU a virtual machine can be tied to, and > that may change depending on e.g. the workload or time of day. Having > the ability to efficiently switch to UP for a long period of time seems > important in this use-case. Not very convinced. Unplugging cpus is a pretty coarse way to control resource use. There are lots of other mechanisms. And it's not like an uncontended lock is all that expensive these days... J -- 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/