Re: powerd / cpufreq question

2011-04-12 Thread Alexander Motin
Ian Smith wrote: > On Tue, 12 Apr 2011, Daniel Gerzo wrote: > > On 11.4.2011 6:08, Ian Smith wrote: > > > > > > As you see, total of differences for each cpu is here 89 ticks, but I've > > > no idea of the interval between your two readings, or your value of HZ? > > > > the interval may hav

Re: powerd / cpufreq question

2011-04-12 Thread Ian Smith
On Tue, 12 Apr 2011, Daniel Gerzo wrote: > On 11.4.2011 6:08, Ian Smith wrote: > > > > As you see, total of differences for each cpu is here 89 ticks, but I've > > no idea of the interval between your two readings, or your value of HZ? > > the interval may have been around 1-2 seconds. > M

Re: powerd / cpufreq question

2011-04-11 Thread Daniel Gerzo
On 11.4.2011 6:08, Ian Smith wrote: As you see, total of differences for each cpu is here 89 ticks, but I've no idea of the interval between your two readings, or your value of HZ? the interval may have been around 1-2 seconds. My value of HZ is default, 1000. Are those kern.cp_times values

Re: powerd / cpufreq question

2011-04-10 Thread Ian Smith
On Fri, 8 Apr 2011, Daniel Ger?o wrote: > Hello guys, > > I have a new machine with Xeon(R) CPU X5650 2666.77-MHz and I would like to > utilize powerd(8) on it however, when I run `powerd -v -r90' I see something > like this: > > load 64%, current freq 2668 MHz ( 0), wanted freq 5336 MHz

Re: powerd / cpufreq question

2011-04-09 Thread Kevin Oberman
> Date: Sat, 09 Apr 2011 09:57:28 +0200 > From: Daniel Gerzo > Sender: owner-freebsd-sta...@freebsd.org > > On 8.4.2011 19:52, Alexander Motin wrote: > > >> So, here is my attempt to implement it: > >> http://danger.rulez.sk/powerd.diff > >> Can you please review & comment? I should be able to c

Re: powerd / cpufreq question

2011-04-09 Thread Bartosz Fabianowski
On my Core i7 setup here, the change seems to work well. ... in your specific workload. And you haven't described how you measured system performance to prove that it haven't decreased. My measure of "performance" is entirely unscientific: This is a desktop box. Performance is good if KDE rea

Re: powerd / cpufreq question

2011-04-09 Thread Alexander Motin
On 09.04.2011 17:39, Bartosz Fabianowski wrote: I just noticed this thread a day after my own fight with powerd and load percentages that did not seem to make any sense. The patch I came up with is attached. It modifies powerd to use the load percentage of the busiest core. This reduces the rang

Re: powerd / cpufreq question

2011-04-09 Thread Bartosz Fabianowski
I just noticed this thread a day after my own fight with powerd and load percentages that did not seem to make any sense. The patch I came up with is attached. It modifies powerd to use the load percentage of the busiest core. This reduces the range of values back to 0%...100% also for multi-c

Re: powerd / cpufreq question

2011-04-09 Thread Alexander Motin
On 09.04.2011 10:57, Daniel Gerzo wrote: On 8.4.2011 19:52, Alexander Motin wrote: So, here is my attempt to implement it: http://danger.rulez.sk/powerd.diff Can you please review & comment? I should be able to commit it mysqlf if you consider it acceptable. It seems to work for me :) Looks fi

Re: powerd / cpufreq question

2011-04-09 Thread Daniel Gerzo
On 8.4.2011 19:52, Alexander Motin wrote: So, here is my attempt to implement it: http://danger.rulez.sk/powerd.diff Can you please review & comment? I should be able to commit it mysqlf if you consider it acceptable. It seems to work for me :) Looks fine, except that -f option have to be the

Re: powerd / cpufreq question

2011-04-08 Thread Alexander Motin
On 08.04.2011 19:53, Daniel Gerzo wrote: On Fri, 08 Apr 2011 18:02:28 +0300, Alexander Motin wrote: OK, I understand what you are saying here. On the other side, I know pretty well how the load is distributed - in this particular case, the box is a web server, running ~30 php-cgi processes. This

Re: powerd / cpufreq question

2011-04-08 Thread Daniel Gerzo
On Fri, 08 Apr 2011 18:02:28 +0300, Alexander Motin wrote: OK, I understand what you are saying here. On the other side, I know pretty well how the load is distributed - in this particular case, the box is a web server, running ~30 php-cgi processes. This kind of operation doesn't require very

Re: powerd / cpufreq question

2011-04-08 Thread Alexander Motin
On 08.04.2011 17:42, Daniel Gerzo wrote: On Fri, 08 Apr 2011 14:42:04 +0300, Alexander Motin wrote: root@[s1-a ~]# powerd -v -r 1000 -i 600 powerd: 1000 is not a valid percent Well, that makes sense, but why powerd itself knows about load > 100% but doesn't allow me to specify it? Is this bug?

Re: powerd / cpufreq question

2011-04-08 Thread Daniel Gerzo
On Fri, 08 Apr 2011 14:42:04 +0300, Alexander Motin wrote: Hello Alexander, thanks for quick reply; root@[s1-a ~]# powerd -v -r 1000 -i 600 powerd: 1000 is not a valid percent Well, that makes sense, but why powerd itself knows about load > 100% but doesn't allow me to specify it? Is this bu

Re: powerd / cpufreq question

2011-04-08 Thread Alexander Motin
Hi. On 08.04.2011 14:12, Daniel Geržo wrote: I have a new machine with Xeon(R) CPU X5650 2666.77-MHz and I would like to utilize powerd(8) on it however, when I run `powerd -v -r90' I see something like this: load 64%, current freq 2668 MHz ( 0), wanted freq 5336 MHz load 120%, current freq 266