Bug 978598 - High CPU usage with MATE desktop
Summary: High CPU usage with MATE desktop
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mate-desktop
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Dan Mashal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-26 21:42 UTC by pgaltieri
Modified: 2013-07-10 01:34 UTC (History)
4 users (show)

Fixed In Version: mate-file-manager-1.6.1-9.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-10 01:34:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
KDE screenshot (2.32 MB, image/png)
2013-06-26 21:42 UTC, pgaltieri
no flags Details
MATE screenshot (185.93 KB, image/png)
2013-06-26 21:43 UTC, pgaltieri
no flags Details
Home directory that reproduces problem (129.45 KB, application/x-gzip)
2013-06-29 18:18 UTC, pgaltieri
no flags Details

Description pgaltieri 2013-06-26 21:42:49 UTC
Created attachment 765807 [details]
KDE screenshot

Description of problem:
When I login to the MATE desktop on my laptop both CPU's go to 65% CPU usage and remain that way until I log out.  Depending on what I do they can go as high as 99% cpu usage.  The problem is not limited to my laptop, both my F18 system exhibit the same problem with MATE desktop.

I tried running KDE on the same hardware with F18.  With KDE the processors are at less that 5% after logging in.

I tried with Gnome and there the processors are also over 65%

Version-Release number of selected component (if applicable):
mate-desktop.x86_64                  1.6.1-7.fc18

How reproducible:
Always.  

Steps to Reproduce:
1. Install F18
2. Update to latest
3. Login

Actual results:
CPU's at 65% or higher

Expected results:
Should be less that 10%

Additional info:
Two attachments.  One is a desktop snapshot with MATE the other with KDE right after login.

Comment 1 pgaltieri 2013-06-26 21:43:27 UTC
Created attachment 765808 [details]
MATE screenshot

Comment 2 Wolfgang Ulbrich 2013-06-29 08:13:44 UTC
see https://bugzilla.redhat.com/show_bug.cgi?id=969663
Seems to be a prob with some settings in your user folder.
Can you create a new user account to validate if this issue also ocours?

Comment 3 pgaltieri 2013-06-29 18:18:15 UTC
Created attachment 766928 [details]
Home directory that reproduces problem

This home directory causes 70+% CPU usage on both processors

Comment 4 pgaltieri 2013-06-29 18:22:14 UTC
A new user does not show the problem.  However, I managed to reproduce the problem with the attached user home directory.  I configured the following things:

1) Mouse focus follows pointer
2) Remember applications on logout
3) Configure gkrellm with minimal display

The system is running >70% CPU on both processors.

Comment 5 Wolfgang Ulbrich 2013-06-29 18:44:35 UTC
(In reply to pgaltieri from comment #4)
> A new user does not show the problem.
Is it a real problem to delete ~.config/dconf/user and .cache/dconf/user to get a clean MATE configuration?
You will lost all done dconf/gsettings settings in MATE which depends on gsettings keys.
Sorry for this, but MATE starts with a development version in f18 and a lot changes with gesettings keys aren't in your user dconf configuration.
This is a well know dconf limitation that changes with gsettings in a package during a development phase of a package doesn't applied in user dconf settings.
My suggestion:
Save both files and restart the session without them.
I'm pretty shure that this eliminate the high cpu load.
If not copy them back and we will further look into the issue.

Thank you

Comment 6 Wolfgang Ulbrich 2013-06-29 18:52:33 UTC
(In reply to pgaltieri from comment #4)
> 2) Remember applications on logout
can you disable this setting?

Comment 7 pgaltieri 2013-06-29 20:37:43 UTC
It looks like this setting is the problem.  If I disable it and logout and login again the CPU usage drops to around 4%.  If I re-enable the option and logout and login again the CPU usage goes back up to >70%.

Comment 8 Wolfgang Ulbrich 2013-06-29 20:52:37 UTC
Ok, same like in the other bug
The session state is stored here. ~.config/mate-session/saved-session/*
Clearing this folder should solve your issue, hopefully.

Comment 9 pgaltieri 2013-06-29 21:03:08 UTC
As I said if I don't store session state I don't see the problem.  When I save session state the problem comes back.

Comment 10 Wolfgang Ulbrich 2013-06-29 21:26:04 UTC
Weird, that cleaning the folder ~.config/mate-session/saved-session/ doesn't help.
Next test:
Can you disable caja-autostart in autostart for testing?
Normaly the session should now start without 'caja handles the desktop', means no desktop icons and right click menu.

Comment 11 pgaltieri 2013-06-29 22:13:40 UTC
The contents of ~/.config/mate-session/saved-session/ don't matter.  What matters is whether I restore my session on login.  I can remove all the files in that directory, configure the system to save my session, and logout, but when I login afterwards I'm back to running at 70% or higher.  It's the actual restoring of the previous session that triggers the problem, and only for the mate desktop.

With the caja desktop disabled and restore previous session enabled, when I login I do not see the high cpu usage.

Comment 12 Wolfgang Ulbrich 2013-06-29 22:42:44 UTC
Ok, the prob is that something is that something in your dconf configuration trigered the start of caja from mate-session.
This is wrong because /etc/xdg/autostart7caja-autstart.desktop starts 'caja handles the desktop'.
So i suggest to follow my hints from comment 5, this will bring you a clean configuration, half an hour work to configure MATE again and an life without this issue. :)

Sorry, i can't do more for you.

*** This bug has been marked as a duplicate of bug 969663 ***

Comment 13 Wolfgang Ulbrich 2013-06-30 14:13:54 UTC
(In reply to pgaltieri from comment #11)
> The contents of ~/.config/mate-session/saved-session/ don't matter.  What
> matters is whether I restore my session on login.  I can remove all the
> files in that directory, configure the system to save my session, and
> logout, but when I login afterwards I'm back to running at 70% or higher. 
> It's the actual restoring of the previous session that triggers the problem,
> and only for the mate desktop.
> 
> With the caja desktop disabled and restore previous session enabled, when I
> login I do not see the high cpu usage.

Sorry, it was late yesterday, forget my last comment.
Doing my hints in comment 5 is useless in this case.
If you use 'saving the session' than the results are writen in ~/.config/mate-session/saved-session/ during logout , whether this folder is empty or not.
Unfortunately mate-session stores also caja in 'restore session' information, in result caja starts double in next session.
But now we have two caja processes: one with constant PID and one whose PID is changing every two or so seconds, which means it's dying and the parent is forking new child each time.
This caused the high CPU loading.

For the moment you can disable caja in autostart if you use 'restore session' as workaround. I will work on better solution.

Ok, let us further talk in the the other same report.
bug 969663

Comment 14 Wolfgang Ulbrich 2013-06-30 22:49:42 UTC
re-open to fix the issue

Comment 15 Fedora Update System 2013-07-01 00:49:59 UTC
mate-file-manager-1.6.1-9.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mate-file-manager-1.6.1-9.fc18

Comment 16 pgaltieri 2013-07-01 21:48:04 UTC
Is there a way for me to download and try mate-file-manager-1.6.1-9.fc18?

Paolo

Comment 17 Dan Mashal 2013-07-01 21:49:59 UTC
When it gets pushed to the updates-testing repo you can run "yum update --enablrepo=updates-testing" or download the RPM directly from koji. You will want m-f-m and m-f-m-extensions rpms if you can't wait for them to be pushed to the updates-testing repo.

Comment 18 Fedora Update System 2013-07-02 00:25:00 UTC
Package mate-file-manager-1.6.1-9.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mate-file-manager-1.6.1-9.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12090/mate-file-manager-1.6.1-9.fc18
then log in and leave karma (feedback).

Comment 19 pgaltieri 2013-07-03 04:42:04 UTC
Downloaded and tried out new version of mate-file-manager from test repo and it works.  CPU usage is in the 1% to 5% range.  Very good :-)

Comment 20 Fedora Update System 2013-07-10 01:34:44 UTC
mate-file-manager-1.6.1-9.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.