[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPU throtteling on Notebooks (where is the option gone?)



On Mon, 3 May 2004 11:18:57 +1000
dons@cse.unsw.edu.au (Donald Bruce Stewart) wrote:

> rembrandt:
> > I can remember that it was possible on 3.4 to throttle the hw.cpuspeed.
> > 
> > But on 3.5 it seams so that I'm not able to change the cpu-speed nor
> > using Pentium-Mobile feautures.
> > 
> > As root on 3.5 and my Notebook:
> > 
> > # sysctl -a hw.cpuspeed
> > hw.cpuspeed=1600
> > # sysctl -a hw.setperf
> > hw.setperf=100
> > # hw.setperf: 100 -> 50
> > ksh: hw.setperf:: not found
> > # hw.setperf: 100 -> 50
> > ksh: hw.setperf:: not found
> > # hw.cpuspeed = 1200
> > ksh: hw.cpuspeed: not found
> > # sysctl -w hw.setperf=50
> > hw.setperf: 100 -> 50
> > # sysctl -a hw.cpuspeed
> > hw.cpuspeed=1600
> > # 
> > 
> > Did something changed or did I remember the wrong commands to use that feauture?
> 
> You've forgotten the commands.
> 
>         $ sudo sysctl -w hw.setperf=0
>         hw.setperf: 0 -> 0
> 
>         $ md5 -t | grep Time     
>         Time   = 1.733023 seconds
> 
>         $ sudo sysctl -w hw.setperf=100
>         hw.setperf: 0 -> 100
>          
>         $ md5 -t | grep Time           
>         Time   = 0.649105 seconds
> 
> -- Don

Thank!
What's happen if setperf is not avaiable?
Here's some other guy with a notebook from the IRC:

<Meista> sysctl: hw.setperf: value is not available

For me it works, thanks! :-)
What's about him?

I will tell him to create a dmesg and send it to the list.
He told me that it works under LINUX.

And: He wondered that ALL components work with BSD!
So I think I could say: THANK YOU OPENBSD :-)

What's about a deamon wich controlls the usage of the computer/notbook to controll the cpu-speed?
Maybe such a deamon could be controlled over the load average? if it's to high -> 5% more CPU-Speed.