Quote I'm seeing random temporary freezes (up to 2 seconds) under memory

pressure. Before I describe the exact circumstances, I'd like to say

that this is a serious issue affecting playability of certain AAA

Linux games.

Quote In order to reproduce this, an application should:

- allocate a few very large buffers (256-512 MB per buffer)

- allocate more memory than there is available VRAM. The issue also

occurs (but at a lower frequency) if the app needs only 80% of VRAM.



Example: ttm_bo_validate needs to migrate a 512 MB buffer. The total

size of moved memory for that call can be as high as 1.5 GB. This is

always followed by a big temporary drop in VRAM usage.

Quote Hi Marek,



I'm already working on this.



My current approach is to use a custom BO manager for VRAM with TTM and

so split allocations into chunks of 4MB.



Large BOs are still swapped out as one, but it makes it much more likely

to that you can allocate 1/2 of VRAM as one buffer.



Give me till the end of the week to finish this and then we can test if

that's sufficient or if we need to do more.



Regards,

Christian.

Article taken from GamingOnLinux.com.

Marek Olšák has recently sent word to the AMD mailing list that they have found a reason for some games performing poorly using Mesa. Another developer noted that a patch is already in progress.Marek goes on to detail how to reproduce it and suggests some workarounds.The good news is that another message from Christian König states they they are already working on it, and they may have something to show rather soon:It's really great to see some attention to performance and not just getting their feature list up to spec. Onwards and upwards!I've said for a long time now to heated debates that AMD drivers (both open and closed) need work on performance and that it's not purely down to game porters. It will be great if this helps certain games gain official support on AMD with Mesa in future.