• [gentoo-user] Wayland and CPU load

    From Peter Humphrey@21:1/5 to All on Thu Sep 5 08:40:01 2024
    Greetings,

    Has anyone else seen grossly excessive CPU load since adopting the new Wayland way of doing things? /Top/ is showing 1300% going on kwin_wayland and the
    whole of the rest going on plasmashell.

    I need hardly say this doesn't make a responsive system.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Sep 5 08:50:39 2024
    On Thursday 5 September 2024 07:32:21 BST Peter Humphrey wrote:
    Greetings,

    Has anyone else seen grossly excessive CPU load since adopting the new Wayland way of doing things? /Top/ is showing 1300% going on kwin_wayland
    and the whole of the rest going on plasmashell.

    Ouch! No, this is definitely excessive. This is what I have here on a
    Wayland Plasma desktop, with gkrellm, kmail, a text editor and a couple of terminals running:

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    4257 michael -2 0 4812308 226288 156940 S 0.7 0.3 0:06.62 kwin_wayland
    4640 michael 20 0 193240 30508 24576 S 0.7 0.0 0:02.58 gkrellm


    I need hardly say this doesn't make a responsive system.

    Quite so. Dare I ask if you're observing this on a system running NVidia graphics?

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbZYs8ACgkQseqq9sKV ZxmPGg/9E1bn+wvXBkvYbsEoaCpwbYQ6Zxa827SDguQ942+0WAqorSpG2ktrwuSP NyNXYe6UvI74hnWwTA/M9Q+XsWHHywX1xJhLaFW4NeckHq+PrcJRgst00wweVSzf bmDkdi3+K08gVdHCYlsrVSgTR6JS60V3gqfQsoJmj7cou4DLx7fs+L6/sKSs8c4P cpK1IaIWhOP9PcDLZ9UNx33mA+uk3AhihPtIdDhFAolTM1UkxnrFvPk7P38DLJQl TCIHEH9gR9cFQzA7G4y/zi6JRHLyBhbMQxYV52nkjCviZR3SXYuCqXp0oS8gumXO ebSa+Z1ryJpZ5faD6czC07Rop16yUAsth4nRS7HeHawIDv1kRQOjwzR42JZRIYt/ ywagn7kW5vpdtVn0FJaBj6mwC2VWXHZeFWl16qzy5Lrmy75olM+eb8Xq88oHZ7Rx xteUP1uH0M9dqQ2rj18l3dWIn2eWzW/ONY6X66ZrvzWnpwXHFx79uX4Qj1DYKgnC 8EpZUtonLKvcGe4rIzOucCZ7dXN5xPAGv8TiiYxGFD+aX/Zrn5VopY94YyDGNukX avk5dXENIACMgOqYsCOyN9BElPEn0GWztGBDRziWy/bSpagY6dEy+BNIcgdFUJou f6QQoWjQxiizhgn3r4B21RqgOAjN2dknDEdChTnMDa8IRbSxZAw=
    =Uk0y
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Thu Sep 5 14:50:01 2024
    On Thursday 5 September 2024 08:50:39 BST Michael wrote:
    On Thursday 5 September 2024 07:32:21 BST Peter Humphrey wrote:
    Greetings,

    Has anyone else seen grossly excessive CPU load since adopting the new Wayland way of doing things? /Top/ is showing 1300% going on kwin_wayland and the whole of the rest going on plasmashell.

    Ouch! No, this is definitely excessive. This is what I have here on a Wayland Plasma desktop, with gkrellm, kmail, a text editor and a couple of terminals running:

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4257 michael -2 0 4812308 226288 156940 S 0.7 0.3 0:06.62 kwin_wayland
    4640 michael 20 0 193240 30508 24576 S 0.7 0.0 0:02.58 gkrellm
    I need hardly say this doesn't make a responsive system.

    Quite so. Dare I ask if you're observing this on a system running NVidia graphics?

    No, it's this:

    00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [Iris Xe Graphics]

    The box is a 16-thread i5 with 32GB.

    I notice though that the core temp is steady at 60C, so it looks as though
    it's running back-to-back NOPs, because any real load would have it near 90C and the fan running hard.

    Oh, and a reboot makes no difference. Perhaps I should start recompiling things...

    V--
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Thu Sep 5 16:50:02 2024
    On Thursday 5 September 2024 13:47:29 BST I wrote:

    ... Perhaps I should start recompiling things...

    After an emerge -e1 kwayland plasma-workspace and a reboot, kwin_wayland is down to 20-60% CPU and plasma_shell is barely visible in /top/.

    Much improved, but it still isn't right.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Thu Sep 5 17:10:01 2024
    On Thursday 5 September 2024 07:32:21 BST I wrote:

    Has anyone else seen grossly excessive CPU load since adopting the new Wayland way of doing things? /Top/ is showing 1300% going on kwin_wayland
    and the whole of the rest going on plasmashell.

    Another thing: the plasma system is not preserving my desktops between sessions. Well, firefox and 3 x gkrellm all reappear, but on the first desktop, not where I put them. 3 x konsole, dolphin, kmail, korganiser: none of these restart.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Sep 5 17:27:24 2024
    On Thursday 5 September 2024 16:08:36 BST Peter Humphrey wrote:
    On Thursday 5 September 2024 07:32:21 BST I wrote:
    Has anyone else seen grossly excessive CPU load since adopting the new Wayland way of doing things? /Top/ is showing 1300% going on kwin_wayland and the whole of the rest going on plasmashell.

    Another thing: the plasma system is not preserving my desktops between sessions. Well, firefox and 3 x gkrellm all reappear, but on the first desktop, not where I put them. 3 x konsole, dolphin, kmail, korganiser:
    none of these restart.

    I observed there were a quite a few .desktop files with changed content, according to etc-update. Perhaps you need to run etc-update if you haven't done so already.

    However, I find some window management irregularities on KDE 6 compared to KDE 5, as per my other post today. Perhaps these such functionality will improve as the code base matures.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbZ2+wACgkQseqq9sKV ZxlsYRAAgOLQV9L/BB711CKri/E5jLwydapA3pWet6SjcYxchUwsQ3witxZtaTNL Fd8d/rGVywza6QIe20i+MtutwtbG6cSvJ0hf53Sf7XV0IcpfOh+Fbtm0DniST7Iy NEkjTJSNDA+Y6UcY36SdT1w5wvwCKJXaXJ9c+ceZIQ1oxHMKW70fVreywwtq87It +CK/wPUuTH0ypCul4LdupLsvnk/euAbjWdcXqEK4XyAKMGoRsrw7nfBw45MQdNYk 5G/1RXCiCl9s2Q+h1OzIyGTjSu86c/rZK/8+NYHE7Jk30yVasPpsyJxu3Vtumfpu KHLwbNovEIsRJQ1B1bAfEIrCZsqXJRRQiVBTcfLQMG9RUcM9tm73Qe0WpWpG7QG4 3HhZVsV3eWCVsu1zGnlRI9ecxxZ7DJx4hWOBtEp7jembyHvCx/8cpUvrEQ9tR80y a4UcKCtGkOw7Ze0A+ng260BSX60d2dHfklK1HKOZr+yWjfrQZj3QbLh8rBdwW+Vd xVKmz/PZO/1Fsw9Ld6A8TO4pUREQKy5H83QnSevQUTKymyJUyZhdy4/F5donZ7As eCQSV9hRRSkHOqWlEdUHm5qLVBN8N2zkl689FhOGJhw+VHEHiDldBsqHdDQepjlL PD26io0lU2RteIWdWFG97HhmMQxn+Ooh+JOl+WXsTxWyELOGp4U=
    =rxSI
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Thu Sep 5 21:10:01 2024
    On Thursday 5 September 2024 15:43:00 BST Iwrote:
    On Thursday 5 September 2024 13:47:29 BST I wrote:
    ... Perhaps I should start recompiling things...

    After an emerge -e1 kwayland plasma-workspace and a reboot, kwin_wayland is down to 20-60% CPU and plasma_shell is barely visible in /top/.

    Much improved, but it still isn't right.

    It came back again, so I ran a complete -e, rebooted, recompiled the kernel again and rebooted again.

    It's all back as it was - no CPU cycles left for anything else but wayland and plasam-shell.

    How to debug this?

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Sep 5 22:29:14 2024
    On Thursday 5 September 2024 20:00:12 BST Peter Humphrey wrote:
    On Thursday 5 September 2024 15:43:00 BST Iwrote:
    On Thursday 5 September 2024 13:47:29 BST I wrote:
    ... Perhaps I should start recompiling things...

    After an emerge -e1 kwayland plasma-workspace and a reboot, kwin_wayland
    is
    down to 20-60% CPU and plasma_shell is barely visible in /top/.

    Much improved, but it still isn't right.

    It came back again, so I ran a complete -e, rebooted, recompiled the kernel again and rebooted again.

    It's all back as it was - no CPU cycles left for anything else but wayland and plasam-shell.

    How to debug this?

    At a simple level you can check this file for any obvious problem:

    ~/.local/share/sddm/wayland-session.log

    Your symptom could be related to software rendering used by the kwin compositor, as opposed to OpenGL. Mesa with appropriate USE flags should provide what your graphics need. Have a look in kinfocenter, or run:

    qdbus6 org.kde.KWin /KWin supportInformation

    and check the section under Compositor, Compositor Type is not showing Xrender or software rendering.

    Beyond this I think you're into compiling stuff with debugging symbols and trying to understand where code fails:

    https://community.kde.org/KWin/Debugging

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbaIqoACgkQseqq9sKV ZxlgQw//V11a0FMFbDjFGTkuPB48usAgj77NPQRwMFfACPdlqICf4/WXW1GUZew7 Hv7OZU15CYUAdnujhvMkn4j4Uexl3CXdhWvTtR4gtiAX5OFQuu9cwzh+5fOsVSKl FX5viDoxvfI4eLZF20ednPUI9iU9VxXTUf9TK/ED+WpeixCdLwpb23zSgOvtVIMP ZoGZWxyHellQzys+UcPXgczPXTd4vDe0Qn/xRTuqvlgZ7Ms731iShrtPmOFYhDOh LmeBCXG6Hju601+1c4vxgd51Hb0h954Rmz58kHjt2ZQTc5RNOZqVV7LB9XS84NBK c3OXafGtxcVdHYCFMkZBeFyDsmfbJ1LW030IAwaIhuvrpcKX+uYdwPrvvfEe0FWh 3DNOs+UK6gm6ivCaBOxod85FA0kAQZX0rusd+CowdP5DlKjW3++GCTH8jaZT8NHk zQUPmFSdUEQcjQ/Zc+YEpqMew6PCLTsDMfkr6BoqyTXZQTJYeMZ7/kr9Af9wnyWL oE/VffPMsWad+gFaDglu0u7enJjoszbCW6JPfMx3pO3mP54ULZcut046NoO9q/Pq S0faR55bqNVAFHYEZrNMGaogtxsKflcpLwN2QW0Zwth8KUwDay7fyhhuz4mxDDq2 clJucEVVpl27e2ZyW5H81SDEb2Vjf4hf1libQ1mnSiWJMsYnARI=
    =LaQi
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Fri Sep 6 01:30:01 2024
    On Thursday 5 September 2024 22:29:14 BST Michael wrote:

    At a simple level you can check this file for any obvious problem:

    ~/.local/share/sddm/wayland-session.log

    Your symptom could be related to software rendering used by the kwin compositor, as opposed to OpenGL. Mesa with appropriate USE flags should provide what your graphics need. Have a look in kinfocenter, or run:

    qdbus6 org.kde.KWin /KWin supportInformation

    and check the section under Compositor, Compositor Type is not showing Xrender or software rendering.

    I think I know what it is: the kernel's list of firmware blobs is empty. I don't know where they all went, but it shouldn't be too hard to find them.

    Beyond this I think you're into compiling stuff with debugging symbols and trying to understand where code fails:

    https://community.kde.org/KWin/Debugging

    Thanks to those who helped.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Fri Sep 6 02:40:02 2024
    On Friday 6 September 2024 00:21:31 BST Peter Humphrey wrote:

    I think I know what it is: the kernel's list of firmware blobs is empty. I don't know where they all went, but it shouldn't be too hard to find them.

    Indeed it was so. Now fixed and working fine.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Fri Sep 6 11:50:01 2024
    On Friday 6 September 2024 10:10:47 BST Michael wrote:
    On Friday 6 September 2024 01:33:04 BST Peter Humphrey wrote:
    On Friday 6 September 2024 00:21:31 BST Peter Humphrey wrote:
    I think I know what it is: the kernel's list of firmware blobs is empty. I
    don't know where they all went, but it shouldn't be too hard to find them.

    Indeed it was so. Now fixed and working fine.

    Without all requisite firmware for your graphics the Kwin compositor will fall back to software rendering. As you've experienced without hardware acceleration Kwin will eat up CPU cycles.

    Emerging sys-kernel/linux-firmware and configuring your system to use it fixes the problem by providing the necessary code for the graphics card to
    do the heavy lifting:

    Yes, I know, and I had it set up from when I acquired the machine. The mystery is why it was missing from my two most recent kernels.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Fri Sep 6 10:10:47 2024
    On Friday 6 September 2024 01:33:04 BST Peter Humphrey wrote:
    On Friday 6 September 2024 00:21:31 BST Peter Humphrey wrote:
    I think I know what it is: the kernel's list of firmware blobs is empty. I don't know where they all went, but it shouldn't be too hard to find them.

    Indeed it was so. Now fixed and working fine.

    Without all requisite firmware for your graphics the Kwin compositor will fall back to software rendering. As you've experienced without hardware acceleration Kwin will eat up CPU cycles.

    Emerging sys-kernel/linux-firmware and configuring your system to use it fixes the problem by providing the necessary code for the graphics card to do the heavy lifting:

    https://wiki.gentoo.org/wiki/Intel

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbaxxgACgkQseqq9sKV ZxkAow/+L5NiRCQTcmydm/2puBrFsT5r/2Z6SKcv40lpuloA29EiBsSpzDW7wvjz 3Cd4nMC9oYLuwPcdrXyaI8Bsu490p11yK9YILCIVOX/9VJx6eIxlqPPu9bBHZLHB ObqNfYcuxjIn9R602ykupBvOA5xZ5ardpVloz6XekTsD7LqpWIMikIFAW6BLlPDg CJXH3PlAjk/RS7BIZaUGezameavbdtNZKDameGjjwiim3UBEo/XjtfOdatXcv094 6b9jcyL1Fkvo/flXsA8bYMR8ujTcZJOREQhmk4PG7QIDQkLda1CVcgN6aUb6PSZE e5FnTmyynTa5p2mXfYxu1CG5PS7L6MssInACfHw2eTcPpY+LJ/jk3ReJy/T6z8kC 13mwrieq6WevW6LUfP/GR5iLc/1GGJZXmq+dxFJYj0GdCKRpJDiYzana3CaSFd3L WXWRnAutQGlH269jyH7fF4lYm5GpO88m5teW47AEZHFGeb4cu1XCdPTj/1Q5HvqI H/jcBotsfLHw4TIaj/PneYJMvENOpG8GK9skpj7l4e4SnI1D3Kas/VuPgHKUESNj w3PIBZCu/eOM8p2TYPodnXzGLsKqPVNPzB65Zj//8xLP0fHvldg5hQ3W3LYnUjHg 3Q1ya377jLcCsY2Qu8gt7Syyv2vUFlh6MUYrgCMqnpqjdrJfPrM=
    =CAPq
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Fri Sep 6 11:41:03 2024
    On Friday 6 September 2024 10:45:26 BST Peter Humphrey wrote:
    On Friday 6 September 2024 10:10:47 BST Michael wrote:
    On Friday 6 September 2024 01:33:04 BST Peter Humphrey wrote:
    On Friday 6 September 2024 00:21:31 BST Peter Humphrey wrote:
    I think I know what it is: the kernel's list of firmware blobs is empty.
    I
    don't know where they all went, but it shouldn't be too hard to find them.

    Indeed it was so. Now fixed and working fine.

    Without all requisite firmware for your graphics the Kwin compositor will fall back to software rendering. As you've experienced without hardware acceleration Kwin will eat up CPU cycles.

    Emerging sys-kernel/linux-firmware and configuring your system to use it fixes the problem by providing the necessary code for the graphics card to

    do the heavy lifting:
    Yes, I know, and I had it set up from when I acquired the machine. The mystery is why it was missing from my two most recent kernels.

    You could have inadvertently cleaned this package from your /var/lib/portage/ world, or unmerged it for some reason. Worth noting, dmesg would have complained it can't find this & that firmware.

    Either way, problem solved. :-)

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmba3D8ACgkQseqq9sKV ZxmdlhAAohHzZqBKI0b5XQ/BozaRz8gC1jQVTJ8ScxU+0vph0V8nOsR/HYBWswv3 M9pbyxcZmiZ3eqFwpRDKBxU+dyokFi5ohPcyWX0iQWCrQwo2EUPwyoMsXOaSqOO2 0/BI6XV5St+9PcD/MzqqqB4a2Z255VszmsuC0QL4nr2J2olRSIklHqCcalxgO5gy p2jWsgvB7XLJevi0rvatAZNbDChRarvdgc4WHo8UiPtZ/VAap5e8cS2b2D5AkPSq mGgA3wft7u9daRpTy9pWbOM3Y+sv//1f/OL1Mib7bJ1EbiwKI7/eAvWwjKUPQIy2 8edwKIanwkgdmcw8XQ/gDwfL9/rLjkZEYWVIcJSN6wRmWxOGu4C59i9bltcB2erU geqQJCV4hgut1CGWztXOOncBH92vOUc/PJtPIwfdYsFOfnUYi/h80bZR2BsFFTXH sAt0c2pIURYHdUMbtrhOsT6mjqWvG5JWR8YHZzsil90V/pMpALtWiBf/bcZ2rlc4 LDEGjNf9nI0xf1drY0fUKUryemSRbGNIRQ02CoSXpqb6y3pDBxpz2Q2HZsh2zl3u pcoxr9CNDtK76Zt3L0D7R6FMAFiykhaVB8XO9fXaMQhqHjRMgD4I6YDeJuAZd9WP TQJTZWjUnbMpVExqEZu4n9mzAqOnvxpkI5mmrQ3sQs2eTpBPVJU=
    =QwRo
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Fri Sep 6 13:40:01 2024
    On Friday 6 September 2024 11:41:03 BST Michael wrote:

    You could have inadvertently cleaned this package from your
    /var/lib/portage/ world, or unmerged it for some reason.

    No, nothing like that. The sources and config files were all present, but the extra_firmware entries had been deleted. I know I'm getting a bit old for all this, but how can I inadvertently remove something I know should stay put?

    Worth noting, dmesg would have complained it can't find this & that firmware.

    That's what put me on to it.

    Either way, problem solved. :-)

    Indeed.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)