Advanced search

Message boards : Graphics cards (GPUs) : 2 GPU, not the same % of utilization

Author Message
philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51651 - Posted: 28 Mar 2019 | 11:26:35 UTC

Hello,

I installed 2 Nvidia 1070Ti on an Asus B250 motherboard working with GPUGrid on Ubuntu 18.04.2 LTS.

Everything works fine, except about the % of use.

The first GPU works around 90% of its capacity (normal).
The second GPU works around 80%, which makes a big difference after 8 hours of computation.

I switched the GPU in order to see if it was about the material, but it's the same thing.

Is is about GPUGrip or Ubuntu ?

thx

PappaLitto
Send message
Joined: 21 Mar 16
Posts: 511
Credit: 4,617,042,755
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 51652 - Posted: 28 Mar 2019 | 12:21:12 UTC - in response to Message 51651.

Hello there is a setting you can enable on linux (and windows but it's more effective on linux) called SWAN_SYNC. I am not sure we have an official guide yet, I will get back to you.

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51654 - Posted: 28 Mar 2019 | 13:05:23 UTC - in response to Message 51652.

I found an interesting thing on this forum :

http://www.gpugrid.net/forum_thread.php?id=4813#50180

the solution is :

the SWAN_SYNC=1 setting should placed in it's own configuration file at
/lib/systemd/system/boinc-client.service
This file should be edited as 'root'.
In the [service] section of that file there should be a line containing:
Environment="SWAN_SYNC=1"

After this change, my first GPU works around 99% and the second around 96%

....magic !!

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51655 - Posted: 28 Mar 2019 | 13:07:35 UTC - in response to Message 51654.

It is really better now, but still with a difference between GPUs....

captainjack
Send message
Joined: 9 May 13
Posts: 171
Credit: 2,322,004,288
RAC: 2,362,184
Level
Phe
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 51657 - Posted: 28 Mar 2019 | 13:42:19 UTC

What is the Maximum PCIe Link Width and Maximum PCIe Link Speed of each of the two slots where the GPUs are inserted?

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51660 - Posted: 28 Mar 2019 | 14:45:57 UTC - in response to Message 51657.

here is :

LnkCap: Port #0, Speed 5GT/s, Width x16
LnkSta: Speed 2.5GT/s, Width x1

LnkCap: Port #0, Speed 2.5GT/s, Width x16
LnkSta: Speed 2.5GT/s, Width x1

It's what I can see in the Nvidia X Server Settings too :

GPU 0:
Current PCIe Link Speed: 5,0 GT/s

GPU 1:
Current PCIe Link Speed: 2,5 GT/s

both are in Preferred Mode Adaptive

Zalster
Avatar
Send message
Joined: 26 Feb 14
Posts: 211
Credit: 4,496,324,562
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 51663 - Posted: 28 Mar 2019 | 18:23:59 UTC - in response to Message 51660.

Where do you have those GPUs connected at? Which slots?

The B250 is a mining board. 1 PCIe x16 slot. the other 18 will vary depending on the number GPUs connected. The IntelĀ® PentiumĀ® Processor G4400 only has 16 lanes for the full size PCIe slot. The B250 provides lanes for the other 18 slots, which is interesting as it only has 12 lanes. On top of that, it shares those lanes for the USB and SATA connections. So my guess is the PCI slots of the 19 are only running at X1 if fully loaded. Doubtful it gets over x8.

So that would explain why the second card is taking so long.

Z
____________

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51664 - Posted: 28 Mar 2019 | 18:46:18 UTC - in response to Message 51663.

You are right.

Using another slot than the first one, I have exactly the same percentage of use per gpu.

Your explanation is right.

The thing to remember, is to activate the SWAN_SYNC to earn more than 10% more calculation.

Thanks for your following along.

erik
Send message
Joined: 30 Apr 19
Posts: 54
Credit: 168,971,875
RAC: 0
Level
Ile
Scientific publications
wat
Message 51755 - Posted: 4 May 2019 | 0:38:00 UTC - in response to Message 51664.
Last modified: 4 May 2019 | 0:56:32 UTC

You are right.

Using another slot than the first one, I have exactly the same percentage of use per gpu.

Your explanation is right.

The thing to remember, is to activate the SWAN_SYNC to earn more than 10% more calculation.

Thanks for your following along.
for my self to sum up.
your build is asus b250 mining motherboard, with 2 gtx1070ti. am i right?

are your both cards connected to b250-motherboard's x1 lane slots (via pcie - usb risers)?

as i can see, you complete all your tasks very wel. your longest task was about 15hours.

how do you manage this setup? display connected to onboard hdmi?

maybe some pictures of your system? just how it looks on outside

i am asking this because i would like to make similar build, using mining motherboard and connect 4-6 gpu's via pcie-x16-usb risers to x1-lane slots of motherbord B250.

thanks in advance

Keith Myers
Send message
Joined: 13 Dec 17
Posts: 1284
Credit: 4,922,131,959
RAC: 6,405,429
Level
Arg
Scientific publications
watwatwatwatwat
Message 51765 - Posted: 5 May 2019 | 1:10:09 UTC - in response to Message 51755.

TBar discovered on that board that no matter the quality of the riser or USB cable, some slots will only run Gen.2 speeds. It is hardwired. He says to read the motherboard manual carefully to find which slots are Gen. 3 and which are Gen. 2.

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51785 - Posted: 14 May 2019 | 1:12:34 UTC - in response to Message 51755.

My build is actually an asus b250 mining motherboard with 4 gtx1070ti.

Following the motherboard manual, the first gpu is on the x16 slot and the others on the x1 slots. Using an usb riser for each gpu, one gpu connected to an unique slot on the motherboard.

The tasks are around 8 hours, the longest task was about 15 hours because I was "tunning" the system and worked on one gpu only during a while.

To setup the system, I have connected a keyboard, mouse and display directly on the motherboard. When the setup looked ok, I have installed a remote control with Vino and used a usb display simulator on the onboard hdmi.

The main "problem" with this system, is the fact that GPUGRID needs one core with one gpu. It means that if you have four gpus connected on your system, you must have a cpu with at least four cores. Otherwise, the computation capabilities of the gpu will drop a lot.

Here are some pictures :

My build is actually an asus b250 mining motherboard with 4 gtx1070ti.

Following the motherboard manual, the first gpu is on the x16 slot and the others on the x1 slots. Using an usb riser for each gpu, one gpu connected to an unique slot on the motherboard.

The tasks are around 8 hours, the longest task was about 15 hours because I was "tunning" the system and worked on one gpu only during a while.

To setup the system, I have connected a keyboard, mouse and display directly on the motherboard. When the setup looked ok, I have installed a remote control with Vino and used a usb display simulator on the onboard hdmi.

The main "problem" with this system, is the fact that GPUGRID needs one core with one gpu. It means that if you have four gpus connected on your system, you must have a cpu with at least four cores. Otherwise, the computation capabilities of the gpu will drop a lot.

Here are some pictures :



philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51787 - Posted: 14 May 2019 | 1:19:39 UTC - in response to Message 51785.





philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51788 - Posted: 14 May 2019 | 1:20:53 UTC - in response to Message 51787.

well, inserting images doesn't work. For a next time.

rod4x4
Send message
Joined: 4 Aug 14
Posts: 266
Credit: 2,219,935,054
RAC: 0
Level
Phe
Scientific publications
watwatwatwatwatwatwatwatwatwat
Message 51797 - Posted: 14 May 2019 | 6:30:08 UTC

You don't necessarily need 1 CPU per GPU. You can run .5 of a CPU per GPU. There will only be a small drop in output.
You can control this in app_config.xml

eg...
<app_config>
<app>
<name>acemdlong</name>
<gpu_versions>
<cpu_usage>.5</cpu_usage>
</gpu_versions>
</app>
<app>
<name>acemdshort</name>
<gpu_versions>
<cpu_usage>.5</cpu_usage>
</gpu_versions>
</app>
</app_config>

erik
Send message
Joined: 30 Apr 19
Posts: 54
Credit: 168,971,875
RAC: 0
Level
Ile
Scientific publications
wat
Message 51800 - Posted: 14 May 2019 | 7:58:13 UTC - in response to Message 51797.
Last modified: 14 May 2019 | 8:04:14 UTC

You don't necessarily need 1 CPU per GPU. You can run .5 of a CPU per GPU. There will only be a small drop in output.
You can control this in app_config.xml

eg...
<app_config>
<app>
<name>acemdlong</name>
<gpu_versions>
<cpu_usage>.5</cpu_usage>
</gpu_versions>
</app>
<app>
<name>acemdshort</name>
<gpu_versions>
<cpu_usage>.5</cpu_usage>
</gpu_versions>
</app>
</app_config>
0.5 means 50%. and if you have 16 core (and 32 threads), then is 0.5 = 16 threads for 1 gpu. that is still more than 1 thread to 1 gpu.

i have read here 1 gpu needs 1 thread cpu. not nessecarly 1 core cpu.

for example my usage....threadripper 1950x 16 core (or 32 threads). the cpu-usage for 1 gpu i putted to 0.064 (or 6.4% of cpu threads. 6.4% * 32 threads = 2 cpu threads for 1 gpu without any drop in gpu-calculation in comparisson with the default 0.967 cpu-usage.

my another threadripper 1920x (12 core and 24 threads) i putted gpu on 0.042 (or 4.2% * 24 threads = 1 cpu thread for 1 gpu). and yet, for both computers 1 gpu-calculation takes around 15-16 hour

my gtx-1060_6GB is connected to x16 slot and pcie-bus load is around 27% with 2 cpu threads available for 1 gpu

my gtx-1060_3GB is also connected to x16 slot, pcie-bus load aroun 28-29% with 1 cpu thread available for 1 gpu

rod4x4
Send message
Joined: 4 Aug 14
Posts: 266
Credit: 2,219,935,054
RAC: 0
Level
Phe
Scientific publications
watwatwatwatwatwatwatwatwatwat
Message 51803 - Posted: 14 May 2019 | 8:17:24 UTC - in response to Message 51800.
Last modified: 14 May 2019 | 8:31:16 UTC

0.5 means 50%. and if you have 16 core (and 32 threads), then is 0.5 = 16 threads for 1 gpu. that is still more than 1 thread to 1 gpu.


.5 means GPU task will use 50% of one thread (or one CPU core if not threaded)


i have read here 1 gpu needs 1 thread cpu. not nessecarly 1 core cpu.

Not necessarily true. If you have enabled SPIN mode, then 1 thread (or 1 CPU core) is dedicated to a GPU task. Otherwise the default is BLOCK mode which will use as much of a single thread (or single CPU core) as the task requests.
On fast or efficient CPUs it will not use much of a single thread (or single CPU core).
On slow or inefficient CPUs it will use more of a single thread.
This depends on the GPU task. Each GPU task can vary.

erik
Send message
Joined: 30 Apr 19
Posts: 54
Credit: 168,971,875
RAC: 0
Level
Ile
Scientific publications
wat
Message 51805 - Posted: 14 May 2019 | 10:27:16 UTC - in response to Message 51803.

0.5 means 50%. and if you have 16 core (and 32 threads), then is 0.5 = 16 threads for 1 gpu. that is still more than 1 thread to 1 gpu.


.5 means GPU task will use 50% of one thread (or one CPU core if not threaded)
according to your saying, when i use 4.2% (=my second tr-1920x cpu build) of 1 cpu-core/thread for 1 gpu, then i should see drop in gpu-performance in comparison with 6.4% (=my first build with tr-1950x cpu) of 1 cpu/thread usage. but that is not the case. with both computers i have about the same calculation time.

i dont think you are right when you say 0.5 is 50% usage of 1 core/thread. it is 50% of all cores/threads


Not necessarily true. If you have enabled SPIN mode
what is SPIN mode? what is the effect of it? how to disable or enable this?

rod4x4
Send message
Joined: 4 Aug 14
Posts: 266
Credit: 2,219,935,054
RAC: 0
Level
Phe
Scientific publications
watwatwatwatwatwatwatwatwatwat
Message 51806 - Posted: 14 May 2019 | 11:18:56 UTC - in response to Message 51805.

i dont think you are right when you say 0.5 is 50% usage of 1 core/thread. it is 50% of all cores/threads

If you check Task Manager in Windows 10 you will see on your computer(s), that the GPU is using only one CPU thread. Look for the ACEMD task.

what is SPIN mode? what is the effect of it? how to disable or enable this?

SPIN mode will dedicate 1 thread to the GPU task at 100%. On Win 10 there is a small improvement in performance. This can be enabled by adding swan_sync=1 in the System environment variables.

erik
Send message
Joined: 30 Apr 19
Posts: 54
Credit: 168,971,875
RAC: 0
Level
Ile
Scientific publications
wat
Message 51826 - Posted: 15 May 2019 | 20:20:10 UTC - in response to Message 51787.
Last modified: 15 May 2019 | 20:23:30 UTC











PappaLitto
Send message
Joined: 21 Mar 16
Posts: 511
Credit: 4,617,042,755
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 51827 - Posted: 15 May 2019 | 23:59:37 UTC

It's certainly fancy, but does it work with GPUGrid?

erik
Send message
Joined: 30 Apr 19
Posts: 54
Credit: 168,971,875
RAC: 0
Level
Ile
Scientific publications
wat
Message 51829 - Posted: 16 May 2019 | 8:11:21 UTC - in response to Message 51827.

It's certainly fancy, but does it work with GPUGrid?

according to @philalux it is working. this is not my build.
i just repost his pictures

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51879 - Posted: 18 May 2019 | 22:10:32 UTC - in response to Message 51829.

yes it works with gpugrid

Keith Myers
Send message
Joined: 13 Dec 17
Posts: 1284
Credit: 4,922,131,959
RAC: 6,405,429
Level
Arg
Scientific publications
watwatwatwatwat
Message 51880 - Posted: 18 May 2019 | 22:33:51 UTC

That mobo can support a lot more than just four gpus. We have one Seti cruncher running that board with 12 gpus.

philalux
Send message
Joined: 23 Mar 19
Posts: 13
Credit: 209,159,150
RAC: 0
Level
Leu
Scientific publications
wat
Message 51882 - Posted: 18 May 2019 | 23:54:17 UTC - in response to Message 51880.

Right, it can support 19 gpus.

Which cpu do you use with your Seti cruncher and 12 gpu on this motherboard ?

Keith Myers
Send message
Joined: 13 Dec 17
Posts: 1284
Credit: 4,922,131,959
RAC: 6,405,429
Level
Arg
Scientific publications
watwatwatwatwat
Message 51885 - Posted: 19 May 2019 | 17:45:19 UTC - in response to Message 51882.
Last modified: 19 May 2019 | 17:46:21 UTC

I don't have that board. A fellow team mate does. It craps out at 12 gpus. It also has hardwired PCIe Gen. 2 slots on the majority of the slots. You can only get 2 slots to work at Gen. 3 speeds.

The majority of cards are 1060 3GB with a few 1050 and one 970.
https://setiathome.berkeley.edu/result.php?resultid=7691763562

Post to thread

Message boards : Graphics cards (GPUs) : 2 GPU, not the same % of utilization

//