Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: laurenB7742 on October 05, 2017, 01:01:20 PM



Title: cgminer: How to set GPU percentage to less than 100% usage / allocation
Post by: laurenB7742 on October 05, 2017, 01:01:20 PM
I'm new to mining.
My batch file (start.bat) is:
   setx GPU_MAX_ALLOC_PERCENT 90
   setx GPU_USE_SYNC_OBJECTS 1
   cgminer.exe --scrypt --url stratum+tcp://beardedpool.fr:3433 -u GWBNesh1yNrraVR9hahT7f8pheWHPyqV3V -p c=GPK  -I 13 -g 2 -w 256 --thread-concurrency 8192 --gpu-powertune 20

But my GPU is still working at 99% despite setting max allocation to 90%. How can I limit it to 90% or 95% so that GPU temperature will fall below 80°C and GPU driver will not crash when I'm using the computer while mining?


Title: Re: cgminer: How to set GPU percentage to less than 100% usage / allocation
Post by: Sev18 on October 05, 2017, 01:04:16 PM
Did you try lowering intensity by changing -I 13 settings?


Title: Re: cgminer: How to set GPU percentage to less than 100% usage / allocation
Post by: laurenB7742 on October 05, 2017, 09:34:04 PM
Did you try lowering intensity by changing -I 13 settings?
Thank you for advice. I tried -I 12 and it didn't make any difference. Now I tried -I 10 and GPU usage is 97% but hashrate is more than 2 times smaller in comparison to -I 13 so this is not useful.
I thought I could lower GPU usage for 10% and hashrate would fall about the same percentage. But apparently it doesn't work like that.


Title: Re: cgminer: How to set GPU percentage to less than 100% usage / allocation
Post by: Za1n on October 05, 2017, 10:06:11 PM
I believe the setx GPU_MAX_ALLOC_PERCENT 90 command pertains more to how much maximum memory on the GPU can be allocated for process to use. Likewise the GPU_SINGLE_ALLOC_PERCENT command sets the amount of memory a single process can utilize. Both of these settings deal with the allocation of memory and not the core utilization. To adjust that you would need to change settings within cgminer itself if available.

Since mining programs are meant to utilize the GPU as much as possible to deliver maximum hashrates you may be better off trying to improve airflow so your cards will naturally cool down. Are your cards in an enclosed case? if so you may need to add more case fans, or alternatively you can simply remove the side panel for more airflow to see if it helps. If they are in an open-air frame you may need an external fan blowing ower it to help cool it down more.


Title: Re: cgminer: How to set GPU percentage to less than 100% usage / allocation
Post by: laurenB7742 on October 06, 2017, 09:36:00 AM
I believe the setx GPU_MAX_ALLOC_PERCENT 90 command pertains more to how much maximum memory on the GPU can be allocated for process to use. Likewise the GPU_SINGLE_ALLOC_PERCENT command sets the amount of memory a single process can utilize. Both of these settings deal with the allocation of memory and not the core utilization. To adjust that you would need to change settings within cgminer itself if available.

Since mining programs are meant to utilize the GPU as much as possible to deliver maximum hashrates you may be better off trying to improve airflow so your cards will naturally cool down. Are your cards in an enclosed case? if so you may need to add more case fans, or alternatively you can simply remove the side panel for more airflow to see if it helps. If they are in an open-air frame you may need an external fan blowing ower it to help cool it down more.
Thank you mate! So I'm just wasting time trying to limit GPU load by changing batch file.
Yes, I use nornal PC case so it's closed. I do have one intake fan and one for outflow. But these seem not enough for mining at 99% load.
I will now open the case and see if that makes any difference. If it won't I will simply need to decide to quit mining on PC and buy mining rig or Antminer.