本文檔介紹如何使用資料中心GPU管理器(DCGM)對全部八個GPU(GPU0-GPU7)上的nvbandwidth測試進行分析和故障排除。
伺服器型號:UCSC-885A-M8-H25
圖形處理單元: 8 × NVIDIA H200
作業系統:Ubuntu OS 22.04
處理器:2 × AMD EPYC 9575F
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
nvbandwidth測試中觀察到的故障歸因於IOMMU的啟用狀態。I/O記憶體管理單元(IOMMU)為I/O裝置提供記憶體重新對映服務。它增加了對從外圍裝置直接儲存器訪問(DMA)傳送的地址轉換和系統儲存器訪問保護的支援。
由於nvbandwidth測試利用點對點事務來測量GPU之間的資料傳輸速率,因此活動IOMMU施加的記憶體轉換開銷或限制會妨礙這些直接事務,導致測試結果失敗。
AMD建議按此處所述禁用iommu。

Nvidia還建議禁用裸機系統的IOMMU。
1.禁用grub中的iommu。
執行「cat /proc/cmdline」命令以驗證IOMMU是啟用還是禁用:
user@host:~$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.8.0-90-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro amd_iommu=on iommu=pt pci=realloc=off pci=bfsort numa_balancing=disable nokaslr norandmaps biosdevname=0 quiet mitigations=off tsc=nowatchdog nmi_watchdog=0 transparent_hugepage=always pcie_aspm=off modprobe.blacklist=amdgpu
要禁用IOMMU:
$ sudo sed -i '/^GRUB_CMDLINE_LINUX_DEFAULT=/ { /amd_iommu=off/! { s/^\\(GRUB_CMDLINE_LINUX_DEFAULT=\"\\)\"/\\1amd_iommu=off\"/; t; s/\"$/ amd_iommu=off\"/ } }' /etc/default/grub
bronco:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-90-generic
Found initrd image: /boot/initrd.img-6.8.0-90-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Ubuntu 24.04.3 LTS (24.04) on /dev/mapper/ubuntu--vg--1-ubuntu--lv
Adding boot menu entry for UEFI Firmware Settings ...
done
2.執行「set nvidia-smi -pm 1」命令
這將啟用NVIDIA GPU持續模式。
附註:啟用持久模式的好處在於,每次新的GPU工作負載開始時,它都會降低重新初始化驅動程式的開銷。持續模式可提高效能和穩定性,尤其是在重複或循環運行GPU任務時。
3.重新啟動伺服器
user@host:~$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.8.0-90-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro amd_iommu=off pci=realloc=off pci=bfsort numa_balancing=disable nokaslr norandmaps biosdevname=0 quiet mitigations=off tsc=nowatchdog nmi_watchdog=0 transparent_hugepage=always pcie_aspm=off modprobe.blacklist=amdgpu amd_iommu=off
| 修訂 | 發佈日期 | 意見 |
|---|---|---|
1.0 |
01-Dec-2026
|
初始版本 |