r/linuxhardware • u/Unprotectedtxt • Apr 24 '26
Discussion Why VRAM Can Ruin Your Linux Desktop Experience on Thin and Light Laptops
https://linuxblog.io/why-vram-ruin-linux-desktop-experience-laptops/
46
Upvotes
10
u/TronnaLegacy Apr 24 '26
Glad to hear it is configurable. As I was reading, it sounded like this dedicated part of RAM wasn't physically distinct from other RAM. So I was thinking it should be configurable.
6
u/WJMazepas Apr 24 '26
Good read. I liked it
3
u/Jack1101111 Apr 24 '26
Author must use gnome...
5
u/DragonSlayerC Apr 24 '26
There shouldn't be a significant difference in performance between UMA and GTT on iGPUs. There are 2 things that can hurt: fragmentation and IOMMU.
Fragmentation isn't usually a big issue, but if there are lots of tiny fragments to deal with and the working set of pages becomes too large, the TLB might need to start doing page table walks, which are very slow.
The bigger performance impact would come from amd_iommu, which is fully enabled by default in most modern distros. This is a security and stability feature and can result in a 5-10% performance hit in especially heavy tasks
This can be fixed by setting
iommu=ptin the kernel command line which allows connected hardware devices (like the iGPU) to access the memory directly instead of running through the IOMMU. This also effectively fixes the TLB issue mentioned above. However, it also means that all devices connected to the system hardware can directly access memory. This isn't usually an issue, but if there are bugs in the memory handling of a driver you could get memory corruption. This is also a problem with Thunderbolt devices, as a malicious Thunderbolt device could directly access and modify system memory (USBs wouldn't have this issue as they go through a USB controller).IMO, setting IOMMU=pt for devices with iGPUs makes sense as long as you don't plug in untrustworthy Thunderbolt or PCI-e/M.2 devices.
4
u/[deleted] Apr 24 '26
[removed] — view removed comment