set priority for R processes in spawned nodes using SNOW
There is probably a more direct way to do this with SNOW, but one way you can change the priority of a running R instance on Unix is with renice. You could use this as the first R code your spawned tasks run :
system(paste("renice 10 -p", Sys.getpid()))
20121: old priority 0, new priority 10
There's probably a way to hook this or similar commands into the
initialization code when spawning the worker tasks with SNOW.
- Murray
On Tue, Mar 1, 2011 at 7:09 PM, Zhongyi Yuan <zhongyi-yuan at uiowa.edu> wrote:
Dear R users: I am doing parallel computing by the SNOW package on Linux workstations. According to the university's policy, one has to set a "nice" value of at least 10 (Initiating R with the command *nice -n 10 R* does the job) for a long-running process, to lower its priority. The problem I have is though I can set a "nice" value for R in the mater, I don't know how it can be done in the slaves. All R processes in the slaves have to be niced before they start. Can anyone help me with this? I'd appreciate it. Best, Zhongyi ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc