Red Hat Bugzilla – Bug 965820
fedora-review doesn't respect nice level
Last modified: 2013-10-15 04:25:40 EDT
I'm running fedora-review from a shell that's been renice'd to 10, so that my builds don't make the machine chug. However, fedora-review itself seems to run at normal priority, i.e. 0. The nice level of the invoking program should be passed on to the mock build.
This is by no means a critical error; it'd just be nice if it was fixed. I really appreciate fedora-review's automatic checking of package-review issues!
fedora-review itself doesn't touch nice levels in any way.
$ nice -19 fedora-review -b 995025 &
$ ps -C mock -o pid,comm,nice
PID COMMAND NI
22181 mock 19
If you use renice & combination of nested shells (such as midnight commander) then renice will not work as expected but that's nothing to do with fedora-review. None of child processes will be affected by renice that happens after fork.
No, I mean "renice" as in:
$ renice 10 $$
$ fedora-review ...
Again, fedora-review does not touch nice level in any way.
$ renice 10 -p $$
1023 (process ID) old priority 0, new priority 10
$ fedora-review -b 995025
INFO: Processing bugzilla bug: 995025
INFO: Getting .spec and .srpm Urls from : 995025
INFO: --> SRPM url: http://msimacek.fedorapeople.org/rnv-1.7.11-5.fc19.src.rpm
INFO: --> Spec url: http://msimacek.fedorapeople.org/rnv.spec
# different terminal
$ ps -C fedora-review -o pid,comm,nice
PID COMMAND NI
30878 fedora-review 10
I suggest you double check your shell settings and verify that other programs are unaffected