boinc does not use low-priority processes
Bug #891096 reported by
mokabar
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
boinc (Debian) |
Fix Released
|
Undecided
|
Unassigned | ||
boinc (Fedora) |
Fix Released
|
Undecided
|
|||
boinc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
boinc seems to run its jobs with a niceness of 19 as user `boinc'.
when i am running 4 processes (gcc) on a 4-core machine at a niceness of 5, i'd expect the boinc process to be idle (because it has a lower niceness). but in fact the boinc process takes one full CPU, while the user jobs are restricted to the other CPUs. it seems that the scheduler interprets the niceness not globally, but per-user (maybe related to cgroups)?
iac, it would be great, if this could be addressed.
Changed in boinc (Ubuntu): | |
status: | Fix Released → New |
Changed in boinc (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
To post a comment you must log in.
Description of problem:
I noticed that on 2 different systems upgraded to Fedora 15pre x86_64 BOINC projects does not obey nice settings when system has another load. Both systems
have dual core CPUs.
Version-Release number of selected component (if applicable):
boinc-client- 6.10.58- 3.r22930. fc15.x86_ 64 5-24.fc15. x86_64
kernel 2.6.38.
How reproducible:
Always
Steps to Reproduce:
1. start BOINC client and have some BOINC projects running
2. start some other process with the default priority (I used 2 copies
of simple C++ program that wastes CPU time like 'while(true){}'
Actual results:
top shows that boinc projects are getting about same amount of CPU time
as ather processes running with the default priority (see snapshot of top
output below)
Expected results:
BOINC projects are expected to get several % of CPU time when there are
processes with normal priority requiring enough CPU time.
Additional info:
1) snapshot for top on one of these Fedora 15 x86_64 systems:
top - 20:06:58 up 30 min, 7 users, load average: 3.84, 3.53, 2.69
Tasks: 179 total, 5 running, 174 sleeping, 0 stopped, 0 zombie
Cpu(s): 51.7%us, 3.0%sy, 45.3%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4024908k total, 2202032k used, 1822876k free, 42092k buffers
Swap: 4395004k total, 0k used, 4395004k free, 937132k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6807 andris 20 0 11828 688 572 R 48.5 0.0 0:11.55 wastecpu
6806 andris 20 0 11828 688 572 R 46.5 0.0 0:12.88 wastecpu
2700 boinc 39 19 216m 211m 2660 R 44.6 5.4 19:32.91 einsteinbinary_
3213 boinc 39 19 267m 261m 1356 R 43.6 6.7 15:39.84 einstein_S5GC1H
1721 root 20 0 187m 30m 12m S 3.0 0.8 1:40.41 X
Tried to renice boinc project executable to 10. In this case it got about
70% of CPU time of 1 core.
nice seems to work OK between several my processes
So it seems that nice 19 for boinc processes acts as nice 0 of normal user
process.
This is clear regression in comparisson with Fedora 14 x86_64 (and earliers)
where I have necer observed similar behaviour.