powernowd ignores niced xine
Bug #11643 reported by
Manoj Kasichainula
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powernowd (Ubuntu) |
Invalid
|
Medium
|
Tollef Fog Heen |
Bug Description
xine seems to nice itself sometimes (total guess: when it thinks there isn't
enough CPU, it nices the threads that aren't as timing-critical). powernowd
ignores niced processes by default. So sometimes (I think when powernowd speeds
up fast enough), xine works fine on video that needs lots of CPU, e.g. hi-def
video, and sometimes it nices itself, and powernowd ignores it, so the video
gets very slow.
Barring a change to xine, I fixed this by adding -n to /etc/default/
which tells it to count niced processes in its evaluations. I can see arguments
for and against this, but it's perfect for my usage.
To post a comment you must log in.
I don't see anyplace in xine where it raises its nice value. If it's running as
root, it will try to lower it, but presumably you aren't running it as root, and
even if you were, that wouldn't trigger powernowd's logic.
Perhaps something else is nicing it? In any case, I think that nicing parts of
xine is not a very good idea, and whatever is doing it should stop.