From owner-freebsd-questions@FreeBSD.ORG Thu Jun 30 04:36:52 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E30D106566C for ; Thu, 30 Jun 2011 04:36:52 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 71D4F8FC1C for ; Thu, 30 Jun 2011 04:36:52 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p5U4b6uY025074 for freebsd-questions@freebsd.org; Wed, 29 Jun 2011 23:37:06 -0500 (CDT) Date: Wed, 29 Jun 2011 23:37:06 -0500 (CDT) From: Robert Bonomi Message-Id: <201106300437.p5U4b6uY025074@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <4E0BF66F.9080800@gmail.com> Subject: Re: PID 11 using 400% CPU X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2011 04:36:52 -0000 > From owner-freebsd-questions@freebsd.org Wed Jun 29 23:07:59 2011 > Date: Thu, 30 Jun 2011 09:37:11 +0530 > From: Manish Jain > To: freebsd-questions@freebsd.org > Subject: PID 11 using 400% CPU > > > Hello All, > I have a strange problem with my 8.1 box. After booting, the hard disk > goes into a full-speed never-ending spin. 'ps waux' always shows pid > 11 as taking 400% CPU utilization : > /root # ps -up 11 > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > root 11 400.0 0.0 0 32 ?? RL 7:22PM 166:35.46 [idle] > I have tried multiple tweaks to resolve this - all to no effect. The > only thing that seems out of place is that polkitd seems to be > missing. (I have no idea why this is the case). /etc/rc.conf states > polkitd_enable="YES". > This happens even in single-user mode, which I used to try to fix any > filesystem errors with 'fsck -fy' : there were none. > My system has only 2 partitions : ad8s2a (/) and ad8s2b (swap). > Any pointers to what might the problem be ? Thanks in advance. The problem is that you have twin dual-core CPUs or a single 4-core CPU. The solution is to substitute a single single-core CPU. This will bring the _system_idle_process_ utilization down to 100% when the system is _not_ doing anything else. OR, you can compile the following C program: #include int main( int argc, char** argv) { while (1); exit(0); } and run, say, 8 copies of it in background. this will reduce the cpu utilization of PID 11 to roughly 0%. The fact that the disk is running is absolutely normal.