From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: amd-gfx@lists.freedesktop.org
Subject: No GTT->VRAM unswapping with amdgpu?
Date: Fri, 12 May 2023 03:31:29 +0200 [thread overview]
Message-ID: <ZF2W8ZS7FUdKHSoh@sellars> (raw)
Hi,
Initially noticed this in some games, which seem to be a bit lazy
with their VRAM allocations + freeing, that performance would drop
dramatically / become unusable once the VRAM is full and GTT gets
used. For instance in No Man's Sky after jumping a solar system
or on DCS World on several maps and in multiplayer. I'm using an
ATI/AMD Radeon RX 6650 XT, 8GB VRAM with an eGPU enclosure
(Razer Core X Chroma, Thunderbolt 3), connected via a 40Gbit/s
USB4 port. Which usually has great performance, until I hit the
VRAM limit.
I scripted some further tests and benchmarking around
memmtest_vulkan(*) and these were the results:
https://github.com/T-X/linux-amdgpu-radeon-vram-swapping-test/
I would have expected roughly the same speeds in all tests.
However tests 5) and 6) yielded significantly lower performance.
Which leads me to the conclusion that anything that gets allocated
on GTT stays there and is never unswapped from GTT / system memory
back to VRAM?
I also read that there was some rework with a new TTM allocator
in 2020. But dynamic (un)swapping via TTM seems currently unused?
Is this expected?
Regards, Linus
(*): https://github.com/GpuZelenograd/memtest_vulkan
next reply other threads:[~2023-05-12 1:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-12 1:31 Linus Lüssing [this message]
2023-05-15 14:42 ` No GTT->VRAM unswapping with amdgpu? Alex Deucher
2023-05-15 14:51 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZF2W8ZS7FUdKHSoh@sellars \
--to=linus.luessing@c0d3.blue \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.