Setting GPU Task Priority

Message boards : Number crunching : Setting GPU Task Priority
Message board moderation

To post messages, you must log in.

AuthorMessage
Terror Australis
Volunteer tester

Send message
Joined: 14 Feb 04
Posts: 1817
Credit: 262,693,308
RAC: 44
Australia
Message 1071386 - Posted: 28 Jan 2011, 6:01:59 UTC
Last modified: 28 Jan 2011, 6:02:52 UTC

I'm conducting an experiment using a Virtual Machine and running CUDA on the host machine at the same time.

I found, that to make it work, the CUDA app has to have the same CPU priority or higher as the VM program (VMWare Player) otherwise the CUDA processing time blows right out.

The problem is, I can set the CUDA tasks to "Normal" priority or the VM to "Low". However when CUDA starts a new task it goes back to "Below Normal" priority.

If I set the VM to "Low" things work ok as long as the VM is running in the background. However as soon I maximise it, it jumps back to "Normal" and pinches all the CPU cycles from CUDA.

I've tried using Prio to lock the priorities but both CUDA and the VM player are able to overide it and go back to their original settings.

How can I lock both programs to the settings I want, not the settings they think they should have.

TIA
T.A.
ID: 1071386 · Report as offensive
kittyman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Jul 00
Posts: 51468
Credit: 1,018,363,574
RAC: 1,004
United States
Message 1071389 - Posted: 28 Jan 2011, 6:12:08 UTC - in response to Message 1071386.  

I'm conducting an experiment using a Virtual Machine and running CUDA on the host machine at the same time.

I found, that to make it work, the CUDA app has to have the same CPU priority or higher as the VM program (VMWare Player) otherwise the CUDA processing time blows right out.

The problem is, I can set the CUDA tasks to "Normal" priority or the VM to "Low". However when CUDA starts a new task it goes back to "Below Normal" priority.

If I set the VM to "Low" things work ok as long as the VM is running in the background. However as soon I maximise it, it jumps back to "Normal" and pinches all the CPU cycles from CUDA.

I've tried using Prio to lock the priorities but both CUDA and the VM player are able to overide it and go back to their original settings.

How can I lock both programs to the settings I want, not the settings they think they should have.

TIA
T.A.

Not sure how you could lock the priority setting of the VM, but Fred has a priority program to allow you to set the GPU task priority. You could set it to a notch above the VM and see if that works.

I can't find a link to it right now, I downloaded it a long while back.

I will see if I can find you a link.

"Freedom is just Chaos, with better lighting." Alan Dean Foster

ID: 1071389 · Report as offensive
kittyman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Jul 00
Posts: 51468
Credit: 1,018,363,574
RAC: 1,004
United States
Message 1071395 - Posted: 28 Jan 2011, 6:18:16 UTC

Try the information in this thread.

Meow.
"Freedom is just Chaos, with better lighting." Alan Dean Foster

ID: 1071395 · Report as offensive
Terror Australis
Volunteer tester

Send message
Joined: 14 Feb 04
Posts: 1817
Credit: 262,693,308
RAC: 44
Australia
Message 1071407 - Posted: 28 Jan 2011, 6:51:29 UTC

Thanks Kittyman
I found Fred's program and read the thread you linked.
Trying to make it work now :-)

T.A.
ID: 1071407 · Report as offensive
kittyman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Jul 00
Posts: 51468
Credit: 1,018,363,574
RAC: 1,004
United States
Message 1071417 - Posted: 28 Jan 2011, 7:30:38 UTC - in response to Message 1071407.  

Thanks Kittyman
I found Fred's program and read the thread you linked.
Trying to make it work now :-)

T.A.

May kitty paws help you sort it.

Meow.

It does work on the couple of rigs I have it loaded on....
Not sure whether, in my case, it really does any good.
But task manager confirms that when I have set the GPU tasks to high priority, they run as so.


"Freedom is just Chaos, with better lighting." Alan Dean Foster

ID: 1071417 · Report as offensive
Terror Australis
Volunteer tester

Send message
Joined: 14 Feb 04
Posts: 1817
Credit: 262,693,308
RAC: 44
Australia
Message 1071437 - Posted: 28 Jan 2011, 8:43:53 UTC
Last modified: 28 Jan 2011, 8:48:51 UTC

Hmmmm. No Joy
It doesn't seem to be working :-(
I put the full path to the CUDA app in and selected "Set Above" but Task Manager still shows the CUDA app as "Below Normal". Tried a reboot and restart of BOINC etc. Still no joy.

It's not showing anything in the graph either.

Kittyman, Were there any special tricks you had to use to get it going ?
ID: 1071437 · Report as offensive
Jamie
Volunteer tester

Send message
Joined: 5 Apr 06
Posts: 162
Credit: 9,867,955
RAC: 0
United Kingdom
Message 1071438 - Posted: 28 Jan 2011, 8:44:09 UTC - in response to Message 1071407.  
Last modified: 28 Jan 2011, 8:44:25 UTC

Thanks Kittyman
I found Fred's program and read the thread you linked.
Trying to make it work now :-)

T.A.


If that doesn't work for you, try Process Lasso http://www.bitsum.com/prolasso.php, its what I use to keep ATI and cuda tasks from using the same CPU, you can set both the priority and affinity of the task. If you turn 'Forced mode' it will recheck the process every few seconds and make sure it runs to at the priority you set
ID: 1071438 · Report as offensive
kittyman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Jul 00
Posts: 51468
Credit: 1,018,363,574
RAC: 1,004
United States
Message 1071439 - Posted: 28 Jan 2011, 8:47:57 UTC - in response to Message 1071437.  

Hmmmm. No Joy
It doesn't seem to be working :-(
I put the full path to the CUDA app in and selected "Set Above" but Task Manager still shows the CUDA app as "Below Normal". Tried a reboot and restart of BOINC etc. Still no joy.

It's not showing anything in the graph either.

Kittyman, Were there any special trick you had to use to get it going ?


No, but a lot of time has passed since when I first downloaded and tried it......

Sorry, but I can't give you any other hints.......

If you can describe the problems you have running it, you might PM Fred himself to see if he has any more insights.

I did the best I could, bud.

Meow.
"Freedom is just Chaos, with better lighting." Alan Dean Foster

ID: 1071439 · Report as offensive
Profile Tim Norton
Volunteer tester
Avatar

Send message
Joined: 2 Jun 99
Posts: 835
Credit: 33,540,164
RAC: 0
United Kingdom
Message 1071442 - Posted: 28 Jan 2011, 8:52:51 UTC - in response to Message 1071437.  

TA

with freds priority thread app

just put the full name of the cuda app with .exe on end as it appears in task manager without the path

as its looking for a running application name in process list

works fine for me

you could also lower the priority of the vm as well if needed
Tim

ID: 1071442 · Report as offensive
Profile Sutaru Tsureku
Volunteer tester

Send message
Joined: 6 Apr 07
Posts: 7105
Credit: 147,663,825
RAC: 5
Germany
Message 1071445 - Posted: 28 Jan 2011, 9:00:38 UTC - in response to Message 1071437.  
Last modified: 28 Jan 2011, 9:03:06 UTC

Hmmmm. No Joy
It doesn't seem to be working :-(
I put the full path to the CUDA app in and selected "Set Above" but Task Manager still shows the CUDA app as "Below Normal". Tried a reboot and restart of BOINC etc. Still no joy.

It's not showing anything in the graph either.

Kittyman, Were there any special tricks you had to use to get it going ?


Don't make it more complicated as it is.. ;-)

Insert only the completely CUDA app .exe name and you're fine.

I inserted there setiathome_6.09_windows_intelx86__cuda23.exe (for stock MB_6.09_cuda23_app) and it work nicely.


Thanks again Fred for your nice tool!

http://www.efmer.eu/forum_tt/index.php?topic=198.0


EDIT: Tim was little bit quicker.. ;-)
ID: 1071445 · Report as offensive
Terror Australis
Volunteer tester

Send message
Joined: 14 Feb 04
Posts: 1817
Credit: 262,693,308
RAC: 44
Australia
Message 1071453 - Posted: 28 Jan 2011, 9:24:16 UTC - in response to Message 1071445.  
Last modified: 28 Jan 2011, 9:24:43 UTC

@ Tim and Sutaro
Thanks very much !!
Problem solved !!

Guess I was just being too careful putting the full path in. Never thought about it looking for a process rather than an exe. TGIF :-P

T.A.
ID: 1071453 · Report as offensive

Message boards : Number crunching : Setting GPU Task Priority


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.