From owner-freebsd-current@FreeBSD.ORG Fri Dec 24 14:50:26 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 0E2EB106564A for ; Fri, 24 Dec 2010 14:50:26 +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 908D28FC0A for ; Fri, 24 Dec 2010 14:50:20 +0000 (UTC) Received: by fxm16 with SMTP id 16so7630426fxm.13 for ; Fri, 24 Dec 2010 06:50:20 -0800 (PST) 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:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=wLe44qhjoDFGJWlj1sScNABEnMXyFUVIJO8Lpn/v2dU=; b=iGTZ0ONgnRKRICd5IiITY0CEZlHwUljKtlyAdFCM+F/KxAUT4xfzcKFdk/Zkd7c9tn bWNxpr9Bm+1A7ZyJgkqwewo7okKhoCbuRYGd+4HFzdlX0l6903lN3XWh+FYPiQMw4Mza 1T4XFISsI1TwGfYS8kWtKdWZUHrJOnBqp6kVg= 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:x-enigmail-version:content-type :content-transfer-encoding; b=Kw6JCURLmUJ1mrSGoVQp1+DeDrjH5qjAdDsyddqTJcrD7CZq2h9WdS28NVvM0GCFuK TEw9kqKf2IpKOowr8GzIuDLZDr/b9Rfy8ltx0zzeEBVvNXhIFHVgyoYomNozrmi7NiNM cnk9g8eq3V7R8G4QlQXqW2Ral63WB+XYJXrQM= Received: by 10.223.102.67 with SMTP id f3mr8908329fao.125.1293202220264; Fri, 24 Dec 2010 06:50:20 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id a25sm2301257fak.44.2010.12.24.06.50.17 (version=SSLv3 cipher=RC4-MD5); Fri, 24 Dec 2010 06:50:18 -0800 (PST) Sender: Alexander Motin Message-ID: <4D14B30E.3090609@FreeBSD.org> Date: Fri, 24 Dec 2010 16:49:50 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Stefan Farfeleder References: <20101224143124.GC2642@mole.fafoe.narf.at> In-Reply-To: <20101224143124.GC2642@mole.fafoe.narf.at> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: eventtimers hiccups 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, 24 Dec 2010 14:50:26 -0000 Hi, Stefan Farfeleder wrote: > since the new eventtimers code was committed, my notebook (Dell > Precision m4400) sometimes hangs for 10-30 seconds, mostly during load. > In these periods I can move the mouse pointer but time (as perceived by > time(1)) seems to be halted. This is accompanied by lots of calcru: > runtime went backwards message, though sometimes they only show up when > shutting down. > > I now set kern.eventtimer.periodic=1 and have not experienced such > freezes since then. But it would be nice if the default settigs would > work. Is there something I could do to help fixing this? > BTW, I'm not using powerd. Have you tried to look on what happens with your HPET interrupts during the problem? Is it timer hardware/driver problem, or something else? Have you tried to use LAPIC timer? - it has no race window between start and completion that may potentially stop HPET timer in some situations. Have you tried to enable kern.eventtimer.idletick? The best diagnostic would be to get KTR dump at the moment when problem begins. You should build kernel with options KTR options ALQ options KTR_ALQ options KTR_COMPILE=(KTR_SPARE2) options KTR_ENTRIES=131072 options KTR_MASK=(KTR_SPARE2) and as soon as problem begins (before logs wrapped) you should run `ktrdump -c -o dump`. Also you may try in file acpi_hpet.c change line if (fdiv < 5000) { to the if (fdiv < 50000) { . -- Alexander Motin