From owner-freebsd-questions@FreeBSD.ORG Tue Jul 5 04:27:16 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 55E2A1065670 for ; Tue, 5 Jul 2011 04:27:16 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from mail-gw0-f45.google.com (mail-gw0-f45.google.com [74.125.83.45]) by mx1.freebsd.org (Postfix) with ESMTP id 156BA8FC18 for ; Tue, 5 Jul 2011 04:27:15 +0000 (UTC) Received: by gwb19 with SMTP id 19so3112271gwb.18 for ; Mon, 04 Jul 2011 21:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=w933UYqQC5XYJ7wsNW9R0ht5v1jeefbojAjKMfWUq+g=; b=mnzgXJ31cRSgYNLBc21jrq45QYo6OPZaF/4ZTWhyQ74CzqBlTlRh0xPvPFGZyVPyJ7 CmdLM4t0BNNPlDeNCB2U/4x9ecSthRYQBYX7ZKohOWOjcrj+XNrsz18ZBzpEwGX7GtnR NvNyGDkj2IR2PyjZK+PhV65JK/BEocovDQjAw= MIME-Version: 1.0 Received: by 10.150.99.2 with SMTP id w2mr5499793ybb.305.1309840035223; Mon, 04 Jul 2011 21:27:15 -0700 (PDT) Received: by 10.151.15.19 with HTTP; Mon, 4 Jul 2011 21:27:15 -0700 (PDT) In-Reply-To: <20110630045559.GD44024@dan.emsphone.com> References: <4E0BF66F.9080800@gmail.com> <20110630045559.GD44024@dan.emsphone.com> Date: Tue, 5 Jul 2011 09:57:15 +0530 Message-ID: From: manish jain To: Dan Nelson Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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: Tue, 05 Jul 2011 04:27:16 -0000 Hello Dan, It looks like ppp is doing a lot of read and write operations, which keeps the disk spinning. How do I set this right ? Is there something wrong with my ppp.conf (see below) ? ppp.conf : default: set log Phase Chat LCP IPCP CCP tun command allow users bourne # ident user-ppp VERSION (built COMPILATIONDATE) set device /dev/cuaU0.0 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK AT&FE0V1X1&D2&C1S0=0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) huawei: set phone "#777" set login set authname "internet" set authkey "" set timeout 180 disable ipv6cp set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR accept CHAP On 30 June 2011 10:26, Dan Nelson wrote: > In the last episode (Jun 30), Manish Jain said: > > > > 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. > > To see what disk I/O is being done, try running "ktrace -dip 0 ; sleep 10 ; > ktrace -C", to capture all syscalls done on the entire system (pid 0 plus > children) for 10 seconds, then run "kdump -m64 | less" to view the results. > Look for read or write calls. > > > '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 > > As for this, what's to resolve? The idle process is a placeholder with one > thread per CPU that accounts for time the CPU isn't doing any work. If you > want to reduce it's "CPU use", run other CPU-intensive processes :) BTW, > Windows has the same thing if you look at task manager; it's called "System > Idle Process" there. > > -- > Dan Nelson > dnelson@allantgroup.com >