|
Nice level set but process gets wrong priority
Hello all.
(I asked this question recently in 'Linux - General' and got a few answers, which I am very thankful for, but I will post the question once again in this forum to get some more input - hope this is ok).
At work we have a Linux server (Ubuntu server 7.10) with 8 CPUs for doing heavy calculations. There are several users on the server and we need to prioritize the jobs we run. We are trying to do this using the nice command, but it is not working the way it is supposed to. Below, a screenshot from 'top' is included in a situation where the users andreas and bruger2 are running jobs. Both users have set up their calculations to use all 8 CPUs simultaneously (using MPI or similar), but andreas' processes are set to nice=0 while bruger2 uses nice=19.
Why do andreas' processes (mdrun) only get 4 CPUs when the nice levels are set as above?
It should get all 8 CPUs and bruger2's processes should wait until andreas' are done...
Regards
Andreas
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6989 bruger2 39 19 4572m 2.8g 3132 R 400 72.2 1746:45 l914.exe
7294 andreas 25 0 641m 19m 13m R 100 0.5 0:46.27 mdrun
7295 andreas 25 0 641m 18m 12m R 100 0.5 0:45.40 mdrun
7297 andreas 25 0 641m 18m 12m R 100 0.5 0:45.50 mdrun
7298 andreas 25 0 641m 18m 12m R 100 0.5 0:45.53 mdrun
1 root 18 0 5144 140 68 S 0 0.0 0:03.88 init
2 root 11 -5 0 0 0 S 0 0.0 0:00.02 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:00.10 migration/0
4 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0
Regards
Andreas
|