내가 소유한 것

내가 소유한 것

내가 소유한 것

  • 비디오 카드 2개. 엔비디아 1050과 엔비디아 1050Ti
  • 모니터 4개. 하나는 4K, 하나는 풀 HD, 두 개는 1920x1200입니다. 마지막 두 개는 세로 모드입니다.

내 모니터는 다음과 같이 배치됩니다. 여기에 이미지 설명을 입력하세요.

NVIDIA-SMI:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.28       Driver Version: 455.28       CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0  On |                  N/A |
| 43%   53C    P0    N/A /  75W |   1178MiB /  4034MiB |      6%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 1050    Off  | 00000000:08:00.0 Off |                  N/A |
|  0%   28C    P8    N/A /  65W |      6MiB /  2000MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A    160537      G   /usr/bin/X                       1016MiB |
|    0   N/A  N/A    160872      G   ...AAAAAAAAA= --shared-files        6MiB |
|    0   N/A  N/A    161444      G   ...AAAAAAAA== --shared-files      107MiB |
|    0   N/A  N/A    163168      G   kitty                               2MiB |
|    1   N/A  N/A    160537      G   /usr/bin/X                          4MiB |
|    1   N/A  N/A    160872      G   ...AAAAAAAAA= --shared-files        0MiB |
|    1   N/A  N/A    161444      G   ...AAAAAAAA== --shared-files        0MiB |
|    1   N/A  N/A    163168      G   kitty                               0MiB |
+-----------------------------------------------------------------------------+

현재 작동 방식

모든 모니터는 1050Ti에 연결되어 있습니다. 일하다. 구성은 다음과 같습니다.

  • 정리하다:
# Managed by ansible. Editing is useless
# Sheridan
      
Section "Device"
  Identifier "Device_nvidia_corporation_geforce_gtx_1050_ti__gp107_"
  Driver     "nvidia"
  VendorName "NVidia Corporation"
  BoardName  "GeForce GTX 1050 Ti (GP107)"
  Option     "NoRenderExtension"    "off"
  Option     "IndirectMemoryAccess" "on"
  Option     "IgnoreEDID"           "off"
  Option     "UseEDID"              "on"
  Option     "NoLogo"               "off"
  Option     "RandRRotation"        "on"
  Option     "MultiGPU"             "off"
  Option     "SLI"                  "off"
  Option     "AllowSHMPixmaps"      "on"
  BusID      "PCI:01:00:0"
EndSection

      
Section "Device"
  Identifier "Device_nvidia_corporation_geforce_gtx_1050__gp107_"
  Driver     "nvidia"
  VendorName "NVidia Corporation"
  BoardName  "GeForce GTX 1050 (GP107)"
  Option     "NoRenderExtension"    "off"
  Option     "IndirectMemoryAccess" "on"
  Option     "IgnoreEDID"           "off"
  Option     "UseEDID"              "on"
  Option     "NoLogo"               "off"
  Option     "RandRRotation"        "on"
  Option     "MultiGPU"             "off"
  Option     "SLI"                  "off"
  Option     "AllowSHMPixmaps"      "on"
  BusID      "PCI:08:00:0"
EndSection
        
# center: LG 27UL500-W -> 3840x2160@60
# first: NVidia Corporation GeForce GTX 1050 Ti (GP107) @ DP-0
Section "Monitor"
  Identifier    "Monitor_lg_27ul500_w_first_dp_0"
  VendorName    "LG"
  ModelName     "27UL500-W"
  Option        "DPMS"
EndSection

Section "Screen"
  Identifier   "Screen_nvidia_corporation_geforce_gtx_1050_ti__gp107__lg_27ul500_w_first_dp_0"
  Device       "Device_nvidia_corporation_geforce_gtx_1050_ti__gp107_"
  Monitor      "Monitor_lg_27ul500_w_first_dp_0"
  DefaultDepth  24
  SubSection   "Display"
    Depth       24
  EndSubSection
EndSection
        
# top: LG 22MP55 -> 1920x1080@60
# first: NVidia Corporation GeForce GTX 1050 Ti (GP107) @ DVI-D-0
Section "Monitor"
  Identifier    "Monitor_lg_22mp55_first_dvi_d_0"
  VendorName    "LG"
  ModelName     "22MP55"
  Option        "DPMS"
EndSection

Section "Screen"
  Identifier   "Screen_nvidia_corporation_geforce_gtx_1050_ti__gp107__lg_22mp55_first_dvi_d_0"
  Device       "Device_nvidia_corporation_geforce_gtx_1050_ti__gp107_"
  Monitor      "Monitor_lg_22mp55_first_dvi_d_0"
  DefaultDepth  24
  SubSection   "Display"
    Depth       24
  EndSubSection
EndSection
        
# left: Iiyama ProLite XU2395WSU-B1 -> 1920x1200@60
# first: NVidia Corporation GeForce GTX 1050 Ti (GP107) @ HDMI-1
Section "Monitor"
  Identifier    "Monitor_iiyama_prolite_xu2395wsu_b1_first_hdmi_1"
  VendorName    "Iiyama"
  ModelName     "ProLite XU2395WSU-B1"
  Option        "DPMS"
EndSection

Section "Screen"
  Identifier   "Screen_nvidia_corporation_geforce_gtx_1050_ti__gp107__iiyama_prolite_xu2395wsu_b1_first_hdmi_1"
  Device       "Device_nvidia_corporation_geforce_gtx_1050_ti__gp107_"
  Monitor      "Monitor_iiyama_prolite_xu2395wsu_b1_first_hdmi_1"
  DefaultDepth  24
  SubSection   "Display"
    Depth       24
  EndSubSection
EndSection
        
# right: Iiyama ProLite XU2395WSU-B1 -> 1920x1200@60
# first: NVidia Corporation GeForce GTX 1050 Ti (GP107) @ HDMI-0
Section "Monitor"
  Identifier    "Monitor_iiyama_prolite_xu2395wsu_b1_first_hdmi_0"
  VendorName    "Iiyama"
  ModelName     "ProLite XU2395WSU-B1"
  Option        "DPMS"
EndSection

Section "Screen"
  Identifier   "Screen_nvidia_corporation_geforce_gtx_1050_ti__gp107__iiyama_prolite_xu2395wsu_b1_first_hdmi_0"
  Device       "Device_nvidia_corporation_geforce_gtx_1050_ti__gp107_"
  Monitor      "Monitor_iiyama_prolite_xu2395wsu_b1_first_hdmi_0"
  DefaultDepth  24
  SubSection   "Display"
    Depth       24
  EndSubSection
EndSection
  • Xrandr 초기화 스크립트:
#!/bin/bash

xrandr --setprovideroutputsource 1 0

# center: LG 27UL500-W -> 3840x2160@60
# top: LG 22MP55 -> 1920x1080@60
# left: Iiyama ProLite XU2395WSU-B1 -> 1920x1200@60
# right: Iiyama ProLite XU2395WSU-B1 -> 1920x1200@60


xrandr --verbose --dpi 96 \
    --output "DP-0" --mode 3840x2160 --rate 60  --primary  \
    --output "DVI-D-0" --mode 1920x1080 --rate 60  --above "DP-0"  \
    --output "HDMI-1" --mode 1920x1200 --rate 60  --left-of "DP-0" --rotate right \
    --output "HDMI-0" --mode 1920x1200 --rate 60  --right-of "DP-0" --rotate left \

시작 시 X는 카드와 모니터에 대한 정보를 받습니다. 또한 창 관리자가 시작되면 xrandr init 스크립트가 실행되고 모니터가 배포되어 필요한 위치에 정렬됩니다.

내가 원하는 건

  • 4k 모니터를 1050Ti에 연결
  • 추가 모니터를 1050에 연결

즉, 두 그래픽 카드 사이에 부하를 분산시키려는 것입니다.

내가 뭘 시도한 거야?

세 개의 모니터를 두 번째 그래픽 카드로 전환합니다.

랜달

init 스크립트를 변경해도 결과가 나오지 않습니다. xrandr은 모니터 회전을 원하지 않습니다. 오류는 다음과 같습니다. xrandr: output HDMI-1-0 cannot use rotation "right" reflection "none"또한 회전 옵션을 제거하면 모니터가 시작되지 않습니다. 활성 4k 모니터만 기본 그래픽 카드에 연결됩니다.

  • Xrandr 초기화 스크립트:
#!/bin/bash

xrandr --setprovideroutputsource 1 0

# center: LG 27UL500-W -> 3840x2160@60
# top: LG 22MP55 -> 1920x1080@60
# left: Iiyama ProLite XU2395WSU-B1 -> 1920x1200@60
# right: Iiyama ProLite XU2395WSU-B1 -> 1920x1200@60


xrandr --verbose --dpi 96 \
    --output "DP-0" --mode 3840x2160 --rate 60  --primary  \
    --output "DVI-D-1-0" --mode 1920x1080 --rate 60  --above "DP-0"  \
    --output "HDMI-1-0" --mode 1920x1200 --rate 60  --left-of "DP-0" --rotate right \
    --output "DP-1-1" --mode 1920x1200 --rate 60  --right-of "DP-0" --rotate left \

엔비디아 설정

또한 nvidia-settings를 사용하여 xorg.conf 구성을 시도했습니다. 모니터가 올바르게 초기화되고 측면 모니터가 올바르게 회전합니다. 하지만 OpenGL 애플리케이션을 시작하면(예:고양이), 인터페이스 속도가 느려지기 시작합니다. 데스크톱/창 간 전환 속도가 많이 느려지기 시작합니다(전환하는 데 몇 초 정도 소요). 또한 nvidia-smi dmon1050이 100% 로드되었음을 보여줍니다.

# gpu   pwr gtemp mtemp    sm   mem   enc   dec  mclk  pclk
# Idx     W     C     C     %     %     %     %   MHz   MHz
    0     -    57     -     7     9     0     0  3504  1303
    1     -    52     -   100     4     0     0  3504  1657
    0     -    57     -     7     9     0     0  3504  1303
    1     -    52     -   100     4     0     0  3504  1657
    0     -    57     -     7     9     0     0  3504  1303
    1     -    52     -   100     4     0     0  3504  1657
    0     -    57     -    10    11     0     0  3504  1303
    1     -    52     -   100     5     0     0  3504  1657
    0     -    57     -    11    13     0     0  3504  1303
    1     -    52     -   100     4     0     0  3504  1657
    0     -    57     -     7     9     0     0  3504  1303
    1     -    52     -   100     5     0     0  3504  1657
    0     -    57     -    11    14     0     0  3504  1303
    1     -    52     -   100     4     0     0  3504  1657
    0     -    57     -     7     9     0     0  3504  1303
    1     -    52     -   100     6     0     0  3504  1657
  • xorg.conf:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 455.28

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 1200 1080
    Screen      1  "Screen1" 1200 0
    Screen      2  "Screen2" 0 1080
    Screen      3  "Screen3" 5040 1080
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "1"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics LG HDR 4K"
    HorizSync       135.0 - 135.0
    VertRefresh     48.0 - 61.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "LG Electronics 22MP55"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor2"
    VendorName     "Unknown"
    ModelName      "Idek Iiyama PL2395W"
    HorizSync       30.0 - 89.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor3"
    VendorName     "Unknown"
    ModelName      "Idek Iiyama PL2395W"
    HorizSync       30.0 - 89.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050 Ti"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050"
    BusID          "PCI:8:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050"
    BusID          "PCI:8:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "Device3"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050"
    BusID          "PCI:8:0:0"
    Screen          2
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-2"
    Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "HDMI-0: nvidia-auto-select +0+0 {rotation=right}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen3"
    Device         "Device3"
    Monitor        "Monitor3"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-3"
    Option         "metamodes" "DP-1: nvidia-auto-select +0+0 {rotation=left}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

운영 체제: 젠투 리눅스

패키지 버전:

[ebuild   R    ] x11-base/xorg-server-1.20.8-r1:0/1.20.8::gentoo  USE="ipv6 (libglvnd) systemd udev wayland xorg -debug -dmx -doc (-elogind) -kdrive -libressl -minimal (-selinux) -static-libs -suid -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB
[ebuild   R    ] x11-apps/xrandr-1.5.1::gentoo  0 KiB
[ebuild   R    ] x11-drivers/nvidia-drivers-455.28-r1:0/455::gentoo  USE="X driver gtk3 kms (libglvnd) multilib tools uvm wayland -compat -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R    ] x11-base/xorg-x11-7.4-r3::gentoo  USE="fonts" 0 KiB

제가 또 무엇을 시도해 볼 수 있는지 말씀해주실 수 있나요? 내가 무엇을 잊었나요? 내가 뭘 잘못했나요?

관련 정보