On Thu, May 31, 2012 at 08:28:34AM +0200, Tomas Bodzar wrote:
> On Thu, May 31, 2012 at 3:45 AM, Juan Francisco Cantero Hurtado
> <[email protected]> wrote:
> > Hi. I've been using OpenBSD on my netbook daily for a few months. I was
> > using apmd with the -C setting. My netbook is slow and the battery life
> > is important, so 800Mhz (apmd -C) or 1600Mhz (apm -A) is not a big
> > difference for me.
> >
> > Now I have a desktop computer with support for cpu speed scaling. In
> > this case the options of apmd are very limited. If I use "-A" my cpu is
> > always at 2700Mhz, wasting energy and heating my room (I live in the
> > very sunny Extremadura :) ). If I use "-C", apm rarely raises the speed
> > and the cpu is almost always at 800Mhz.
> >
> > This is important because when I open a web page with a lot of
> > javascript, the browser is very slow. Also when I compile something with
> > "make -j1", apmd doesn't raise the speed of my CPU, I need use "make
> > -j4" for raising the cpu speed to 2700Mhz.
> 
> What shows top, vmstat, systat about %sys, %usr, %idle during that
> time? Because you can have 800MHz of CPU, but %usr and/or %sys can be
> eg. only 20% so there's no reason to switch to higher frequency.

I've been using top for to check %idle. The problem is that apmd
calculates the average idle. If your system has two cores, the first
with 98%idle and the second with 20%idle, apmd doesn't raise the cpu
speed.

Use limits less strict is the simplest workaround for me.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info

Reply via email to