mate-settings-daemon - apparent memory leak

Post your update and upgrade related errors here
Forum rules
Before you post please read how to get help

mate-settings-daemon - apparent memory leak

Postby HEXYEBO on Mon Feb 17, 2014 12:32 pm

Hello all,
I started noticing this shortly after applying UP8. mate-settings-daemon has a severe memory leak - close to 1GB/hr. This renders the system almost unusable after a few hours.
I can kill the process from Task Manager or terminal, but it comes back immediately and continues to leak memory.
Here are some of the system specs:
Code: Select all
sudo lshw -short -sanitize
H/W path        Device      Class          Description
======================================================
                            system         KT369AA-ABA a6512p (KT369AA#ABA)
/0                          bus            Benicia
/0/0                        memory         64KiB BIOS
/0/4                        processor      Intel(R) Pentium(R) Dual  CPU  E2200  @ 2.20GHz
/0/4/5                      memory         64KiB L1 cache
/0/4/6                      memory         1MiB L2 cache
/0/2a                       memory         8GiB System Memory
/0/2a/0                     memory         2GiB DIMM DDR2 Synchronous 800 MHz (1.2 ns)
/0/2a/1                     memory         2GiB DIMM DDR2 Synchronous 800 MHz (1.2 ns)
/0/2a/2                     memory         2GiB DIMM DDR2 Synchronous 800 MHz (1.2 ns)
/0/2a/3                     memory         2GiB DIMM DDR2 Synchronous 800 MHz (1.2 ns)
/0/100                      bridge         82G33/G31/P35/P31 Express DRAM Controller
/0/100/1                    bridge         82G33/G31/P35/P31 Express PCI Express Root Port
/0/100/1/0                  display        G84 [GeForce 8600 GT]
/0/100/1a                   bus            82801I (ICH9 Family) USB UHCI Controller #4
/0/100/1a.1                 bus            82801I (ICH9 Family) USB UHCI Controller #5
/0/100/1a.7                 bus            82801I (ICH9 Family) USB2 EHCI Controller #2
/0/100/1b                   multimedia     82801I (ICH9 Family) HD Audio Controller
/0/100/1c                   bridge         82801I (ICH9 Family) PCI Express Port 1
/0/100/1c.2                 bridge         82801I (ICH9 Family) PCI Express Port 3
/0/100/1c.2/0   eth1        network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1d                   bus            82801I (ICH9 Family) USB UHCI Controller #1
/0/100/1d.1                 bus            82801I (ICH9 Family) USB UHCI Controller #2
/0/100/1d.2                 bus            82801I (ICH9 Family) USB UHCI Controller #3
/0/100/1d.3                 bus            82801I (ICH9 Family) USB UHCI Controller #6
/0/100/1d.7                 bus            82801I (ICH9 Family) USB2 EHCI Controller #1
/0/100/1e                   bridge         82801 PCI Bridge
/0/100/1e/0                 communication  HSF 56k Data/Fax Modem
/0/100/1e/5                 bus            FW322/323 [TrueFire] 1394a Controller
/0/100/1f                   bridge         82801IR (ICH9R) LPC Interface Controller
/0/100/1f.2                 storage        82801 SATA Controller [RAID mode]
/0/100/1f.3                 bus            82801I (ICH9 Family) SMBus Controller
/0/1            scsi0       storage       
/0/1/0.0.0      /dev/sda    disk           2TB WDC WD20EARX-008
/0/1/0.0.0/1    /dev/sda1   volume         1733GiB Linux swap volume
/0/1/0.0.0/1/5  /dev/sda5   volume         4GiB Linux swap / Solaris partition
/0/1/0.0.0/1/6  /dev/sda6   volume         100GiB Linux filesystem partition
/0/1/0.0.0/1/7  /dev/sda7   volume         100GiB Linux filesystem partition
/0/1/0.0.0/1/8  /dev/sda8   volume         1529GiB Linux filesystem partition
/0/1/0.0.0/4    /dev/sda4   volume         130GiB Windows NTFS volume
/0/2            scsi1       storage       
/0/2/0.0.0      /dev/cdrom  disk           CDDVDW TS-H653Q

Code: Select all
dpkg -l | grep mate-settings
ii  mate-settings-daemon                                        1.6.1-1~mate1+lmde                all          daemon handling the MATE session settings (metapackage)
ii  mate-settings-daemon-common                                 1.6.1-1~mate1+lmde                all          daemon handling the MATE session settings (common files)
rc  mate-settings-daemon-gstreamer                              1.4.0-2+wheezy                    amd64        daemon handling the MATE session settings (GStreamer version)
ii  mate-settings-daemon-pulse

Code: Select all
 uname -a
Linux office-lmde 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux
HEXYEBO
Level 1
Level 1
 
Posts: 3
Joined: Mon Feb 17, 2014 12:08 pm

Linux Mint is funded by ads and donations.
 

Re: mate-settings-daemon - apparent memory leak

Postby Monsta on Mon Feb 17, 2014 2:24 pm

I've added the link to this thread to this bug report so the MATE devs would at least see it.
If anyone experiences the same issue, please leave a comment there if you can.
Monsta
Level 9
Level 9
 
Posts: 2514
Joined: Fri Aug 19, 2011 3:46 am

Re: mate-settings-daemon - apparent memory leak

Postby DarkNova on Mon Feb 17, 2014 5:01 pm

Mine is doing this too...mate-settings-daemon is also using about 100% CPU (all of one core). It leaks memory as described. Killing it released the memory but the process respawns and starts leaking memory and using 100% CPU again. Does yours use 100% CPU too?
DarkNova
Level 1
Level 1
 
Posts: 6
Joined: Fri Sep 28, 2012 3:44 pm

Re: mate-settings-daemon - apparent memory leak

Postby HEXYEBO on Mon Feb 17, 2014 6:00 pm

DarkNova wrote:Mine is doing this too...mate-settings-daemon is also using about 100% CPU (all of one core). It leaks memory as described. Killing it released the memory but the process respawns and starts leaking memory and using 100% CPU again. Does yours use 100% CPU too?

I have not noticed excessive CPU usage on my system.
HEXYEBO
Level 1
Level 1
 
Posts: 3
Joined: Mon Feb 17, 2014 12:08 pm

Re: mate-settings-daemon - apparent memory leak

Postby DarkNova on Mon Feb 17, 2014 6:02 pm

I noticed that the file .xsession-errors in my home directory was being filled with tons of lines of:
Code: Select all
(mate-settings-daemon:4602): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.


every second. I looked at the file /run/user/1000/dconf/user and it was set to have root permissions. I deleted the file, killed mate-settings-daemon, and now, when it respawned, it recreated that file as my user name, and now it doesn't seem to be using much CPU or memory. Not 100% sure it won't come back, or why it happened in the first place, but I'd be interested if you gave that a try and it fixed yours, it might give a clue to the MATE people.
DarkNova
Level 1
Level 1
 
Posts: 6
Joined: Fri Sep 28, 2012 3:44 pm

Re: mate-settings-daemon - apparent memory leak

Postby Monsta on Tue Feb 18, 2014 2:12 am

DarkNova wrote:but I'd be interested if you gave that a try and it fixed yours, it might give a clue to the MATE people.

It won't give them a clue unless you write something on github as I suggested above. They don't read this forum.
Monsta
Level 9
Level 9
 
Posts: 2514
Joined: Fri Aug 19, 2011 3:46 am

Re: mate-settings-daemon - apparent memory leak

Postby HEXYEBO on Tue Feb 18, 2014 5:31 pm

I checked my ~/.xsession-errors and found multiple references to /run/user/1000/dconf/user file as well.
I then re-traced the upgrade steps and realized I missed one:
Code: Select all
sudo apt-get remove --purge software-properties-gtk mint-debian-mirrors

After running that and rebooting mate-settings-daemon behavior and memory usage are back to normal.

@DarkNova
Can you check if you still have these packages installed on your system?

HEX.
HEXYEBO
Level 1
Level 1
 
Posts: 3
Joined: Mon Feb 17, 2014 12:08 pm

Re: mate-settings-daemon - apparent memory leak

Postby DarkNova on Tue Feb 18, 2014 5:35 pm

HEXYEBO wrote:I checked my ~/.xsession-errors and found multiple references to /run/user/1000/dconf/user file as well.
I then re-traced the upgrade steps and realized I missed one:
Code: Select all
sudo apt-get remove --purge software-properties-gtk mint-debian-mirrors

After running that and rebooting mate-settings-daemon behavior and memory usage are back to normal.

@DarkNova
Can you check if you still have these packages installed on your system?

HEX.


That's interesting that doing that fixed yours, but I had previously removed those packages from my system.
DarkNova
Level 1
Level 1
 
Posts: 6
Joined: Fri Sep 28, 2012 3:44 pm

Re: mate-settings-daemon - apparent memory leak

Postby j1mw3b on Thu Feb 27, 2014 8:15 pm

I am also getting this issue after update 8 on my LMDE system
I did the "sudo apt-get remove --purge software-properties-gtk mint-debian-mirrors" before the upgrade and just did again and they are NOT installed.
Also followed all the other pre-reqs before installing.

Have to do a kill -9 to stop it, but as in other posts, it respawns. System becomes unusable.

Also, my laptop (Lenovo T520) no longer hibernates when I close the lid. Just locks the screen. It does hibernate with the "hibernate" command, but seems a bit odd in it's resume - bit different than before the update 8
I think, but will have to prove later, that the mate-settings-daemon issue occurs after resume from the command hibernation.

Did the Cinnamon guys do this to make us Mate users switch over??? :-)

Glad I did not update my server....

Jim W.
j1mw3b
Level 1
Level 1
 
Posts: 24
Joined: Fri Nov 11, 2011 7:42 pm

Re: mate-settings-daemon - apparent memory leak

Postby Monsta on Fri Feb 28, 2014 2:18 am

j1mw3b wrote:Did the Cinnamon guys do this to make us Mate users switch over??? :-)

The problem is not in mate-settings-daemon itself, it's a bug in systemd that sets the wrong permissions for /run/user/1000/dconf, as stated in the previous posts. This issue makes various apps crash or eat 100% CPU.
The recent systemd updates should've fixed that. Make sure you've applied all the updates.
Monsta
Level 9
Level 9
 
Posts: 2514
Joined: Fri Aug 19, 2011 3:46 am

Re: mate-settings-daemon - apparent memory leak

Postby j1mw3b on Fri Feb 28, 2014 12:47 pm

I had noted some other comments in other Google forums about disabling (dconf-editor) org.mate.settings-daemonplugins.keyboard (and a11y.keyboard) and that seemed to fix the mate-settings-daemon issue.
I have reactivated them now and an now installing the latest updates - including systemd - so will see how that goes,

Bigger issue right now is why my lid close does not hibernate, but pm-hibernate works fine. I see "lid closed" in dmesg, but apparently something is not getting triggered by that event.

Also see there is a new /etc/init.d/acpi/acpi-support and acpi-fakekey that was not in my system before update 8.
And a whole bunch of new files in /etc/acpi that was not there before.

Do the developers ever supply a more technical explanation of what and why things were changed?
Having been a software developer, we didn't do this, but with open source, maybe???

Thanks,

Jim
j1mw3b
Level 1
Level 1
 
Posts: 24
Joined: Fri Nov 11, 2011 7:42 pm

Re: mate-settings-daemon - apparent memory leak

Postby Monsta on Fri Feb 28, 2014 12:55 pm

Thread hijacking is not encouraged. Different problems should go in different threads.
Monsta
Level 9
Level 9
 
Posts: 2514
Joined: Fri Aug 19, 2011 3:46 am

Re: mate-settings-daemon - apparent memory leak

Postby j1mw3b on Fri Feb 28, 2014 1:00 pm

Ok. forgot,

Jim
j1mw3b
Level 1
Level 1
 
Posts: 24
Joined: Fri Nov 11, 2011 7:42 pm

Re: mate-settings-daemon - apparent memory leak

Postby Hansl on Wed Mar 05, 2014 4:18 pm

I got that cpu hog / memory leak problem too / again:
I installed some days ago a new machine with LMDE x64 Mate 2014-03RC (sorry, was impatient :D ) and pulled all the updates since — so it should be current, isn't it?
I switched to systemd 204-5linuxmint1 by installing systemd-sysv (which removes sysvinit), then downgraded and pinned mate-power-manager to 1.6.2-1+lmde (see Clem ).
But still /run/user/1000/dconf/user is owned by root so that many apps in the Mate Control Center do not work and eat 200% CPU and gigs of RAM until killed.

What am I missing now?
Hansl
Level 1
Level 1
 
Posts: 17
Joined: Fri Dec 09, 2011 3:50 pm

Mate Setting Deamon

Postby baptman on Thu Mar 06, 2014 6:17 pm

Hello,
I have a problem with Deamon Mate Setting takes 6GB of resources or more, I do not think this is normal, so if you have a solution or tell me why it takes so many resources thank you to answer me, this process often does not respond not. I regularly kill this process

I'm LDME 201403

En français,
J'ai un problème avec Mate Setting Deamon qui prend 6go de ressources voire plus, je ne pense pas que ce soit normale, donc si vous avez une solution ou me dire pourquoi ça prend autant de ressources merci de me répondre, souvent ce processus ne répond pas, je suis obliger de tuer ce processus car je ne peux plus rien faire.
Je suis sur LDME 201403
Last edited by Pilosopong Tasyo on Fri Mar 07, 2014 12:06 am, edited 1 time in total.
Reason: French translation from the same member merged with original post.
baptman
Level 1
Level 1
 
Posts: 1
Joined: Thu Mar 06, 2014 6:12 pm

Re: Mate Setting Deamon

Postby dclement on Fri Mar 07, 2014 3:38 am

Hi,

Not the 1st time I hear about this Matt Damon :-)

More seriously, it's being discussed in this thread.
dclement
Level 3
Level 3
 
Posts: 165
Joined: Thu Apr 19, 2012 9:59 am

Re: mate-settings-daemon - apparent memory leak

Postby Pilosopong Tasyo on Fri Mar 07, 2014 7:17 am

Similar topics merged.
Image
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Pilosopong Tasyo
Level 6
Level 6
 
Posts: 1206
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: mate-settings-daemon - apparent memory leak

Postby chritcu on Sat Mar 08, 2014 12:08 pm

I have the same problem with a fresh install of LMDE 201403: mate-settings-daemon taking 6GB of RAM, 100% of 1 CPU, and the errors about
Code: Select all
(mate-settings-daemon:4343): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.

I've already installed all updates. Is there any other workaround for this other than manually removing the offending file and killing the offending process?
chritcu
Level 1
Level 1
 
Posts: 26
Joined: Thu Mar 06, 2014 5:32 pm
Location: Paris, France

Re: mate-settings-daemon - apparent memory leak

Postby chritcu on Sat Mar 08, 2014 1:05 pm

Starting the Mint Software Manager (and giving it your root password) seems to be a reliable way to get the wrong permissions on /run/user/1000/dconf/user
chritcu
Level 1
Level 1
 
Posts: 26
Joined: Thu Mar 06, 2014 5:32 pm
Location: Paris, France

Re: mate-settings-daemon - apparent memory leak

Postby chritcu on Sat Mar 08, 2014 1:54 pm

I've reported the Mint Software Manager issue here:
https://github.com/linuxmint/mintinstall/issues/52
chritcu
Level 1
Level 1
 
Posts: 26
Joined: Thu Mar 06, 2014 5:32 pm
Location: Paris, France

Linux Mint is funded by ads and donations.
 
Next

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 3 guests