RTX 5090 and M4 MacBook Air: Can It Game?
3 hours ago
- #eGPU
- #MacOS
- #Virtualization
- An eGPU (external GPU) can be connected to a MacBook Air using Thunderbolt, which tunnels PCIe over USB-C, allowing desktop GPUs to be used.
- MacOS lacks drivers for NVIDIA/AMD GPUs on Apple Silicon, but Linux VMs on MacOS can utilize GPU passthrough via PCIe tunneling.
- PCI passthrough on MacOS involves mapping PCI BARs and handling DMA, with challenges like host crashes due to HVF mappings and DART constraints.
- A custom QEMU patch and apple-dma-pci virtual device manage DMA limitations, including a 1.5GB mapping cap and 64k mapping count limit.
- Performance improvements include adjusting VM thread priorities and enabling hardware Total Store Ordering (TSO) mode for better x86 emulation.
- Benchmarks show eGPUs significantly boost gaming and AI inference on Macs, especially at higher resolutions, though overhead reduces performance compared to native PCs.
- The setup is complex and unstable, requiring special entitlements and custom drivers, making it more a proof-of-concept than a practical solution.
- Future improvements could include Thunderbolt support in Linux for Apple Silicon and integration of patches into mainstream QEMU distributions.