From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 14:06:48 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFFDF16A4DF for ; Wed, 19 Jul 2006 14:06:48 +0000 (UTC) (envelope-from victor.cruceru@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EB9943D49 for ; Wed, 19 Jul 2006 14:06:44 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: by wx-out-0102.google.com with SMTP id s7so104747wxc for ; Wed, 19 Jul 2006 07:06:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qp2BKlIeqlTRYewrgEHrI9C/Prfa3zvhZ822gNTk8sbK4Z+Qq0DepSDClevzP64HCuNdsAefqY/trGkNmxGa/aPWquLWHddrKVWPhwuNoozncO0/MCH3q4aFqqKKzsUGwizZw8m/MpMynaIuiUCtDME8M9FtozytYdA1/UeWQDg= Received: by 10.70.45.18 with SMTP id s18mr1199894wxs; Wed, 19 Jul 2006 07:06:43 -0700 (PDT) Received: by 10.70.49.2 with HTTP; Wed, 19 Jul 2006 07:06:43 -0700 (PDT) Message-ID: <49402550607190706q6548ebe7lb9c4dd1ff66b3f1@mail.gmail.com> Date: Wed, 19 Jul 2006 17:06:43 +0300 From: "victor cruceru" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: "swiN: clock sio" process taking 75% CPU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: soc-victor@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 14:06:48 -0000 Hi Gareth, Did you try to disable the console screensaver? Sometimes this helps. > Message: 1 > Date: Tue, 18 Jul 2006 13:17:32 +0100 > From: Gareth McCaughan > Subject: "swiN: clock sio" process taking 75% CPU > To: freebsd-hackers@freebsd.org > Message-ID: <200607181317.33416.gmccaughan@synaptics-uk.com> > Content-Type: text/plain; charset="us-ascii" > > (I've asked this question on -questions and -stable, with no success; > hence I'm taking it to the assembled wizardry of -hackers. A bit of > googling suggests that I'm far from the first person to have had a > similar problem, though it seems to be worse for me than for the > others I've found.) > > I have a box running 6-STABLE, cvsupped last week. > Until recently it was running 5.something and showed > the same peculiar behaviour as I'm about to describe. > Further back, it used to run 4.x, and I don't recall > anything like this happening then. > > About 6 minutes after booting (on three occasions, but I > don't guarantee this doesn't vary), a process (well, a > kernel interrupt thread, I guess) that appears in the > output of "ps" as "[swi4: clock sio]" begins to use > about 3/4 of the machine's CPU. I think it does so > more or less instantaneously. It continues to do so > indefinitely, so far as I can tell. > > I'm not aware of anything specific that triggers this, > though I suppose there must *be* something. It happens > apparently spontaneously, on a lightly loaded machine. > > Those cycles are genuinely being consumed; other processes > run much more slowly than they "should", and take much more > wall time than CPU time. > > I've tried diddling my kernel's HZ value; the behaviour > with HZ=100 and with HZ=1000 is the same, so far as I'm > able to tell. I've no idea whether it might be relevant, > but I have option DEVICE_POLLING turned on; toggling > sysctl kern.polling.enable doesn't seem to make any > difference. > > The machine is a very uninteresting single-CPU Athlon box, > clocked at 1.6GHz, several years old. Here's its dmesg output, > with a few uninteresting bits of information leakage elided. > -- victor cruceru ------------------------------------------------ Non est respondendum ad omnia. ( Cicero, Pro Murena Oratio ) ------------------------------------------------