Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20758 Discussions

Driver spends ever-increasing amount of time in vkBeginCommandBuffer

RussellTG
Beginner
1,262 Views

We are developing a Vulkan application targeting Windows and ran into a very strange driver issue where performance slowly degrades (in one test, every 93rd frame took WAY too long, and as the app kept running, it kept taking longer and longer) and eventually the application hangs forever in the driver.

The issue ended up being that we called

 

 

vkResetCommandPool(device, commandPool, VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT);

 

 

 every frame. If this was replaced with

 

 

vkResetCommandPool(device, commandPool,  0);

 

 

then the issue stopped happening. This is a good change and it should have always been 0, but I still think it's pretty bad that the driver ends up killing performance and freezing in an spec-compliant vulkan application.

System Information:

Windows 10: Version 10.0.19045 Build 19045
Intel Graphics Driver: Version 31.0.101.4575
CPU/GPU: i9-11900H

Repro Insructions:

Download attached vktext.cpp file, which is based on https://github.com/Overv/VulkanTutorial/blob/main/code/15_hello_triangle.cpp with a single-line change on line 658, as well as removing vsync which makes it reproduce faster.

You will need to setup GLFW and Vulkan SDK to be able to build it. Instructions at https://vulkan-tutorial.com/Development_environment

Run the app for 10 minutes or so, with some way to monitor Frametimes (I use MSI afterburner)

After a while, frame times look like this:

RussellTG_0-1689645940107.png

Things of note:

1. the spacing between the lag spikes is always the same

2. size of spikes increases over time

 

If you look at line 656, you can see the original reset command in there. If you swap which line is active, then it will work smoothly.

Obviously, I expect some performance hit from reallocating the underlying command buffer memory every frame, however I would not expect that cost to increase to hundreds of milliseconds in an extremely simple application.

 

If you continue running the program for a few hours, it will eventually totally hang (I don't remember which call it hangs on and don't really want to run it again, but if that would be helpful I'm happy to)

Labels (1)
7 Replies
Jose_Intel
Employee
1,211 Views

Hello @RussellTG

 

Thank you for posting on the Intel️® communities.   

 

I am sorry to hear that you have problems with your app, and I’ll be more than happy to help you.

 

Please answer the following:

·      Have you tried the driver version 31.0.101.4502 or an older version, instead of the Beta?

·      Have you checked for Windows updates?

·      Are you able to reproduce the issue using a 3rd party GPU?

Also, in order to have more information about your system, please download, install and run Intel® System Support Utility for Windows. Make sure you check “Everything” before you scan, then save the report and attach it to your response.

 

Best regards,

Jose B.

Intel Customer Support Technician


0 Kudos
RussellTG
Beginner
1,166 Views

Thank you for replying. I have also tried 31.0.101.4502 which has the same behavior.

Windows update does not show any OS upgrades (just Intel Display driver "updates" to an older version)

I do not experience the issue with any other OS/GPU driver--list of configurations I've tested:
* Intel on x86 Linux
* Nvidia on x86 Windows
* Nvidia on arm64 Linux

 

I have attached the SSU information

0 Kudos
Jose_Intel
Employee
1,156 Views

Hello RussellTG

 

Thank you for the information.

 

We will check that internally, as soon as we have an update we will let you know by posting here.

 

Best regards,

Jose B.

Intel Customer Support Technician


0 Kudos
Jose_Intel
Employee
1,087 Views

Hello RussellTG

 

Thank you for your patience.

 

I want to inform that we are still working on your case, we will need a little more time. As soon as we have an update we will post it here.

 

Best regards,

Jose B.

Intel Customer Support Technician


0 Kudos
Hugo_Intel
Employee
708 Views

Hello RussellTG


Please retest with our latest driver 31.0.101.5085 and let us know if the issue persists.


Best Regards,


Hugo O.

Intel Customer Support Technician.


0 Kudos
Hugo_Intel
Employee
681 Views

Hello RussellTG


Please let us know if you were able to re-test the app with the latest driver and let us know if the issue continues.


Best Regards,


Hugo O.

Intel Customer Support Technician.


0 Kudos
Hugo_Intel
Employee
640 Views

Hello RussellTG


We have not received a response from you so far so we will be closing this thread. As mentioned in our previous post the issue should be resolved in our latest driver version. If you still require assistance, feel free to open a new topic.


Best Regards,


Hugo O.

Intel Customer Support Technician.


0 Kudos
Reply