[PATCH 0/3] drm/amdgpu: Tweaks for high pressure on CPU visible VRAM
michel at daenzer.net
Thu May 18 09:08:06 UTC 2017
From: Michel Dänzer <michel.daenzer at amd.com>
This series was developed and tested under the following scenario:
Running the PTS dirt-rally benchmark (1920x1080, Ultra) on Tonga with
2G, with CPU visible VRAM artificially restricted to 64 MB.
Without this series, there's a lot of stutter during about the first
minute of a benchmark run. During this time there are significant amounts
of buffer moves (starting from about 500 MB on the HUD) and evictions,
gradually declining until the buffer moves settle around 8 MB on the HUD.
With this series, there's only slight stutter during the first seconds
after the car launches, even though the buffer move volume is about the
same as without the series. Buffer evictions are eliminated almost
completely, except for a few at the beginning. Buffer moves still settle
around 8 MB on the HUD, but with less variance than before.
Note that there's only little if any improvement of the average framerate
reported, but the minimum framerate as seen on the HUD goes from ~10 fps
Patch 1 is a cleanup that I noticed along the way.
Patch 2 makes the main difference for the above scenario.
Patch 3 doesn't make as much difference, I'm fine with it not landing at
least for now.
Michel Dänzer (3):
drm/amdgpu: Drop useless loops for placement restrictions
drm/amdgpu: Don't evict other BOs from VRAM for page faults
drm/amdgpu: Try evicting from CPU visible to invisible VRAM first
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 42 ++++++++++++---------------
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 46 ++++++++++++++++++++----------
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 6 +---
3 files changed, 51 insertions(+), 43 deletions(-)
More information about the amd-gfx