Re: CPU Frequency Scaling and Niceness

2009-04-28 Thread Marius Gedminas
On Mon, Apr 27, 2009 at 04:18:42PM -0400, Evan wrote:
 I just updated to from Intrepid to Jaunty, and I noticed something curious.
 I believe this is a bug, but even if it isn't, I thought it should be
 raised.
 
 If a cpu (or core) is set to Ondemand and an application with a high nice
 value is running:
 - In intrepid, the cpu remained scaled down
 - In jaunty the cpu scales up to 100%
 
 I found a website [1] which does a good job of explaining it, and I tried
 setting my ignore_nice_load to 1, but nice processes still scale the
 processor up. Unless I am mistaken, this is a bug. What information should I
 attach to the bug report?

Why is it a bug?  According to Matthew Garrett, to save power, you want
to finish executing a task as soon as possible, which means running for
a shorter time at 100% speed.

http://mjg59.livejournal.com/88608.html

Marius Gedminas
-- 
Perl is not a programming language, it's a natural language that
computers understand.

Better than people, for the most part.
-- Steve Simmons


signature.asc
Description: Digital signature
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: CPU Frequency Scaling and Niceness

2009-04-28 Thread Evan
On Tue, Apr 28, 2009 at 3:09 PM, Marius Gedminas mar...@pov.lt wrote:

 On Mon, Apr 27, 2009 at 04:18:42PM -0400, Evan wrote:
  I just updated to from Intrepid to Jaunty, and I noticed something
 curious.
  I believe this is a bug, but even if it isn't, I thought it should be
  raised.
 
  If a cpu (or core) is set to Ondemand and an application with a high
 nice
  value is running:
  - In intrepid, the cpu remained scaled down
  - In jaunty the cpu scales up to 100%
 
  I found a website [1] which does a good job of explaining it, and I tried
  setting my ignore_nice_load to 1, but nice processes still scale the
  processor up. Unless I am mistaken, this is a bug. What information
 should I
  attach to the bug report?

 Why is it a bug?  According to Matthew Garrett, to save power, you want
 to finish executing a task as soon as possible, which means running for
 a shorter time at 100% speed.

 http://mjg59.livejournal.com/88608.html


I understand that, however there are cases where restricting very nice
processes is useful. My point is that it isn't doing something that it says
it should do. That is, by definition, a bug. I have reported it at
https://bugs.launchpad.net/ubuntu/+source/cpufreqd/+bug/368809

Evan
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


CPU Frequency Scaling and Niceness

2009-04-27 Thread Evan
I just updated to from Intrepid to Jaunty, and I noticed something curious.
I believe this is a bug, but even if it isn't, I thought it should be
raised.

If a cpu (or core) is set to Ondemand and an application with a high nice
value is running:
- In intrepid, the cpu remained scaled down
- In jaunty the cpu scales up to 100%

I found a website [1] which does a good job of explaining it, and I tried
setting my ignore_nice_load to 1, but nice processes still scale the
processor up. Unless I am mistaken, this is a bug. What information should I
attach to the bug report?

Evan

[1] http://www.pantz.org/software/cpufreq/usingcpufreqonlinux.html
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: CPU Frequency Scaling and Niceness

2009-04-27 Thread Evan
Reposting to full list. Sorry Felipe.
On Mon, Apr 27, 2009 at 5:05 PM, Felipe Figueiredo phils...@gmail.comwrote:

 Evan wrote:
  I just updated to from Intrepid to Jaunty, and I noticed something
  curious. I believe this is a bug, but even if it isn't, I thought it
  should be raised.
 
  If a cpu (or core) is set to Ondemand and an application with a high
  nice value is running:
  - In intrepid, the cpu remained scaled down
  - In jaunty the cpu scales up to 100%

 Why do you think it is a bug? I would guess the intrepid scaling
 governor was too strict instead.
  The nice behaviour AIUI is that the nice process is slowed/halted until
 the CPU is available, but as soon as it is, it should be used, shouldn't
 it?


The bug is more that even when I set ignore_nice_load to 1 manually, it
still doesn't do it.

Unless there is something else which is supposed to be overriding that
setting, this is a bug.
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss