Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE6 Performace Issues
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
user7719
n00b
n00b


Joined: 19 Feb 2021
Posts: 73

PostPosted: Fri Sep 27, 2024 11:58 am    Post subject: KDE6 Performace Issues Reply with quote

Hi,

Since up upgraded to KDE 6 on my laptop I have lots of performance issues.

When a notification popup shows every other window locks up for ~2 seconds. Video also pauses in chrome.
Popup menus take ~2 seconds to show.
Altering window sizes and dragging windows around is slow and stuttery.

This happens on both the internal and external monitor.
Code:
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.6.51-gentoo-dist (64-bit)
Graphics Platform: X11
Processors: 20 × 13th Gen Intel® Core™ i7-13700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

Code:
nvidia-smi
Fri Sep 27 12:52:29 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.107.02             Driver Version: 550.107.02     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| 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  NVIDIA GeForce RTX 4060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   42C    P3             12W /   35W |       8MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2611      G   /usr/bin/X                                      4MiB |
+-----------------------------------------------------------------------------------------+

I start kde with startx and have the following in .xinitrc
Code:
#!/bin/sh
#xrandr --setprovideroutputsource modesetting NVIDIA-G0
#xrandr --auto
exec dbus-launch --exit-with-session startplasma-x11
#exec dbus-launch --exit-with-session startplasma-wayland

Starting with the two xrandr lines uncommnted doesn't change anything.
Code:
uname -a
Linux ben-xps-15-9530 6.6.51-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon Sep 23 09:50:21 BST 2024 x86_64 13th Gen Intel(R) Core(TM) i7-13700H GenuineIntel GNU/Linux

Code:
cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
#COMMON_FLAGS="-march=native -O2 -pipe"
COMMON_FLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576 -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8

MAKEOPTS="-j20"
#MAKEOPTS="-j15"

GENTOO_MIRRORS="https://www.mirrorservice.org/sites/distfiles.gentoo.org/"

USE="-gtk -gnome qt5 qt6 kde alsa opus bluetooth pulseaudio X kernel-install -screencast -ppp -webengine rar -ipv6 dist-kernel dhcpcd"
# elogind -systemd"

ACCEPT_LICENSE="*"

VIDEO_CARDS="intel nvidia"


Not sure where to start looking. Any ideas welcome!
Back to top
View user's profile Send private message
user7719
n00b
n00b


Joined: 19 Feb 2021
Posts: 73

PostPosted: Sat Sep 28, 2024 2:57 pm    Post subject: Reply with quote

If I set the following:
Code:
__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia

X exits with a seg fault:
https://pastebin.com/brdVDxwM
Back to top
View user's profile Send private message
user7719
n00b
n00b


Joined: 19 Feb 2021
Posts: 73

PostPosted: Sat Sep 28, 2024 3:46 pm    Post subject: Reply with quote

Back to the original problem...

If I don't have an java application, Intelij Idea, running I don't see any issues. Can drag windows, resize them, etc nice and smoothly.

As soon and I open Intelij Idea the issue is present.

Close Intelij Idea again and the problem is gone.
Back to top
View user's profile Send private message
user7719
n00b
n00b


Joined: 19 Feb 2021
Posts: 73

PostPosted: Sat Sep 28, 2024 3:57 pm    Post subject: Reply with quote

Found the following link:

https://youtrack.jetbrains.com/issue/JBR-6830/Poor-performance-with-KDE-Plasma-6-X11#focus=Comments-27-10012573.0-0

Just adding -Dwatch.desktop.geometry=false to the VM options of Intelij Idea fixed the issue with the following caveat:

NOTE: -Dwatch.desktop.geometry=false will restrict the IDE capability to react to change of the desktop scale before the IDE is restarted. Until the KWin bug that bombards applications with hundreds of notifications about the change that didn't happen is fixed, this cannot be avoided.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum