Welcome to MilkyWay@home

More efficient GPU usage?


Advanced search

Message boards : Number crunching : More efficient GPU usage?
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileJack Lightholder

Send message
Joined: 22 May 10
Posts: 17
Credit: 139,881,493
RAC: 0
100 million credit badge11 year member badge
Message 57951 - Posted: 20 Apr 2013, 0:21:38 UTC

I recently downloaded the TechPowerUp GPU-Z software to analyze my GPU and found some interesting things. It appears my GPU load is only ~30% with two tasks running. I tried increasing/decreasing the number of tasks running and the number of CPUs available to those tasks. I have not been able to increase this 30%. Is there any way to get my GPU load above 30% through either a cc_config or app_info file?
Thanks
ID: 57951 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profilemikey
Avatar

Send message
Joined: 8 May 09
Posts: 2561
Credit: 462,762,741
RAC: 293
300 million credit badge12 year member badgeextraordinary contributions badge
Message 57955 - Posted: 20 Apr 2013, 13:39:59 UTC - in response to Message 57951.  

I recently downloaded the TechPowerUp GPU-Z software to analyze my GPU and found some interesting things. It appears my GPU load is only ~30% with two tasks running. I tried increasing/decreasing the number of tasks running and the number of CPUs available to those tasks. I have not been able to increase this 30%. Is there any way to get my GPU load above 30% through either a cc_config or app_info file?
Thanks


Try this:
<app_config>
<app>
<name>milkyway</name>
<gpu_versions>
<gpu_usage>0.33</gpu_usage>
<cpu_usage>0.05</cpu_usage>
</gpu_versions>
</app>
</app_config>

Save the text file as app_config.xml in your Milkyway directory
(CProgram Data\BOINC\projects\milkyway.cs.rpi_milkyway)

The line "<gpu_usage>0.33</gpu_usage>" tells Boinc to run 3 units at once, .33 is 1/3 of 1 so it runs 3 units, change the number to .25 to run 4 units or .5 to run 2 units, or even 1.0 to only run a single unit, the default.

The next line "<cpu_usage>0.05</cpu_usage>" tell it to use UPTO 0.05 of a cpu to help the gpu, this should be plenty here at MW, but feel free to play with it. Just remember once you get the file running you must stop and restart Boinc for it to reread it after any changes. You COULD tell it to reread the preferences, but stopping and restarting is easier and more immediate.

ONLY use Notepad in Windows to save the above file, word processing programs add junk to the lines and the file won't work! Save the file as a txt type file with the name app_config.xml in the right place and it should work just fine.
ID: 57955 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileJack Lightholder

Send message
Joined: 22 May 10
Posts: 17
Credit: 139,881,493
RAC: 0
100 million credit badge11 year member badge
Message 58028 - Posted: 26 Apr 2013, 22:31:52 UTC

Hi mikey,
Thanks for the code. Is this instead of an app_info file? I replaced my app_info file with this and tried tweaking the parameters for the number of WU'
s running at any one time and I'm still only seeing 1-20% load on the GPU. The amount of time to finish the WU's appears to be relative to the number I have (ie. 1 WU = 1 min, 20 WU = 20 mins). However, I do see more "slugishness" in the computer when running 10-20 so I would assume that means it is working harder. That is not however paired with an increase in GPU load. Any other recommendations for optimizing?
ID: 58028 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profilemikey
Avatar

Send message
Joined: 8 May 09
Posts: 2561
Credit: 462,762,741
RAC: 293
300 million credit badge12 year member badgeextraordinary contributions badge
Message 58034 - Posted: 27 Apr 2013, 11:42:54 UTC - in response to Message 58028.  

Hi mikey,
Thanks for the code. Is this instead of an app_info file? I replaced my app_info file with this and tried tweaking the parameters for the number of WU'
s running at any one time and I'm still only seeing 1-20% load on the GPU. The amount of time to finish the WU's appears to be relative to the number I have (ie. 1 WU = 1 min, 20 WU = 20 mins). However, I do see more "slugishness" in the computer when running 10-20 so I would assume that means it is working harder. That is not however paired with an increase in GPU load. Any other recommendations for optimizing?


Yes it is instead of an app_info file.

Have you used gpu-z yet to check the gpu's load? You can get it here:
http://downloads.guru3d.com/GPU-Z-0.6.4-download-2883.html

Install and run it and it will give you, on the 2nd tab, a look at the temps and speed of your gpu fan. If it is low you can run more units at the same time. In your case perhaps several more as you have a 79?? with 3gb of ram. Some projects just run each unit faster with more onboard memory and speed, some don't. YES you will see sluggishness as you use the gpu more and more, if you also game or something else that uses the gpu alot you might consider setting up Boinc so that it stops crunching when you are gaming for example.
ID: 58034 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Link
Avatar

Send message
Joined: 19 Jul 10
Posts: 357
Credit: 16,324,081
RAC: 0
10 million credit badge11 year member badge
Message 58045 - Posted: 28 Apr 2013, 11:46:49 UTC

You can push the card harder not only by running more WUs at once, but also by using command line parameters (I hope someone can point you to the ones for the OpenCL app, or you try to find them yourself, IIRC in the application release thread in the news forum).

If you don't want to play around with those cmd parameters, at least you should decrease the frequency setting in your Milkyway@Home settings, default is 60, I saw people with powerful GPUs decreasing that value to 10 or so.
.
ID: 58045 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileJack Lightholder

Send message
Joined: 22 May 10
Posts: 17
Credit: 139,881,493
RAC: 0
100 million credit badge11 year member badge
Message 58102 - Posted: 3 May 2013, 19:25:02 UTC

Awesome, the combination of those two things did the trick. Thanks guys.
ID: 58102 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Zydor
Avatar

Send message
Joined: 24 Feb 09
Posts: 620
Credit: 100,587,625
RAC: 0
100 million credit badge12 year member badgeextraordinary contributions badge
Message 58203 - Posted: 11 May 2013, 6:21:19 UTC
Last modified: 11 May 2013, 6:21:39 UTC

Client Config Options are always a good one to look at and keep in mind, it has pretty well all the optional parameters for configuring Clients

http://boinc.berkeley.edu/wiki/Client_configuration
ID: 58203 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Daniel

Send message
Joined: 14 Nov 07
Posts: 7
Credit: 56,315,377
RAC: 14,198
50 million credit badge14 year member badge
Message 58221 - Posted: 12 May 2013, 11:44:51 UTC - in response to Message 58045.  
Last modified: 12 May 2013, 12:19:22 UTC

I just stumbled across this thread and found that my GPU Load was also less than expected. It was around 65%.

I tried Link's suggestion of lowering the frequency setting in my Milkyway@Home preferences. I lowered it from 60 to 10 and found that my GPU Load went up to around 90%. The average time it takes me to complete a workunit has now gone down considerably.

Great Tip !
ID: 58221 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : More efficient GPU usage?

©2021 Astroinformatics Group