Advanced search

Message boards : Number crunching : Changing schduling parameters on Linux for GPUgrid

Author Message
cciechad
Send message
Joined: 28 Dec 10
Posts: 13
Credit: 37,543,525
RAC: 0
Level
Val
Scientific publications
watwatwatwatwatwat
Message 27832 - Posted: 25 Dec 2012 | 16:37:30 UTC

Does anyone know how to find the PID of the gpugrid tasks via ps?(or get boinc to start gpugrid with a different pgid?) I'm trying to either renice the gpugrid tasks to a higher priority or set other projects to idle class priority but I'm having trouble getting the PID via script.

Profile microchip
Avatar
Send message
Joined: 4 Sep 11
Posts: 110
Credit: 326,102,587
RAC: 0
Level
Asp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 27833 - Posted: 25 Dec 2012 | 18:05:47 UTC - in response to Message 27832.
Last modified: 25 Dec 2012 | 18:34:52 UTC

Does anyone know how to find the PID of the gpugrid tasks via ps?(or get boinc to start gpugrid with a different pgid?) I'm trying to either renice the gpugrid tasks to a higher priority or set other projects to idle class priority but I'm having trouble getting the PID via script.


gpugrid tasks don't have one global PID so you'll have to hunt down for the PID each time a gpugrid task is started. They usually carry the name "acemd" and "acemdlong", iirc (I don't crunch anymore for gpugrid so these names are off the top of my head). If you run "top" while a gpugrid task is running, you can easily get its PID


top -b -n 1 | grep acemd | awk '{print $1}'


you can also do it with ps, by displaying the running processes


ps auxr | grep acemd | awk '{print $2}'

____________

Team Belgium

cciechad
Send message
Joined: 28 Dec 10
Posts: 13
Credit: 37,543,525
RAC: 0
Level
Val
Scientific publications
watwatwatwatwatwat
Message 27834 - Posted: 25 Dec 2012 | 21:50:49 UTC - in response to Message 27833.

Thanks the top example worked but the ps didn't for some reason. What I ended up doing was putting this in cron and it appears to be working perfectly.

schedtool -n 0 `top -b -n 1 | grep acemd | awk '{print $1}'`

Thanks,

Chad

Post to thread

Message boards : Number crunching : Changing schduling parameters on Linux for GPUgrid

//