From owner-freebsd-current@FreeBSD.ORG Wed May 11 11:33:17 2011 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 E435C1065672; Wed, 11 May 2011 11:33:16 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 852298FC0A; Wed, 11 May 2011 11:33:16 +0000 (UTC) Received: by yie12 with SMTP id 12so151099yie.13 for ; Wed, 11 May 2011 04:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=rByuOgsBfJs204KSycSoRK3X2nTz/KZHXmfP/7VMgd8=; b=sGkzWi+D/x1en+pVPlLOt4l/SQJxaUUDBelOU5U0zlctHgKiSfpw0MVRvokMS9umdz ZtVK2LCT1yg2rTZ2B340c4O2TQK2HFZgaPHhzTqrsWM7hy8NnFT9oV5V1ie05Y2FcPo8 26Bfr/YsCx6TjZuDLdoR4LXeW3KcNeZ72+ZXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=TXKsJc7UN/Pp1B59B0nuieO11nMSr61kF+RQ3HCT+zWu8SekQiItaw9LG/zl/M1rpr rmDxg8biAdMdouLiuauv4LJQfe8HOlW4lIjWgM34cWP+TUT/fbwVxFZYDCcTyAZMaVDt DKth4MzoN56fIh0i2S/Ux5EKJK572PlI4q3C0= Received: by 10.150.53.14 with SMTP id b14mr3898319yba.181.1305113595549; Wed, 11 May 2011 04:33:15 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([24.114.252.234]) by mx.google.com with ESMTPS id w15sm1986624ybe.0.2011.05.11.04.33.14 (version=SSLv3 cipher=OTHER); Wed, 11 May 2011 04:33:14 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DCA73F6.70707@FreeBSD.org> Date: Wed, 11 May 2011 14:33:10 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: Doug Barton References: <4DC25396.1070909@dougbarton.us> <4DCA1C06.6040505@FreeBSD.org> In-Reply-To: <4DCA1C06.6040505@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: My problems with stability on -current 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: Wed, 11 May 2011 11:33:17 -0000 On 11.05.2011 08:17, Doug Barton wrote: > I had an interesting result doing nothing but switching from HPET to > LAPIC ... no crash. Still on the same version of -current (r221566) the > only thing I've done is to add kern.eventtimer.timer="LAPIC" to > /boot/loader.conf, and so far I haven't been able to get it to crash no > matter how much I compile, or how much other stuff I do in the > background. I _can_ get the system heavily loaded enough so that the > mouse can drag across the screen, windows take visible time to repaint, > etc. That happens with a load average of 4+ on this core 2 duo. But > other than that (which is not altogether unreasonable) the system has > been very stable for a couple of days now. > > Does that suggest a next step in terms of what to test? The fact that LAPIC is working fine can mean that problem is either HPET specific or non-per-CPU timers specific. To check that you could try to use i8254 timer in one-shot mode: hint.attimer.0.timecounter=0 kern.eventtimer.timer="i8254" , or use HPET in per-CPU mode: hint.atrtc.0.clock=0 hint.attimer.0.clock=0 hint.hpet.X.legacy_route=1 But the most informative would be to see what's going on with HPET interrupts during the freezes. With HPET hardware it is very easy to loose interrupt. And the lost interrupt means problem for many things. There are some workarounds made for that, but I can't be sure. For that case you could experiment with this patch: --- acpi_hpet.c.prev 2010-12-25 11:28:45.000000000 +0200 +++ acpi_hpet.c 2011-05-11 14:30:59.000000000 +0300 @@ -190,7 +190,7 @@ restart: bus_write_4(sc->mem_res, HPET_TIMER_COMPARATOR(t->num), t->next); } - if (fdiv < 5000) { + if (1 || fdiv < 5000) { bus_read_4(sc->mem_res, HPET_TIMER_COMPARATOR(t->num)); now = bus_read_4(sc->mem_res, HPET_MAIN_COUNTER); -- Alexander Motin