解決顯卡效能變差問題

最近用 Quadro RTX 8000 顯卡,在測試效能時(glxspheres64),發現只要十分鐘後效能就會變差。雖然心裡想著,這應該是螢幕保護或是節能的問題導致。但是就是不知道該怎麼設定才能排除這個問題。

$ glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: Quadro RTX 8000/PCIe/SSE2
546.259385 frames/sec – 609.625473 Mpixels/sec
500.930431 frames/sec – 559.038361 Mpixels/sec
479.926769 frames/sec – 535.598274 Mpixels/sec
(omit)
1.000126 frames/sec – 0.993365 Mpixels/sec
0.999907 frames/sec – 0.993148 Mpixels/sec

後來在網路上找到:「Getting exactly 1 FPS on vglrun glxgears/glxspheres」文章,才解決了這個鳥問題。

要編輯 /etc/X11/xorg.conf 檔案 然後把 hardDPMS 關掉

$ vi /etc/X11/xorg.conf
(omit)
Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
Option “HardDPMS” “False”
EndSection
(omit)
Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro RTX 8000”
BusID “PCI:61:0:0”
Option “HardDPMS” “False”
EndSection
(omit)

然後重新啟動 x11 就好了

(/usr/bin/Xorg :0 &)
export DISPLAY=:0
(xhost + &)

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.