[SOLVED] Cinnamon lagging, causing CPU spikes every other second....

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Godot11
Level 1
Level 1
Posts: 6
Joined: Tue Aug 29, 2017 7:22 pm

[SOLVED] Cinnamon lagging, causing CPU spikes every other second....

Post by Godot11 » Tue Aug 29, 2017 7:47 pm

Lately my Cinnamon desktop environment (running on Linux Mint 18.2) has been a bit... laggy. Mouse movement is 100% fine; however every scrolling, window-moving, highlighting, video playing (as it seems to me, things that update window content) causes 100% CPU spikes on one core for half a second, repeating with 1-2 sec period, freezing whatever I was doing. Disk usage stays low during it. This also causes videos to desynchronize with their sound. Needless to say, it's extremely annoying. Between the lags it works as it should.

My computer should handle Cinnamon well - Linux is installed on an SSD (though some directories, like ~HOME, are on an HDD), I have 4GB RAM and an i5 3.2gHz CPU, and running from a Raedon 5750 GPU (built-in driver). My inxi tells:

Code: Select all

ezio@Cantabury ~/Downloads $ inxi -F
System:    Host: Cantabury Kernel: 4.10.0-32-generic x86_64 (64 bit) Desktop: Cinnamon 3.4.6
           Distro: Linux Mint 18.2 Sonya
Machine:   Mobo: ASRock model: H87M Pro4 Bios: American Megatrends v: P2.00 date: 12/06/2013
CPU:       Quad core Intel Core i5-4440 (-MCP-) cache: 6144 KB 
           clock speeds: max: 3300 MHz 1: 2711 MHz 2: 2599 MHz 3: 2692 MHz 4: 2573 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Juniper XT [Radeon HD 5770]
           Display Server: X.Org 1.18.4 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Gallium 0.4 on AMD JUNIPER (DRM 2.49.0 / 4.10.0-32-generic, LLVM 4.0.0)
           GLX Version: 3.0 Mesa 17.0.7
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.10.0-32-generic
Network:   Card: Intel Ethernet Connection I217-V driver: e1000e
           IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: bc:5f:f4:ab:e1:39
Drives:    HDD Total Size: 1901.6GB (1.6% used) ID-1: /dev/sda model: Samsung_SSD_840 size: 120.0GB
           ID-2: /dev/sdb model: WDC_WD10EZEX size: 1000.2GB
           ID-3: /dev/sdc model: SAMSUNG_HD753LJ size: 750.2GB
           ID-4: USB /dev/sdd model: Storage_Device size: 31.2GB
Partition: ID-1: / size: 20G used: 9.5G (52%) fs: ext4 dev: /dev/sda3
           ID-2: /home size: 46G used: 6.4G (15%) fs: ext4 dev: /dev/sdb3
           ID-3: swap-1 size: 4.09GB used: 0.19GB (5%) fs: swap dev: /dev/sdb5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 38.0C mobo: N/A gpu: 37.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 226 Uptime: 15:19 Memory: 2554.5/3866.3MB Client: Shell (bash) inxi: 2.2.35 
I failed to find any useful about the problem on-line, and as a novice Linux user I don't have an idea on where to look. What could be the solution?
Last edited by Godot11 on Wed Aug 30, 2017 3:49 pm, edited 1 time in total.

User avatar
mrmajik45
Level 5
Level 5
Posts: 597
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by mrmajik45 » Tue Aug 29, 2017 9:55 pm

Im sorry to hear that, but cinnamon is the most resource intensive GUI. Please suggest reinstalling linux mint with XFCE or another GUI. :idea:
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
songhuijohn
Level 3
Level 3
Posts: 177
Joined: Thu Apr 28, 2016 5:00 pm
Location: Arlington, Texas USA

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by songhuijohn » Tue Aug 29, 2017 11:21 pm

Try running the System Monitor to see what process is using the CPU.
Also, running the System Monitor may give you another clue about your periodic bottle neck.
Is this happening when you are using a browser - maybe a network or server problem???
Linux Mint 19.1 Cinnamon, Mobo MSI A68HM Grenade, AMD A8-7600, 4GIG DDR3 1600, SSD Patriot Blast 120 GB

Godot11
Level 1
Level 1
Posts: 6
Joined: Tue Aug 29, 2017 7:22 pm

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by Godot11 » Wed Aug 30, 2017 3:43 am

mrmajik45 wrote:Im sorry to hear that, but cinnamon is the most resource intensive GUI. Please suggest reinstalling linux mint with XFCE or another GUI. :idea:
But is it so demanding that a decent PC can't run it flawlessly? C'm oon... :P
I installed KDE Plasma once to try, but it's so buggy I couldn't use it more than half an hour. XFCE... idk, it looks less fancy than my taste :?
songhuijohn wrote:Try running the System Monitor to see what process is using the CPU.
Also, running the System Monitor may give you another clue about your periodic bottle neck.
Is this happening when you are using a browser - maybe a network or server problem???
Strangely nothing appears to be extremely high. The top process is Cinnamon. Upon the lagging it reaches 30-60% CPU, normally around 10%. And the lag is universal, appears while scrolling documents, in the File Manager, while moving any window, etc...

That's my top. It's kinda hard to capture the moment while also causing it...

Code: Select all

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND               
 1719 ezio      20   0 2587952 600112  50384 S  16,3 15,2 137:58.43 cinnamon              
  983 root      20   0  283508   7944   5652 S   1,7  0,2  18:45.15 polkitd               
19103 ezio      20   0 3388232 787320 148876 S   1,7 19,9  16:42.69 Web Content           
 1259 root      20   0  477696 128816  95528 S   1,0  3,3   9:09.57 Xorg                  
  798 message+  20   0   44196   4416   3128 S   0,7  0,1   7:41.66 dbus-daemon           
  840 root      20   0  450548  11984  10408 S   0,7  0,3   8:10.89 NetworkManager        
25137 ezio      20   0  499564  40600  24392 S   0,7  1,0   0:08.13 gnome-terminal-       
19052 ezio      20   0 3090968 688212 189464 S   0,3 17,4  14:53.08 firefox 

User avatar
Pjotr
Level 21
Level 21
Posts: 12587
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by Pjotr » Wed Aug 30, 2017 4:53 am

Turn off all visual effects in Cinnamon:
https://sites.google.com/site/easylinux ... n-Cinnamon
(item 7.1, right column)

That should help noticeably.
Tip: 10 things to do after installing Linux Mint 19.1 Tessa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
bob466
Level 4
Level 4
Posts: 484
Joined: Mon May 15, 2017 5:23 am
Location: Australia

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by bob466 » Wed Aug 30, 2017 6:30 am

Your specs seem fine...maybe needs more Ram. Is your computer dust free inside...dust and dirt can cause many problems especially to the CPU fan.
Linux For Ever...Windoze Never Image

Godot11
Level 1
Level 1
Posts: 6
Joined: Tue Aug 29, 2017 7:22 pm

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by Godot11 » Wed Aug 30, 2017 8:10 am

Pjotr wrote:Turn off all visual effects in Cinnamon:
I'll try this as a last resort. But, based on my Windows experience, I belive my PC should handle all animations and effects easily, and this is abnormal working...
bob466 wrote:Your specs seem fine...maybe needs more Ram. Is your computer dust free inside...dust and dirt can cause many problems especially to the CPU fan.
Hey, noo, my CPU is not smoking :lol:

mr_raider
Level 6
Level 6
Posts: 1317
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by mr_raider » Wed Aug 30, 2017 10:44 am

The default AMD drivers are a bit lame. If you have a strong stomach, you can install more up to date drivers. I have an AMD APU (a12-8800b) and they improved my gaming performance and video playback markedly. The only caveat is that this is bleeding edge source code, and can fubar your graphics time to time.

I personally like the oibaf drivers:

https://launchpad.net/~oibaf/+archive/u ... cs-drivers

Code: Select all

sudo add-apt-repository ppa:oibaf/graphics-drivers

Code: Select all

sudo apt update

Code: Select all

sudo apt upgrade

If you find that inadequate, then go ahead and reinstall. Might I recommend KDE instead of XFCE. The CInnamon compositor has issues, period.
Image

Godot11
Level 1
Level 1
Posts: 6
Joined: Tue Aug 29, 2017 7:22 pm

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by Godot11 » Wed Aug 30, 2017 1:40 pm

Hmm, let's try the drivers... maybe...
mr_raider wrote:Might I recommend KDE instead of XFCE. The CInnamon compositor has issues, period.
My opinion from KDE after that half an hour usage is pretty negative... (a shiny ernomous bugpack :P ) Might be though because I didn't install it with Linux, only later along Cinnamon to try it... Still, I'd prefer a fixed Cinnamon :?

BTW, I also asked this question on the Unix&Linux SE. I got further here, so thanks :D But there I was requested for some other info I also add here.

In my journalct -e output, three lines caught my unprofesional eye:

Code: Select all

Aug 30 19:17:01 Cantabury CRON[18289]: pam_unix(cron:session): session closed for user root
Aug 30 19:20:37 Cantabury cinnamon-screensaver-pam-helper[18398]: pam_ecryptfs: seteuid error
Aug 30 19:20:37 Cantabury cinnamon-screensaver-pam-helper[18398]: gkr-pam: the password for the login keyring was invalid.
Now that I see this, I recall gettingt a prompt several times complaining about the login keyring, asking for a password. I didn't know that password (it wasn't my user pw == the root pw), so just minimized/closed it.

Godot11
Level 1
Level 1
Posts: 6
Joined: Tue Aug 29, 2017 7:22 pm

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by Godot11 » Wed Aug 30, 2017 3:40 pm

Jep, it was the driver! Updated it as you said, and now it is smoother than anything, uncomparable. Thank you all! :mrgreen:

p.s.: I asked this question on Unix&Linux SE too. Now that I got the answer here I answered my question there. If you're an user at SE, feel free to post your answer there, I'll accept it and remove mine.

Godot11
Level 1
Level 1
Posts: 6
Joined: Tue Aug 29, 2017 7:22 pm

Re: [SOLVED] Cinnamon lagging, causing CPU spikes every other second....

Post by Godot11 » Wed Aug 30, 2017 5:07 pm

oh, maybe, just maybe I should've include the link to SE...
https://unix.stackexchange.com/question ... 351#389351

mr_raider
Level 6
Level 6
Posts: 1317
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Cinnamon lagging, causing CPU spikes every other second....

Post by mr_raider » Wed Aug 30, 2017 5:44 pm

Godot11 wrote:Jep, it was the driver! Updated it as you said, and now it is smoother than anything, uncomparable. Thank you all! :mrgreen:

p.s.: I asked this question on Unix&Linux SE too. Now that I got the answer here I answered my question there. If you're an user at SE, feel free to post your answer there, I'll accept it and remove mine.
Fabio is a magician.
Image

Post Reply

Return to “Newbie Questions”