Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758374AbYGOIvp (ORCPT ); Tue, 15 Jul 2008 04:51:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755604AbYGOIvh (ORCPT ); Tue, 15 Jul 2008 04:51:37 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:58279 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755488AbYGOIvg (ORCPT ); Tue, 15 Jul 2008 04:51:36 -0400 X-IronPort-AV: E=McAfee;i="5200,2160,5338"; a="4545975" Message-ID: <487C6515.1040005@qualcomm.com> Date: Tue, 15 Jul 2008 01:51:33 -0700 From: Max Krasnyansky User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Rusty Russell CC: Heiko Carstens , Jeremy Fitzhardinge , Christian Borntraeger , Hidetoshi Seto , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Zachary Amsden Subject: Re: [PATCH] stopmachine: add stopmachine_timeout References: <487B05CE.1050508@jp.fujitsu.com> <20080714212026.GA6705@osiris.boeblingen.de.ibm.com> <487C0A76.8060401@qualcomm.com> <200807151810.00365.rusty@rustcorp.com.au> In-Reply-To: <200807151810.00365.rusty@rustcorp.com.au> 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: 1907 Lines: 38 Rusty Russell wrote: > On Tuesday 15 July 2008 12:24:54 Max Krasnyansky wrote: >> Heiko Carstens wrote: >>> On Mon, Jul 14, 2008 at 11:56:18AM -0700, Jeremy Fitzhardinge wrote: >>> This is asking for trouble... a config option to disable this would be >>> nice. But as I don't know which problem this patch originally addresses >>> it might be that this is needed anyway. So lets see why we need it first. >> How about this. We'll make this a sysctl, as Rusty already did, and set the >> default to 0 which means "never timeout". That way crazy people like me who >> care about this scenario can enable this feature. > > Indeed, this was my thought too. s390 can initialize it to zero somewhere in > their boot code. > >> btw Rusty, I just had this "why didn't I think of that" moments. This is >> actually another way of handling my workload. I mean it certainly does not >> fix the root case of the problems and we still need other things that we >> talked about (non-blocking module delete, lock-free module insertion, etc) >> but at least in the mean time it avoids wedging the machines for good. >> btw I'd like that timeout in milliseconds. I think 5 seconds is way tooooo >> long :). > > We can make it ms, sure. 200ms should be plenty of time: worst I ever saw was > 150ms, and that was some weird Power box doing crazy stuff. I wouldn't be > surprised if you'd never see 1ms on your hardware. Sounds good. > The ipi idea would handle your case a little more nicely, too, but that's > probably not going to hit this merge window. Which reminds me that I wanted to submit a bunch of kthread and workqueue related things in this window :). Max -- 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/