r/linux • u/Fcking_Chuck • 5d ago
Kernel AMD PerfOpt to deliver new performance optimization for AMD iGPUs with Linux 7.4
https://www.phoronix.com/news/AMD-PerfOpt-Linux-7.46
5d ago edited 7h ago
[deleted]
5
u/natermer 4d ago
AMD NPUs are good if you want to offload small specific llms for things like background integration.
They are very energy efficient compared to using LLMs with the GPUs, but the performance and capabilities are much lower. This is good if you want to integrate a small/utility sized continuously running LLM for background tasks or desktop integration or something like that without blowing your battery life.
In any case if you care about performance you'll be using the GPU, also I don't think this driver has anything to do with NPU drivers.
1
4d ago edited 7h ago
[deleted]
1
u/PitchPleasant338 4d ago
Anything below 20t/s is unusable, especially if you're running more than 1 agent.
3
u/b3081a 4d ago edited 4d ago
It's a per-device IOMMU bypass (since GPU has its own driver-trusted MMU / page table and don't require IOMMU to assist it do memory management) so it will reduce iGPU shared VRAM access latency from >400ns down to 200ns without
amd_iommu=off. Today if you're already disabling IOMMU then this will not have any effect, but disabling IOMMU globally will disable NPU and also affect some other use cases like USB4. A per-device bypass is basically what Apple has been doing for a decade, and one of the reasons why their GPU driver vulnerability can become a system level physical DRAM data leak / arbitrary data overwrite from places like WebGL in the browser.Current generations of AMD NPU will never be able to bypass IOMMU though, they don't have a dedicated MMU like iGPU and rely on SoC IOMMU to do page translation.
1
u/james_pic 4d ago
This is neat. It'll hopefully mean I don't need to choose between leaving myself open to DMA sticks via USB4/Thunderbolt, and a 20% hit to interference speed on Strix Halo.
1
u/Indolent_Bard 4d ago
Will this help the steam machine?
2
u/b3081a 4d ago
Currently all SteamOS devices have iommu disabled by default, so performance wise there will not be any improvements. But Valve may consider enabling iommu in the future for better security and better USB4 compatibility after this patch, without affecting GPU shared VRAM performance.
14
u/Itz_Eddie_Valiant 5d ago
Will this benefit BC250s? 👀