]> git.dujemihanovic.xyz Git - linux.git/commit
drm/ttm: stop pooling cached NUMA pages v2
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Mon, 15 Apr 2024 13:48:21 +0000 (15:48 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 15 Apr 2024 14:57:41 +0000 (16:57 +0200)
commitb6976f323a8687cc0d55bc92c2086fd934324ed5
tree3d49f342025dc0c20d88549e9a18799ca6314376
parentcf92bb778eda7830e79452c6917efa8474a30c1e
drm/ttm: stop pooling cached NUMA pages v2

We only pool write combined and uncached allocations because they
require extra overhead on allocation and release.

If we also pool cached NUMA it not only means some extra unnecessary
overhead, but also that under memory pressure it can happen that
pages from the wrong NUMA node enters the pool and are re-used
over and over again.

This can lead to performance reduction after running into memory
pressure.

v2: restructure and cleanup the code a bit from the internal hack to
    test this.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 4482d3c94d7f ("drm/ttm: add NUMA node id to the pool")
CC: stable@vger.kernel.org
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240415134821.1919-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_pool.c