You are not logged in.

#1 2022-12-27 04:30:10

kongus_bongus
Member
Registered: 2020-07-08
Posts: 21

[SOLVED] xorg takes >80% cpu when using certain applications

after a recent upgrade, Xorg consumes between 30-90% of my cpu when not idle (under a reasonable amout of input like just typing), and up to 90% when active in certain applications.

applications which i have found to be affected significantly more than others:
- Kitty
- Rofi

Last edited by kongus_bongus (2022-12-27 21:38:46)

Offline

#2 2022-12-27 06:49:12

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: [SOLVED] xorg takes >80% cpu when using certain applications

what got upgraded ? have a look and try reverting packages till you find the culprit.
also check your journal/logs for clues as well.

Offline

#3 2022-12-27 08:04:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] xorg takes >80% cpu when using certain applications

Those numbers read like your GL acceleration is broken and you rely on software accel.

Post/check aforementioned logs as well as your xorg.log and maybe post

glxinfo -B

from mesa-utils.

Offline

#4 2022-12-27 18:38:57

kongus_bongus
Member
Registered: 2020-07-08
Posts: 21

Re: [SOLVED] xorg takes >80% cpu when using certain applications

glxinfo -B:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon Graphics (renoir, LLVM 14.0.6, DRM 3.42, 5.15.85-1-lts) (0x1636)
    Version: 22.3.1
    Accelerated: yes
    Video memory: 512MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 253 MB, largest block: 253 MB
    VBO free aux. memory - total: 3006 MB, largest block: 3006 MB
    Texture free memory - total: 253 MB, largest block: 253 MB
    Texture free aux. memory - total: 3006 MB, largest block: 3006 MB
    Renderbuffer free memory - total: 253 MB, largest block: 253 MB
    Renderbuffer free aux. memory - total: 3006 MB, largest block: 3006 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 3584 MB
    Currently available dedicated video memory: 253 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 14.0.6, DRM 3.42, 5.15.85-1-lts)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

/var/log/Xorg.1.log: http://ix.io/4jIp

pacman.log from latest upgrade (it was the first upgrade in a while): http://ix.io/4jIu

Offline

#5 2022-12-27 19:46:14

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] xorg takes >80% cpu when using certain applications

Xorg.1.log wrote:
[   635.563] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration

Fix your login session. Not sure if it's related to the actual problem though.

https://wiki.archlinux.org/title/Genera … ermissions

Offline

#6 2022-12-27 20:18:41

seth
Member
Registered: 2012-09-03
Posts: 51,135

Re: [SOLVED] xorg takes >80% cpu when using certain applications

[   635.562] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Sep  7 11:51:32 2020

Wrong log.

[2022-12-26T19:40:00-0800] [ALPM] upgraded xf86-video-vesa (2.5.0-3 -> 2.6.0-1)

Remove xf86-video-vesa t onot gloss over problems. You don't want to use that driver ever.

[2022-12-26T19:39:57-0800] [ALPM] upgraded picom (9.1-3 -> 10.2-1)

What happens if you kill picom?

Online

#7 2022-12-27 20:22:46

kongus_bongus
Member
Registered: 2020-07-08
Posts: 21

Re: [SOLVED] xorg takes >80% cpu when using certain applications

killing picom does the trick. what's the problem there, and how can i fix it?

i already removed vesa and it didn't seem to help.

Last edited by kongus_bongus (2022-12-27 20:24:38)

Offline

#8 2022-12-27 20:40:16

seth
Member
Registered: 2012-09-03
Posts: 51,135

Re: [SOLVED] xorg takes >80% cpu when using certain applications

No, it just gets in the way.
Please post your actual xorg log and your picom config.

https://wiki.archlinux.org/title/Xorg#General

Online

#9 2022-12-27 21:38:30

kongus_bongus
Member
Registered: 2020-07-08
Posts: 21

Re: [SOLVED] xorg takes >80% cpu when using certain applications

starting picom with `--backend glx` fixed the issue for me, from https://github.com/yshui/picom/issues/967.

Offline

Board footer

Powered by FluxBB