You are not logged in.

#1 2024-06-20 15:18:17

Arthur96
Member
Registered: 2024-06-20
Posts: 3

[SOLVED] High CPU Usage by /usr/lib/Xorg Causing Display Freezes

Hello,
I've been having some performance issues with my Arch Linux setup recently, where my display manager occasionally freezes. After some investigation using htop, I noticed that the command /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.e6VX18QoBs periodically spikes to around 45% CPU usage. This high CPU usage seems to be the cause of the freezes. What is the cause of these spikes and how can I mitigate them?

Last edited by Arthur96 (2024-06-20 22:44:23)

Offline

#2 2024-06-20 19:39:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: [SOLVED] High CPU Usage by /usr/lib/Xorg Causing Display Freezes

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and the output of

loginctl session-status

If nothing is wrong with that, the X11 server typically generates load in response to some client request - the client will then likely show up as well (with less but still elevated CPU load)

Online

#3 2024-06-20 20:11:35

Arthur96
Member
Registered: 2024-06-20
Posts: 3

Re: [SOLVED] High CPU Usage by /usr/lib/Xorg Causing Display Freezes

I use NVIDIA drivers in my setup and launch dwm using startx:
Xorg log: https://pastebin.com/1TBrFDEP
Xinitrc: https://pastebin.com/FKXMQ4ZB
xorg.conf.d files: https://pastebin.com/xUMXQU5v
loginctl: https://pastebin.com/QHm2dn27

Offline

#4 2024-06-20 20:59:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: [SOLVED] High CPU Usage by /usr/lib/Xorg Causing Display Freezes

[ 13027.013] (--) PCI:*(0@0:2:0) 8086:9a60:1462:12ea rev 1, Mem @ 0x6202000000/16777216, 0x4000000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[ 13027.013] (--) PCI: (1@0:0:0) 10de:2520:1462:12ea rev 161, Mem @ 0x81000000/16777216, 0x6000000000/8589934592, 0x6200000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288

Hybrid graphics.

[ 13026.983] (==) ServerLayout "layout"
[ 13026.983] (**) |-->Screen "nvidia" (0)
[ 13026.983] (**) | |-->Monitor ""
[ 13026.983] (**) | |-->Device "nvidia"
[ 13026.983] (**) | |-->GPUDevice "intel"

you're forcing the server to run on the nvidia chip

[ 13027.075] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[ 13027.075] (--) NVIDIA(0): AllowEmptyInitialConfiguration is enabled
[ 13027.079] (II) NVIDIA(0): Validated MetaModes:
[ 13027.079] (II) NVIDIA(0): "NULL"
[ 13027.079] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[ 13027.079] (WW) NVIDIA(0): Unable to get display device for DPI computation.

but the only output is on the intel chip.

See the blue note in https://wiki.archlinux.org/title/PRIME#Reverse_PRIME
Is there any particular reason for the setup?
You'll likely be much better off running on the intel chip and only offloading actually demanding tasks onto the nvidia one.

Probably unrelated sidebar: your xinitrc is broken - see the last link below and the second note there on what to include at least.

Online

#5 2024-06-20 21:29:09

Arthur96
Member
Registered: 2024-06-20
Posts: 3

Re: [SOLVED] High CPU Usage by /usr/lib/Xorg Causing Display Freezes

The reason I initially tried to set up hybrid graphics was to potentially use a more demanding display manager like Hyperland. However, I’ve decided to choose dwm as my graphical environment and I will set up it to run on the Intel chip instead. Thanks for the advice.

Offline

Board footer

Powered by FluxBB