Announcement

Collapse
No announcement yet.

How Do I Debug Performance Problems? Are colord-sane and/or snapd known to be raging cpu hogs?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How Do I Debug Performance Problems? Are colord-sane and/or snapd known to be raging cpu hogs?

    My Kubuntu 25.10 system tied itself in knots, to the point I couldn't see mouse movement, or reliably modify Libre-Office calc files. The shell command uptime reported load averages like 158.83 This went on for an hour or more, until I finally gave up and rebooted. I also note that the system had been up for 15 days, which might just be longer than kubuntu's tested uptime, given the frequency of minor updates.

    While the KDE desktop was essentially unusable during this period, though not actually hung, I was able to ssh into the system and run top.

    Really high cpu times were reported from kswapd0, snapd, systemd-jo+, plasmashell, colord-sane, and various kworker threads. (systemd-jo+ was presumably a truncated command)

    "memory" usage was not notably elevated.

    The "fun" started approximately when I launched a script that backs up user space to an external drive, using rsync.

    ---
    What I want to know is how to debug this. I'd like to submit good quality bug reports to whichever upstream projects are responsible for the mess.

    I'd also like to find workarounds, and possibly replace misbehaving packages with other sources of similar functionality. (Given what was on the list, that may be difficult.)

    I'm an old Unix developer, and not afraid of debugging tools, profiling tools, or log files. I've even been known to look at misbehaving kernels.

    What I don't know is what all these processes are or which packages they belong to. I also don't know much about current linux tools for debugging performance issues. I don't even know much about where it keeps its logs or how to read them. Is syslogd still a thing? On kubuntu?

    My inclination from past experience is to suspect the desktop environment, broadly construed, but I'm a new user of kde and wayland (less than 3 months) with a corresponding lack of knowledge.

    Is there a performance-debugging FAQ somewhere? Particularly one specific to Kubuntu, since I suspect involvement of both kde and snapd.

    Is there a known issue?
    ---

    Note that I don't plan to try too hard to sort this out while still on Kubuntu 25.10. The 26.04 LTS is available, and I'll probably move to it before the system's been up for another 15 days. (Why do you think I was running a backup?) But I rather doubt whatever bug(s) I hit will turn out to have been fixed in 26.04 - moved around a bit, maybe, but probably not fixed.

    Also, FWIW, The system was up to date as of about 15 days ago, except for firefox, which I "pinned" after a forced update from snap was found in progress during my last Kubuntu not-quite-hang. The backup script on the other hand has been run many times without any similar incidents.

    [Edited to add: I found dpkg -S. So I'm on the way to identifying the processes.

    colord-sane is from the colord package, which is used by KDE. I can't really imagine why it accumulated so much cpu time.

    Kswapd0 is the kernel page out demon, which should only be this busy if something is grabbing loads of memory. Maybe the backup thrashed the file system cache, particularly if it's a combined cache - executable pages and ordinary files together. Still odd that this hadn't happened other times that the backup script was run.]



    Last edited by DinoNerd; Apr 27, 2026, 09:33 PM.

    #2
    Note that I don't plan to try too hard to sort this out while still on Kubuntu 25.10. The 26.04 LTS is available, and I'll probably move to it before the system's been up for another 15 days.
    yea lets go from there
    PS: i just came off a 12hr night shift and reading all this hurt my brain lol
    ʟɨռʊӼ ʄօʀ ʟɨʄɛ

    Comment


      #3
      It looks like this won't happen quite as fast as I expected.

      https://www.kubuntu.org/download/ says the instructions for how to upgrade to 26.04 are "coming soon," and in any case https://help.ubuntu.com/ (which contains older instructions) is not responding.

      One thing that does worry me: some of the instructions I've found seem to imply that it would be safer to reinstall from scratch than to upgrade in place. I *thought* that kind of problem had been fixed for all/most linux distros since I got bitten by it some time between 1995 and 2005, when it basically wasn't safe to do 2 release upgrades without an intervening complete re-install.

      Also, the release notes at https://kubuntu.org/news/kubuntu-26-04-release-notes/ do not make clear which of the "new" things listed are new since 25.10, and which are only new since 24.04.

      p.s. https://kubuntu.org/news/kubuntu-26-04-release-notes/ says I should clear ~/.config before upgrading. Wouldn't that amount to setting *everything* back to defaults, losing any intentional configuration I've done, except of packages that create their own dot files/directories rather than using the ~/.config convention?

      Frankly, the more I read about upgrading Kubuntu, the more I worry about how long it will take me to get my system at least as usable on 26.04 as it currently is on 25.10

      Comment


        #4
        Officially, Ubuntu does not prompt for upgrades on LTS releases until ~October, once the first updated ISO image is released (aka 26.04.1)
        They also don't offer upgrade prompts for non-LTS upgraders immediately, either. it can be days or even weeks. This is Ubuntu SOP, and has always been this way.
        Basically let the adventurous and impatient masses do manual upgrades early on to find any issues not found by the small number of users who test them pre-release.

        Originally posted by DinoNerd View Post
        some of the instructions I've found seem to imply that it would be safer to reinstall from scratch than to upgrade in place
        That is purely a personal preference, but it definitely IS the safest method. Upgrades can always go wrong, and everyone's set of addon PPAs, other repos, and similar system level customizations are a prime cause of breakages. I always say to be prepared to start from scratch, just in case. But I always upgrade, at least to test for bugs and breakage points. I once did 7 upgrades in a row without a reinstall

        I upgraded my 24.04 system, by "forcing " it using the do-release-upgrade -d. No issues, but I also reverted my Mesa driver PPA back to stock before upgrading, as that PPA's maintainers suggest. And past experience This one was perfectly successful.


        Originally posted by DinoNerd View Post
        Also, the release notes at https://kubuntu.org/news/kubuntu-26-04-release-notes/ do not make clear which of the "new" things listed are new since 25.10, and which are only new since 24.04.
        Both. if it is new for 25.10, it is naturally new for the older release. yes, there will be some OS level things from 25.,10 that carried over, but they are not terribly related to Plasma. You'd want to look at the general Ubuntu changlelogs for those.
        https://documentation.ubuntu.com/release-notes/26.04/

        Originally posted by DinoNerd View Post
        p.s. https://kubuntu.org/news/kubuntu-26-04-release-notes/ says I should clear ~/.config before upgrading. Wouldn't that amount to setting *everything* back to defaults, losing any intentional configuration I've done, except of packages that create their own dot files/directories rather than using the ~/.config convention?
        Move/rename, for safety. This is primarily for LTS-LTS upgrades, but really is for Plasma 5-Plasma 6, a major jump here where configs may not carry over. I did NOT do this, fwiw, and would not bother for 25.10-26,04 myself. The changes in configs in this case are minor to nonexistent, imo.

        One can always restore those configs back, or the app specifc ones. Again, this is a safety move. KDE keeps a mess of configs in various files and locations in ~/,config, mixed in with the application specific ones, so targeting just the desktop ones is difficult.

        Originally posted by DinoNerd View Post
        and in any case https://help.ubuntu.com/ (which contains older instructions) is not responding.
        Yes, the wiki is slowly going away. I know the Kubuntu folks are trying to go through that, and other places, to have better information that is more available. But being a small team of volunteers......

        But the general upgrade steps without the desktop prompt will be the same as here:
        https://web.archive.org/web/20260421...grades/Kubuntu

        Using do-release-upgrade -d forces the upgrade, for the impatient.



        My big tip for upgrades is to take a look at all the repos and PPAs you have added. If any of them offer drivers or other system-level upgrades, use ppa-purge to revert these back to stock.

        If in doubt, revert them ALL back. Any added repo that is going to provide something newer than what is found in 26.04 has the potential to cause dependency issues during an upgrade. But small apps and things not found in the Ubuntu repos at all probably won't. Again, I only ever revert the popular Kisak PPA for Mesa GPU drivers (AMD and intel) and I do use a few PPAs overall.

        But your system is different from mine, and your experience might be different.

        Look around these forums, and maybe Reddit and Ubuntu's Discourse, and see what others are seeing with their upgrades. I don't see many major breakage issues being reported here in our tiny corner here. We probably will, in 6 month's time,. when the big Plasma 5-to-Plasma 6 upgrades get flipped on, and everyone's desktop gets a big upgrade.
        Last edited by claydoh; Apr 29, 2026, 10:45 PM.
        Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
        HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
        HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

        Comment


          #5
          Originally posted by claydoh View Post
          But the general upgrade steps without the desktop prompt will be the same as here:
          https://web.archive.org/web/20260421...grades/Kubuntu

          Using do-release-upgrade -d forces the upgrade, for the impatient.
          Thank you. I don't know whether I really qualify as impatient, as much as having been expecting the need to upgrade from the moment I installed 24.10 in February, with it's 9 month shelf life, 4 months of it already gone.

          Normally I'd be LTS all the way, and wishing there were still 5 years rather than 3 years of security updates.

          And Doh, I really must get into the habit of using the way back machine. I had the (down) URL, and didn't think to try that.

          Comment


            #6
            Originally posted by DinoNerd View Post
            Normally I'd be LTS all the way, and wishing there were still 5 years rather than 3 years of security updates.
            A small loophole is that since Kubuntui *is* Ubuntu, the three years "support" is only for Plasma (aka as long as KDE supports the Plasma version, + best efforts) . The OS itself still has security support for 5 years, so kernel and core libraries, ssh, etc. There is no rush,

            25.10 reaches EOL in July, there is plenty of time, and potential fixes. But don't assume your specific problem is universal and even known. It probably will take some research, trial and error, and even broadening beyond Ubuntu proper, and more for your specific mobo/cpu/gpu.

            But here in our tiny community, there is less debugging know-how. I know I seriously lack this, even after 20+ years on Kubuntu, and longer on Linux overall.

            It well could be a simple grub kernel parameter. AMD stuff seems to often need this.


            One thing to do during booting a live USB is at the grub screen. hit e and edit the parameters to remove "quiet splash", which will give terminal output. Sometimes just hitting <esc> can show this, but not always. But what shows on-screen when you have a freeze often is not what has caused it all, since things are not loaded in a linear manner. But it still can show useful info.

            And the usual ISO debugging steps of using a different stick, a different USB port, a different tool to create it (I am a fan of Ventoy), on top of re-downloading and/or verifying the image. Just to eliminate the easy things.

            Don't be afraid to keep repeating your hardware info; most folks will not go and look at other threads to find that information.
            Last edited by claydoh; Apr 30, 2026, 12:22 AM.
            Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
            HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
            HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

            Comment


              #7
              I've now discovered why only the over-eager are expected to upgrade to the new LTS within 6 months of its release - it seems to be flakier than high quality pastry.

              The following thread on kde discuss is more than enough to keep me from "upgrading" any time soon. It appears that kde, as packaged by kubuntu, is prone to forcing defaults on users who upgrade from kubuntu 25.10 to kubuntu 26.04 LTS

              https://discuss.kde.org/t/can-not-di...-windows/46544

              In particular, even if they turn off the defaults, the system somewhat randomly turns them back on if/when they log out and log in again.

              They don't seem to have a solution yet.

              I don't know how many times the reporting user had upgraded kubuntu before moving from 25.10 to 26.04. (Maybe e.g. 22.04 left a breadcrumb behind that broke this. Or not.)

              Part of the root cause appears to be using GUI tools that misrepresent the sum total of the config files underneath them.

              Ye gods! I thought I was moving awa​y from that kind of mis-feature by moving from MacOS to Linux.

              On the good side, the thread has pointed me to the relevant config files; I'll know where to look if (when?) kde blows up on me.

              p.s. the tip about saving .config around the upgrade might well have helped that OP. Or not - the thread's a bit confusing to me.

              Comment

              Users Viewing This Topic

              Collapse

              There are 0 users viewing this topic.

              Working...
              X