[Bug 277476] graphics/drm-515-kmod: amdgpu periodic hangs due to phys contig allocations

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 09 Mar 2025 21:03:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277476

--- Comment #16 from Ivan Rozhuk <rozhuk.im@gmail.com> ---
Never see this issue on "AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx", but
always on
5950x + RX 5600 XT.
Software config identical, FBSD 14/stable.
xorg + amdgpu x driver.


To reduce freezes I use:
- picom
- cpuset to leave 8 cores free while build ports
- script that creates 16gb file on tmpfs and remove it

Script makes free ~20gb and almost no freezes until freemem > 3gb.
But after ~1 month of uptime I start see freezes even with freemem > 20gb.
Even without debug tools this was looks like memory fragmentation issue. :)


Is it possible to implement some memory defrag code in pagedaemon?
vm_page_reclaim_contig() also used by iommu, ktls and shm so improving it will
make FBSD better even for server roles.



(In reply to Josef 'Jeff' Sipek from comment #0)

Thanks for debugging!


(In reply to sigsys from comment #5)

Thanks for patch, I will test it, but it requires at least 2 weeks to make sure
that freezes go away.



(In reply to Emmanuel Vadot from comment #6)

Do you use xorg + amdgpu x driver?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.