cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

Highlighted
Journeyman III
Journeyman III

Vulkan - Driver memory swap behavior

Hi!

I have been running into some issues with my Vulkan app where it sometimes seems to swap out memory from the GPU making the application run extremely slowly, and it seems to be happening at random. I have run the RGP suite to try to figure out what is going wrong, and it seems to be related to memory! Operations on buffers and render targets can become extremely slow when their memory is swapped out and needs to paged in from host memory during a frame. I don't see the reason for why the driver needs to do this, because the memory is allocated as DEVICE_LOCAL, and I don't have any signs of over commitment or such like, nor do I exceed amount of allowed allocations. I can provide memory traces for both scenarios if needed, as well as the source code (although it is not small). A theory I have is that another application is taking GPU memory and for some reason the driver doesn't swap it's memory, but instead choose to swap from my app. These two images show the memory capture from the exact same app, with the exact same content, running on an Radeon RX 480. I have also had identical (or actually even worse) behavior on a Radeon R9 Nano. Both of which were running Windows 10 with an Adrenaline version from June as well as the most recent one (Driver Version
20.20.33.01-201016a-360073E-RadeonSoftwareAdrenalin2020)

badcapture.PNGgoodcapture.PNG

3 Replies
Highlighted
Staff
Staff

Re: Vulkan - Driver memory swap behavior

Hi @Duttenheim 

Thanks for your report. Could you please help provide a test which can reproduce this issue. Smiley Happy

0 Kudos
Reply
Highlighted
Journeyman III
Journeyman III

Re: Vulkan - Driver memory swap behavior

It's a bit hard for me to provide a consistent test which reproduces this problem, but I can provide a binary which should eventually produce the results presented in my original post. Another thing I could do is to provide memory and call traces, if that's going to be more useful instead? Or I could try to provide both Smiley Happy.

0 Kudos
Reply
Highlighted
Staff
Staff

Re: Vulkan - Driver memory swap behavior

Hi @Duttenheim 

Sure, you can provide an app binary which can reproduce this problem. Smiley Happy

Thanks!

 

0 Kudos
Reply