From owner-freebsd-xen@FreeBSD.ORG Sat Nov 20 08:17:26 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 775B2106566B; Sat, 20 Nov 2010 08:17:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D82928FC08; Sat, 20 Nov 2010 08:17:25 +0000 (UTC) Received: by wyb35 with SMTP id 35so4494223wyb.13 for ; Sat, 20 Nov 2010 00:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=IOJtQOXw/BD6bulkI5fb31YTcUBb+X3bx6YJyUM2qHI=; b=K2XBKzpXocAsD6eM4V/OwvdKMwv6ulfsXvAkKQfZ+hDDjSYL1ZJjMI65WP09DWWfMr 9T82HusT0vCna7njUCUsOxfkgkn2qRADfC8z0mzAJevX1r0VpigBGPlqmAyymvj7kKNm DCRfl8xZqNnU6X44+LrVSBKW341X5A7LmXjo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=N65lNGJ3m9zrJyXsZ+vpWWJ+MaL6W9JzEYJEMVtVdRxC7TwoFKknSk0SlZ0iNo6U+Z YNziWoYDR5YJwbZrqLnn5nxsrBRHFuZLSEDqDFCzY/Nxqx+RBPY4FrNvTpjwfpo7S4ZR ygiW3sUI4WSwgaGASiFdMh8srgz5Pe2VQCkL0= MIME-Version: 1.0 Received: by 10.216.30.65 with SMTP id j43mr2883325wea.20.1290241044239; Sat, 20 Nov 2010 00:17:24 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.65.210 with HTTP; Sat, 20 Nov 2010 00:17:24 -0800 (PST) In-Reply-To: <4CE7837E.3030901@freebsd.org> References: <4CE68CD7.10804@freebsd.org> <1290191413.1758.16.camel@localhost> <4CE77AE7.3010106@freebsd.org> <4CE7837E.3030901@freebsd.org> Date: Sat, 20 Nov 2010 16:17:24 +0800 X-Google-Sender-Auth: 0pgjNw0qHxmb4C8v2WQNwfgN_IU Message-ID: From: Adrian Chadd To: Colin Percival Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-xen@freebsd.org" Subject: Re: system stalls when wallclock/TOD nudged X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Nov 2010 08:17:26 -0000 On 20 November 2010 16:14, Colin Percival wrote: > On 11/19/10 23:40, Adrian Chadd wrote: >> I bet if you did some slicing of -head versions, you'll find an >> earlier version that doesn't do that. :-) > > Sure, all I need to do is go back a couple of days, and I find a FreeBSD > Xen kernel which doesn't do this... because it panics before the clock > gets nudged. :-) > Well, try a -head kernel from 6 months ago but patch with your recent changes? :-) Adrian >> On 20 November 2010 15:38, Colin Percival wrote: >>> It seems that this bug is related somehow to the idle thread sleeping -= - when >>> I comment out the call to idle_block from cpu_idle_hlt in i386/machdep.= c the >>> stalling goes away. >>> >>>> On Fri, 2010-11-19 at 06:42 -0800, Colin Percival wrote: >>>>> During the boot process, in the middle of running rc.d scripts, my Fr= eeBSD/Xen >>>>> instance stalls. =A0It does nothing until I send a shutdown signal, a= t which point >>>>>> [XEN] hypervisor wallclock nudged; nudging TOD. >>>>> and a couple buffered lines of rc.d script output are printed. =A0Fro= m there the >>>>> rc.shutdown script starts running, but it too stalls after a short ti= me; then I >>>>> see >>>>>> [XEN] hypervisor wallclock nudged; nudging TOD. >>>>>> Nov 19 14:08:33 init: timeout expired for /bin/sh on /etc/rc.shutdow= n: Interrupted system call; going to single user mode >>>>> printed, suggesting that the shutdown watchdog timer at least managed= to not get >>>>> stuck even though everything else did. > > -- > Colin Percival > Security Officer, FreeBSD | freebsd.org | The power to serve > Founder / author, Tarsnap | tarsnap.com | Online backups for the truly pa= ranoid >