Skip to content

Cinnamon 1.6.0: constantly high CPU load #1154

Closed

Description

@autarkper

I notice that Cinnamon 1.6.0 (built from source) constantly uses a lot more CPU than it should be using, typically between 15 and 25 percent when supposedly idle. I have a fairly minimal install, only with a few stock applets enabled.

I don't see any messages in the console that would point to some misbehaving component.

Update: I have done some limited regression testing, and I can't see that this would be a recent regression. Could it be that my graphics system is not up to Cinnamon's high demands? Should I switch from the Nouveau driver to Intel?

Activity

  1. autarkper commented on Sep 19, 2012

    @autarkper
    ContributorAuthor

    Cinnamon is now down to 10 %, while other applications have increased their CPU usage. Could this behavior be due to idle processing?

  2. slinkp commented on Sep 19, 2012

    @slinkp

    I've had much the same behavior, Cinnamon's idle CPU usage varies but goes as high as 6%. It's nothing new, I've seen it in 1.4 (first version I installed), 1.5.8, and 1.6. Another symptom is that the CPU frequency applet shows frequent spikes in CPU frequency when I'm literally doing nothing.

    I'm on a Dell laptop with a "Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)" and not sure what driver I have - whatever Mint installed by default.

  3. yorrd commented on Sep 19, 2012

    @yorrd

    Same here, I'm noticing high CPU load especially when teamspeak3 is running (then cinnamon uses about 20%, teamspeak at least the same as well when it's IDLING), without teamspeak it's at about 7% until I do anything that involves different windows or previews of windows on the screen.
    For example when I switch workspaces, when I hover the panel so that it appears, when I alt-tab to a different window and so on, it peaks to 30% or more which is rather annoying...

    I'm on a Nvidia GeForce G 105M using the latest Nvidia driver (I think it's 304.something), Linux Mint 13 64-bit, latest nightly cinnamon build on the official nightly repository.

    Would be great if you guys could do anything about this :) Thanks

    Also: is there a way to temporarily disable cinnamon so you can only see the window you're looking at before you disable? I'm asking because I would like to save some resources when gaming (I don't need cinnamon then for at least an hour anyways)

  4. autarkper commented on Sep 24, 2012

    @autarkper
    ContributorAuthor

    As an experiment, I temporarily commented out the loading of applets on Cinnamon startup, and the CPU load immediately went down from 20 to 7 %.

    AppletManager.init();
    // applets = AppletManager.loadApplets();
    

    Update: I originally wrote: "I've also tried to selectively unload applets from my configuration, but that does not help." However, going the other way around, disabling all applets and selectively enabling one after another, with a restart in-between, yields an interesting discovery: on my laptop the network-manager applet increases Cinnamon's CPU usage from around 7 to 14 %. If you wish to try this out on your own machine, please remember to restart Cinnamon after removing the network-manager applet, only then you will you see an effect, if any.

  5. autarkper commented on Sep 24, 2012

    @autarkper
    ContributorAuthor

    The network-manager applet runs its _updateIcon function on a one-second timer. Lengthening that interval decreases the CPU usage noticeably (it will now appear as periodic spikes).

  6. autarkper commented on Sep 24, 2012

    @autarkper
    ContributorAuthor

    I have made pull request #1186 on the basis of my findings. It turned out it was not the update frequency per se that was the greatest culprit, but rather the frequent setting of icons and tooltips (even if unchanged).

  7. yorrd commented on Sep 25, 2012

    @yorrd

    autarkper, thanks a lot! I really hope your pull request gets accepted and pushed till the 1.6.1 release :)

  8. autarkper commented on Sep 26, 2012

    @autarkper
    ContributorAuthor

    I've switched from nouveau to the nvidia driver, and that brought the CPU utilization down in general, with Cinnamon now using some 3 - 5 percent. That's still too much, but better! With my patches, it's down to 2 - 4.

    Update: The downside to switching to the nvidia driver is that my laptop hangs when resuming from sleep, so I'll have to reinstall nouveau.

    Update 2: After getting nouveau up to speed again, which involved a lot of purging and reinstalling packages before I finally got it right, I'm actually seeing much lower CPU utilization overall, on a par with the nvidia proprietary driver installed, and that's even without my patch installed.

  9. Semyazz commented on Mar 22, 2013

    @Semyazz

    I'm using Intel 4000 HD, Virtualbox, Debian Wheezy x64 with Cinnamon and I have 100% CPU usage. any ideas?

  10. cweiske commented on May 30, 2016

    @cweiske

    I'm also experiencing this problem. The desktop becomes unusable after ~10 minutes. Restarting cinnamon with Alt+F2, then r makes the desktop responsive again for some minutes.

    I upgraded from Ubuntu 14.04 to 16.04, and upgraded my graphics card. Unity desktop has no problems, only cinnamon on this computer. I'll switch away to Mate now.

  11. mdavis-xyz commented on Jun 20, 2016

    @mdavis-xyz

    I'm having similar issues.

    Cinnamon is hitting 90% CPU. I can't watch videos of GIFs, because the image stutters. When typing text, often the screen is several words behind what I've typed.

    I've tried:

    • using one monitor instead of two
      • disabling most of my background startup applications (even though the System Monitor is attributing the CPU to cinnamon)
      • removing most of my widgets

    Whenever the CPU is high, if I restart cinnamon (right click on panel > troubleshooting > restart cinnamon), then it goes down to <10%. (After a few seconds, since restarting cinnamon would of course use lots of CPU.)

    I even did a clean install of my entire operating system (Mint 17.3). No improvement.
    I'm using a Toshiba Kira, which is a fairly high end laptop, so there should be no issues.

    3 weeks ago there were no issues. Have there been any big changes to cinnamon recently?

  12. mdavis-xyz commented on Jun 20, 2016

    @mdavis-xyz

    Does anyone else having this problem happen to use the Owncloud desktop client?
    I quit mine and now things seem to be fine. But that was only an hour ago, and the problem is intermittent, so I'm not certain yet that Owncloud is responsible.
    The System Monitor blames cinnamon. Perhaps it's an issue with the Owncloud panel icon? (Which might count towards Cinnamon's CPU usage and not Owncloud.)

  13. cweiske commented on Jun 20, 2016

    @cweiske

    yes, I am using the owncloud desktop client.

  14. mdavis-xyz commented on Jun 29, 2016

    @mdavis-xyz

    I lodged a bug with the Owncloud team. They think it might be an issue with cinnamon.

    In the end, this is probably a bug in cinnamon. Yes, the client re-setups the tray menu several times per minute (to work around other tray menu bugs...) but doing so shouldn't cause excessive CPU use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions