Lagging
log in

Advanced search

Message boards : Intel GPU : Lagging

Author Message
Tom_unoduetre
Send message
Joined: 19 Jun 17
Posts: 8
Credit: 26,717
RAC: 0
Message 197 - Posted: 22 Jun 2017, 7:36:26 UTC

Hi,

when I run Intel iGPU workunits my PC is lagging so I need to stop the GPU work of Boinc in order to work normally on my PC.

I played a bit with an app_config file (thanks mindcrime) and set <gpu_usage>0.4</gpu_usage> and <cpu_usage>0.2</cpu_usage> to see if that solves the issue but the lag continues.

I have no issues running openCL workunits from Einstein@home so I´m not sure where the issue might be.

System: i5-6500 CPU @ 3.20GHz, HD Graphics 530 (3064MB) OpenCL: 2.0, Driver: 20.19.15.4501

mmonnin
Send message
Joined: 28 Nov 16
Posts: 19
Credit: 5,313,490
RAC: 0
Message 201 - Posted: 22 Jun 2017, 10:11:16 UTC - in response to Message 197.

Running 0.4 GPU would allow more than 1 task to run on a GPU and would actually make it worse due to higher load and memory usage.

GPUs have no interrupts so any work in the queue must be done before a screen refresh. Projects that utilize GPUs to a high % will cause screen lag and there is no way to tell GPUs to only run at 90% utilization.

Vlad
Project administrator
Project developer
Project tester
Project scientist
Help desk expert
Send message
Joined: 26 Oct 16
Posts: 322
Credit: 103,382
RAC: 0
Message 204 - Posted: 22 Jun 2017, 15:56:45 UTC - in response to Message 197.

Hi,

when I run Intel iGPU workunits my PC is lagging so I need to stop the GPU work of Boinc in order to work normally on my PC.

Hi, I have similar GPU, HD Grphics 5300, but on Mac. I'll do some profiling on the kernel execution time. It's set to be less than 20 ms, but the scaling is based on the theoretical peak performance only and does not take into account the vendor. After each kernel execution, the clFinish() is called giving the GPU some time to update the display.

Vlad
Project administrator
Project developer
Project tester
Project scientist
Help desk expert
Send message
Joined: 26 Oct 16
Posts: 322
Credit: 103,382
RAC: 0
Message 223 - Posted: 24 Jun 2017, 10:58:14 UTC - in response to Message 204.

[quote]I'll do some profiling on the kernel execution time.

I did some profiling. Here is the histogram of the kernel execution time for my Intel HD 5300 (Mac). Only 0.02% of the kernels exceeded 20 ms limit. I didn't notice lagging while doing the test. For the HD Graphics 4xxx situation will be much worse, of course, but for the HD 530 it should be the same as for the HD 5300.
If you want, you can do this test by yourself. It uses the initial data for this WU. Just run xansons_boinc_OCL.exe and upload 3 files: BOINCjob.txt, stdout.txt and calcHistOCL_kernel_exec_time.txt to somewhere. I'll plot the histogram based on the results.

Any Intel GPU owner who wants to participate in this test is welcome!

Tom_unoduetre
Send message
Joined: 19 Jun 17
Posts: 8
Credit: 26,717
RAC: 0
Message 255 - Posted: 26 Jun 2017, 9:08:48 UTC

Thanks for your time in investigating this Vlad, I have uploaded the files:

https://drive.google.com/file/d/0Bzg0HHM9CDACLXlHSk9CRTVNNTg/view?usp=sharing

Tom_unoduetre
Send message
Joined: 19 Jun 17
Posts: 8
Credit: 26,717
RAC: 0
Message 272 - Posted: 27 Jun 2017, 7:03:05 UTC

I might add that it seems the lagging only occurs when I´m using one of the Microsoft Office products like Outlook or Excel, my Internet Browser (Firefox) runs smoothly. Not sure if Microsoft Office relies heavily on the graphics card somehow?

Vlad
Project administrator
Project developer
Project tester
Project scientist
Help desk expert
Send message
Joined: 26 Oct 16
Posts: 322
Credit: 103,382
RAC: 0
Message 274 - Posted: 27 Jun 2017, 11:38:44 UTC - in response to Message 255.

Thanks for your time in investigating this Vlad, I have uploaded the files:

https://drive.google.com/file/d/0Bzg0HHM9CDACLXlHSk9CRTVNNTg/view?usp=sharing

Sorry for late reply. Unfortunately, the problem with intel GPUs is not in the lagging only. The WU failed after it was done at 78%. Here you can see the histogram of kernel execution time for your GPU. All the values are below 15 ms which is OK. But all the kernels executed after 78% was done have exactly the same execution time - 12.66 ms. This only could happen if something gone wrong. Also, the calculated diffraction pattern is invalid.
I introduced some changes in the version 1.03 and since then all your results passed the validation, so either the bug is fixed or the statistics is poor. Can I ask you to run the test again with the new version of the app? Here is the link. It does not do the profiling, so I need only the BOINCjob.txt file with the diffraction pattern. Thank you!

Tom_unoduetre
Send message
Joined: 19 Jun 17
Posts: 8
Credit: 26,717
RAC: 0
Message 277 - Posted: 27 Jun 2017, 12:21:06 UTC - in response to Message 274.

Ok, here´s the Boincjob.txt from your new version

https://drive.google.com/file/d/0Bzg0HHM9CDACR2xuM0Z0dGxnWVU/view?usp=sharing

Vlad
Project administrator
Project developer
Project tester
Project scientist
Help desk expert
Send message
Joined: 26 Oct 16
Posts: 322
Credit: 103,382
RAC: 0
Message 279 - Posted: 27 Jun 2017, 12:51:42 UTC - in response to Message 277.
Last modified: 27 Jun 2017, 12:52:10 UTC

Ok, here´s the Boincjob.txt from your new version

https://drive.google.com/file/d/0Bzg0HHM9CDACR2xuM0Z0dGxnWVU/view?usp=sharing

Thank you! Now it's valid. So, it seems that the problem is solved in the new version. Regarding the lagging, since the kernels run no longer than 20 ms, I can do nothing here actually. Note that you have an option to suspend GPU computing when computer is in use. Check the Computing preferences in your profile page.

Tom_unoduetre
Send message
Joined: 19 Jun 17
Posts: 8
Credit: 26,717
RAC: 0
Message 280 - Posted: 27 Jun 2017, 12:58:53 UTC

I know I can suspend GPU work :-)

But as there are so few Intel OpenCL projects out there it´s nice to have another project on the list. I´ll then just manually suspend GPU work when I need the PC. Thanks.

P.S: the Einstein@home Intel app runs smoothly, but I guess as that´s a completely different algorithm it is probably like comparing apples with pears, right?

Vlad
Project administrator
Project developer
Project tester
Project scientist
Help desk expert
Send message
Joined: 26 Oct 16
Posts: 322
Credit: 103,382
RAC: 0
Message 282 - Posted: 27 Jun 2017, 13:16:28 UTC - in response to Message 280.
Last modified: 27 Jun 2017, 13:16:43 UTC

P.S: the Einstein@home Intel app runs smoothly, but I guess as that´s a completely different algorithm it is probably like comparing apples with pears, right?

They are doing completely different task, but I'll check their code for some OpenCL command queue management tricks.

mmonnin
Send message
Joined: 28 Nov 16
Posts: 19
Credit: 5,313,490
RAC: 0
Message 291 - Posted: 27 Jun 2017, 18:54:36 UTC - in response to Message 272.

I might add that it seems the lagging only occurs when I´m using one of the Microsoft Office products like Outlook or Excel, my Internet Browser (Firefox) runs smoothly. Not sure if Microsoft Office relies heavily on the graphics card somehow?


FF and Chrome can use your dGPU for processing which may make it smoother compared to other tasks. There is an option to use hardware acceleration instead of using the CPU to process web pages.

Message boards : Intel GPU : Lagging


Main page · Your account · Message boards


© 2021 Vladislav Neverov (NRC 'Kurchatov institute'), Nikolay Khrapov (Institute for Information Transmission Problems of RAS)