Hi Nam,
There is a method suggested for setting the nice value in this post:
http://www.lam-mpi.org/MailArchives/lam/2003/05/5975.php
Perhaps to set the nice value to a negative number, you can setup sudo on all
the nodes, making the appropriate changes in /etc/sudoers (I am no expert in
this area, so do not know exactly what you would need to add), and doing
something similar to what the above post suggested:
-------
#!/bin/sh
sudo renice -1 $$
exec myProgram $*
-------
and then do 'mpirun C myScript < input' or whatever...
Hope this helps,
Tim Prins
On Saturday 11 November 2006 20:52, Nam Hoang wrote:
> I've written a mpi program, and i want to change nice
> value of all processes created by mpirun from -20 to
> 19. My purpose is that valueing, comparing
> context-switch values of each nice. With nice from 0
> to 19, i think it's easy. But with negative nice, i
> have no effective solutions.
> Thanks
>
>
>
> ___________________________________________________________________________
>_________ Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|