Message boards :
Number crunching :
Changing schduling parameters on Linux for GPUgrid
Message board moderation
| Author | Message |
|---|---|
|
Send message Joined: 28 Dec 10 Posts: 13 Credit: 37,543,525 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]()
|
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. |
microchipSend message Joined: 4 Sep 11 Posts: 110 Credit: 326,102,587 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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 |
|
Send message Joined: 28 Dec 10 Posts: 13 Credit: 37,543,525 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]()
|
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 |
©2026 Universitat Pompeu Fabra