Date: Fri, 31 May 2013 14:52:04 -0400 From: John Baldwin <jhb@freebsd.org> To: Kostas Oikonomou <k.oikonomou@att.net> Cc: freebsd-amd64@freebsd.org Subject: Re: idle process keeping cpu 150% busy in freebsd 9.1-amd64 Message-ID: <201305311452.04674.jhb@freebsd.org> In-Reply-To: <51A8D208.2040702@att.net> References: <51A7B693.8050705@att.net> <201305311127.13846.jhb@freebsd.org> <51A8D208.2040702@att.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305311452.04674.jhb>