From owner-freebsd-current@FreeBSD.ORG Mon Jan 3 11:21:19 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AD341065694 for ; Mon, 3 Jan 2011 11:21:19 +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 CE74C8FC1B for ; Mon, 3 Jan 2011 11:21:18 +0000 (UTC) Received: by fxm16 with SMTP id 16so12944631fxm.13 for ; Mon, 03 Jan 2011 03:21:17 -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 :content-type:content-transfer-encoding; bh=Q05TzUSrs9bKmA5XtDEdsOepuhyeVW+GtQuLskGx7Lw=; b=PFck1CkON6dd6gxMpv+WwXglM3TQ5Bk9VGAjh8vu5SMvVQeDhVOu682kl01G7MdfVl UB2D487jDDHzxo8RCF9DQbeSQSACrep+vsbpUYQXikoGFKwCIraxZP8QrS7f7fqqL3Wf JMjpYs/EmmymrEQmTb4dDxU23BBn1iI7D/zCk= 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=v7c5S+Ww+RjNPCQhfEc/viRJsdEfG7jWKjfW6XhFmuCsNNCvb08qxyi/493aXCB/5N KfchUw6TVDNg9nSQvUOn6S/mwMUWJaO6ZCXVVMTFTQg+IrYlUvAdisfUpmYUfQWDuLc+ eCIx8b/y3yWKQxSS8S7OD/3vkoTd4TsoG1g48= Received: by 10.223.101.141 with SMTP id c13mr1754582fao.118.1294053677696; Mon, 03 Jan 2011 03:21:17 -0800 (PST) Received: from mavbook.mavhome.dp.ua ([91.198.175.253]) by mx.google.com with ESMTPS id 21sm4718521fav.17.2011.01.03.03.21.15 (version=SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 03:21:16 -0800 (PST) Sender: Alexander Motin Message-ID: <4D21B126.1020207@FreeBSD.org> Date: Mon, 03 Jan 2011 13:21:10 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101104 Thunderbird/3.1.6 MIME-Version: 1.0 To: "Matthew D. Fuller" References: <20110103102853.GA89454@over-yonder.net> In-Reply-To: <20110103102853.GA89454@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Oddities in -current post-eventtimer 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: Mon, 03 Jan 2011 11:21:19 -0000 On 03.01.2011 12:28, Matthew D. Fuller wrote: > OK, this has happened a couple times now. I'm running a mid-Oct > -CURRENT, and at around 25 days uptime (not exact but consistently in > that vicinity), things start getting very choppy. It's easily visible > in playing videos; things get very jerky and slow, but all sorts of > things start acting like they're happening in little chunks of time; > keyboard repeats get very slow, things that often take notable time > take much more, etc. It's accompanied by a big spat of "calcru: > runtime went backwards" messages (presumably just another symptom). > > The only fix I've found is to reboot, and then it's good for another > 25ish days. As a workaround, enabling kern.eventtimer.idletick sets > things rightish. A look at the interrupts turns up a hint; while > vmstat says the overall average for cpu0 is just under 300/s, systat > -vmstat shows that it's currnetly running around 20-some. The other > CPU's also settle at much lower levels. > > Another more tiring workaround is just slinging the mouse around real > fast; that seems to hint to the system to keep checking stuff. > Watching systat, that doesn't seem to bring the cpuX interrupt rate up > very much, but the videos start playing smoothly. > > FreeBSD 9.0-CURRENT #0 r214107: Wed Oct 20 06:25:50 CDT 2010 > Quad-core running amd64. Symptoms look very alike to ones fixed at r214597 on 2010-10-31: Fix callout_tickstofirst() behavior after signed integer ticks overflow. This should fix callout precision drop to 1/4s after 25 days of uptime with HZ = 1000. -- Alexander Motin