RX580 Slow Performance on New XPS13 9300 on Arch
 
Notifications
Clear all

RX580 Slow Performance on New XPS13 9300 on Arch  

  RSS

dotSpectrum
(@dotspectrum)
New Member
Joined: 7 months ago
 

Hi guys,

Long time lurker, first time poster. I recently bought a Dell XPS13 9300 and installed Arch Linux on it. So far so good.

Until I decided to try to use it with my AMD RX580. I installed the drivers as per the archlinux wiki and used the egpu-switcher to switch to the external GPU, which is connected to my Dell QHD monitor. When running the Unigine benchmark on the QHD monitor, I'm getting around 11.3 FPS on Unigine Heaven 4.0 benchmarks. I'm not sure why I am getting this bad of a frame rate. Previously, I ran a successful eGPU setup with the same GPU on my old 2015 Macbook Pro running bootcamp, it blows my current setup out of the water. Heck, even the iGPU (Iris Plus Graphics G7) runs Unigine smoother in 1920x1200.

Does anyone have any thought or suggestions if this can be resolved?

 

5-25 EDIT: I have a theory that my eGPU is not being used despite me running egpu-switcher switch egpu and then rebooting. Can anyone point me in the right direction on how to force using the gpu?

5-27 EDIT: eGPU is not fully using all the speeds in PCIe; it looks like it is limited to 2.5x4 instead of 8x4. From dmesg:

[ 2.835418] pci 0000:03:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at 0000:00:07.0 (capable of 126.016 Gb/s with 8 GT/s x16 link)

 

 

 

lspci | grep "VGA"

00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics G7 (rev 07)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)

 

xrandr

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP1 connected primary (normal left inverted right x axis y axis)
1920x1200 59.95 + 59.95 47.96
1920x1080 59.93
1680x1050 60.00 59.95 59.88
1400x1050 59.98
1600x900 59.95 59.82
1280x1024 60.02
1400x900 60.00 59.96 59.88
1280x960 60.00
1368x768 59.88 59.85
1280x800 59.81 60.00 59.91
1280x720 59.86 59.74
1024x768 60.00
1024x576 59.90 59.82
960x600 60.00
960x540 59.63 59.82
800x600 60.32 56.25
864x486 59.92 59.57
640x480 59.94
720x405 59.51 58.99
640x360 59.84 59.32

HDMI-A-1-0 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 59.95*+
2048x1152 60.00
1920x1200 59.95
1920x1080 60.00 60.00 50.00 59.94 30.00 25.00 24.00 29.97 23.98
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.95
1280x800 59.95
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.09

 

Installed AMD drivers

mesa 20.0.7-3

lib32-mesa 20.0.7-3

xf86-video-amdgpu 19.1.0-2

vulkan-radeon 20.0.7-3

lib32-vulkan-radeon 20.0.7-3

libva-mesa-driver 20.0.7-3

lib32-libva-mesa-driver 20.0.7-3

mesa-vdpau 20.0.7-3

lib32-mesa-vdpau 20.0.7-3

 

boltctl

 Sonnet Technologies, Inc. eGFX Breakaway Box 550
├─ type: peripheral
├─ name: eGFX Breakaway Box 550
├─ vendor: Sonnet Technologies, Inc.
├─ uuid: 00a129d1-315f-0800-ffff-ffffffffffff
├─ status: authorized
│ ├─ domain: 60e61166-1423-8680-ffff-ffffffffffff
│ └─ authflags: none
├─ authorized: Sat 23 May 2020 06:25:02 AM UTC
├─ connected: Sat 23 May 2020 06:25:02 AM UTC
└─ stored: Sat 23 May 2020 02:41:42 AM UTC
├─ policy: iommu
└─ key: no

 

 

/etc/X11/xorg.conf.egpu

Section "Module"
    Load           "modesetting"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "amdgpu"
    BusID          "3:0:0"
    Option         "AllowEmptyInitialConfiguration"
    Option         "AllowExternalGpus" "True"
EndSection

 

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
dotSpectrum
(@dotspectrum)
New Member
Joined: 7 months ago
 

Update: It seems the issue was that I was only rendering my external monitor and not my XPS monitor.

If I didn't force Xorg to render your laptop monitor, I experienced lag on my second monitor.

I made a change to my .xinitrc file and forced xrandr to render both. That made a significant increase in performance, but I think it could be better.

I also will also try to benchmark in Vulkan next over OpenGL

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
Gwendolyn Scogin
(@gwendolyn_scogin)
Active Member
Joined: 7 months ago
 

@dotspectrum, can you post that change?

 

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
dotSpectrum
(@dotspectrum)
New Member
Joined: 7 months ago
 

@gwendolyn_scogin, Here's part of my .xinitrc file. Originally, I had set internal to off when connected to my eGPU.

intern=eDP1
extern=HDMI-A-1-0

if xrandr | grep "$extern disconnected"; then
     xrandr --output "$intern" --auto
else
     xrandr --output "$extern" --auto --primary --right-of "$intern"
fi

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

nu_ninja liked
ReplyQuote
ross
 ross
(@ross)
New Member
Joined: 2 months ago
 

@dotspectrum, Did you fix the PCI issue? I have the same warning in my dmesg.

 

This post was modified 2 months ago

EGPU: Radeon VII in Razer Core X Chroma


ReplyQuote