From owner-freebsd-current@FreeBSD.ORG Fri Sep 10 15:31:23 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BE3F1065673 for ; Fri, 10 Sep 2010 15:31:23 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A93F48FC1A for ; Fri, 10 Sep 2010 15:31:22 +0000 (UTC) Received: by fxm4 with SMTP id 4so2104007fxm.13 for ; Fri, 10 Sep 2010 08:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=WSQ1akvluoW6V1jiPV3GjDx4hO8t/NU5v+mKGvsvsmg=; b=SxfY/i2AZteR0GNWj7M+fGdXHFmEG14Rqmn0Irq/zYEQ7g+hixMnli60JZG4RFkZ2R +n9IwIdeFfx38yNqXfrNr07UFFAVBGg+zImqL4081QVSvGWUCM1aFo1DT+0TYWNQbPwK g2whCIUp4Z7WbPYg33ilJqgCyhhkV8xqX/OSc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Z6JBlrU59RwYb1YNi9hheKgM3ImdrhrL4aruLxDoeuPI8acloAVdrVsetJQcjwKRUV Pf3WoiuVZkfduphy1Q7Cp3lRSc692umyTxjdtX5Caf8V+WlFm9ifIVHW8Z96r+X4stC9 LizWnHbCnUVN6HSOU4uDEWdE8B70i+sX7lqHE= Received: by 10.204.65.71 with SMTP id h7mr626761bki.175.1284132681294; Fri, 10 Sep 2010 08:31:21 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id y2sm2092444bkx.20.2010.09.10.08.31.18 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 08:31:19 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C8A4F37.6000103@FreeBSD.org> Date: Fri, 10 Sep 2010 18:31:03 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: "Thomas E. Spanjaard" , FreeBSD-Current References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Eventtimers b0rking w/ math/atlas X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 15:31:23 -0000 Hi. Thomas E. Spanjaard wrote: > While trying to build math/atlas on a FreeBSD/amd64 9.0-CURRENT r212411, > the kernel hangs at some point when math/atlas tries to run some tests > (presumably the ones to profile the code and optimise). The kernel > spouts messages about Starting event timers: LAPIC @ 1000Hz, HPET @ > 127Hz; then LAPIC @ 1000Hz, HPET @ 8128Hz (iirc), back, then back again. > After that, the system is no longer responsive, and eventually panic()s > because some spinlock has been held too long in the pmap TLB invalidate > code. Couldn't get a dump, because I had no dumpdev configured. > > Anyone else see this problem? I'm trying to reproduce it by building > other ports (it has survived gcc44, gcc45, llvm and clang so far), but > only math/atlas seems to trigger it. It is reported deadlock between event timers and some IPI senders, like TLB invalidation, during switching to/from profiling clock rate. In forthcoming version of event timer patch this problem should not happen. You can get latest version of the patch here: http://people.freebsd.org/~mav/timers_oneshot13.patch -- Alexander Motin