Re: Make CPU use the C2 state

2014-01-18 Thread Theo de Raadt
> But as other people have said it probably should be a separate > sysctl if implemented. I completely doubt that. We've encountered this before on other processor families, and always chosen to dumb down all the speed/power knobs to 1 user controllable knob.

Re: Make CPU use the C2 state

2014-01-18 Thread John Rogers
On Mon, Jan 13, 2014 at 9:20 AM, Philip Guenther wrote: > C0 is the only state where the CPU does real work; the higher C-states > only make sense for when the CPU is idle, so your question presumably > is "does the CPU get put into a higher C-state when idle". Well, > 5.4-current uses the MWAIT

Re: Make CPU use the C2 state

2014-01-15 Thread Ted Unangst
On Thu, Jan 16, 2014 at 04:20, Juan Francisco Cantero Hurtado wrote: > CPU speed. Some users only want to change the CPU speed and others want > to increase the battery life of their laptops even if the laptop runs > slightly slower. Inevitably, you will need add also a new sysctl entry heh, well,

Re: Make CPU use the C2 state

2014-01-15 Thread Juan Francisco Cantero Hurtado
On Mon, Jan 13, 2014 at 12:20:27AM -0800, Philip Guenther wrote: > On Sun, Jan 12, 2014 at 11:16 PM, John Rogers wrote: > > I'm not an expert on this but my theory is that the problem is not > > that the CPU is running too fast but rather that it is running in a > > high power state, presumably C0

Re: Make CPU use the C2 state

2014-01-13 Thread Philip Guenther
On Sun, Jan 12, 2014 at 11:16 PM, John Rogers wrote: > I'm not an expert on this but my theory is that the problem is not > that the CPU is running too fast but rather that it is running in a > high power state, presumably C0. Do you know if apmd adjusts the > c-state? C0 is the only state where

Re: Make CPU use the C2 state

2014-01-12 Thread John Rogers
On Mon, Jan 13, 2014 at 4:10 AM, Juan Francisco Cantero Hurtado wrote: > On Sun, Jan 12, 2014 at 05:29:02PM +0100, John Rogers wrote: >> Hi. >> >> I have installed OpenBSD 5.4 on a laptop. So far everything runs fine >> but I have the problem that it runs fairly hot even in idle. >> >> I used to r

Re: Make CPU use the C2 state

2014-01-12 Thread Juan Francisco Cantero Hurtado
On Sun, Jan 12, 2014 at 05:29:02PM +0100, John Rogers wrote: > Hi. > > I have installed OpenBSD 5.4 on a laptop. So far everything runs fine > but I have the problem that it runs fairly hot even in idle. > > I used to run FreeBSD on it before and it behaved very similar then, > until I read [1].

Make CPU use the C2 state

2014-01-12 Thread John Rogers
Hi. I have installed OpenBSD 5.4 on a laptop. So far everything runs fine but I have the problem that it runs fairly hot even in idle. I used to run FreeBSD on it before and it behaved very similar then, until I read [1]. Setting performance_cx_lowest="C2" and economy_cx_lowest="C2" did wonder to