From owner-freebsd-amd64@FreeBSD.ORG Fri May 31 19:00:40 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D26DE6BF for ; Fri, 31 May 2013 19:00:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) by mx1.freebsd.org (Postfix) with ESMTP id B24A57EF for ; Fri, 31 May 2013 19:00:40 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id DF0D5B918; Fri, 31 May 2013 15:00:39 -0400 (EDT) From: John Baldwin To: Kostas Oikonomou Subject: Re: idle process keeping cpu 150% busy in freebsd 9.1-amd64 Date: Fri, 31 May 2013 14:52:04 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <51A7B693.8050705@att.net> <201305311127.13846.jhb@freebsd.org> <51A8D208.2040702@att.net> In-Reply-To: <51A8D208.2040702@att.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201305311452.04674.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 31 May 2013 15:00:40 -0400 (EDT) Cc: freebsd-amd64@freebsd.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2013 19:00:40 -0000 On Friday, May 31, 2013 12:38:32 pm Kostas Oikonomou wrote: > John, > > Thanks. I am trying your suggestions on my Dell laptop (Intel Core i7, > 4 cores). > > First off, my /etc/rc.conf already had > > ------------------------------------------------------------------------ > # powerd: adaptive speed while on AC power, adaptive while on battery power > powerd_enable="YES" > powerd_flags="-a hiadaptive -b adaptive" # set CPU frequency > ------------------------------------------------------------------------ > > and powerd was running. With that, the output of sysctl was like what > you sent (the default). > > Now my /etc/rc.conf reads > ------------------------------------------------------------------------ > # powerd: adaptive speed while on AC power, adaptive while on battery power > powerd_enable="YES" > powerd_flags="-a hiadaptive -b adaptive" # set CPU frequency > > # per John Baldwin email > performance_cx_lowest=LOW > ------------------------------------------------------------------------ > > and I rebooted. This is what sysctl shows now: > > > [ko@hui-neng ~]$ sysctl dev.cpu | grep cx_ > dev.cpu.0.cx_supported: C1/3 C2/205 C3/245 > dev.cpu.0.cx_lowest: C3 > dev.cpu.0.cx_usage: 18.65% 3.89% 77.44% last 2564us > dev.cpu.1.cx_supported: C1/3 C2/205 C3/245 > dev.cpu.1.cx_lowest: C3 > dev.cpu.1.cx_usage: 18.05% 3.42% 78.52% last 2426us > dev.cpu.2.cx_supported: C1/3 C2/205 C3/245 > dev.cpu.2.cx_lowest: C3 > dev.cpu.2.cx_usage: 16.73% 3.63% 79.62% last 6272us > dev.cpu.3.cx_supported: C1/3 C2/205 C3/245 > dev.cpu.3.cx_lowest: C3 > dev.cpu.3.cx_usage: 15.78% 3.42% 80.78% last 2413us > > > But still one core is at 400%, and the fan started running: The core will always look like it is "running" in top, even when it is asleep. That is just how FreeBSD accounts for idle CPU time. The only thing I was hoping would change is the fan having to run. You can try kldload'ing coretemp and seeing if the processor temperatures are different when deeper CX states are enabled (or when powerd is running) to see if it is having any affect on the temperatures in your box. -- John Baldwin