[Touch-packages] [Bug 1316830] Re: /usr/lib/accountsservice/accounts-daemon :: memory and CPU time leak

2014-11-25 Thread Jonathan Greenblatt
My solotion for now based on my comment above is to modify
/etc/logrotate.conf to back these files up daily with three backups and
compress them. This should hold off the problem for anyone having this
due to the wtmp and btmp files being large unless they have even more
logins daily than I do. Be careful how you modify the cleanup of these
files, the information is needed to triage intruders.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to accountsservice in Ubuntu.
https://bugs.launchpad.net/bugs/1316830

Title:
  /usr/lib/accountsservice/accounts-daemon :: memory and CPU time leak

Status in “accountsservice” package in Ubuntu:
  Confirmed

Bug description:
  
  netikras@netikras-netbook ~/received/accountsservice-0.6.20 $ cat 
/etc/lsb-release 
  DISTRIB_ID=LinuxMint
  DISTRIB_RELEASE=16
  DISTRIB_CODENAME=petra
  DISTRIB_DESCRIPTION="Linux Mint 16 Petra"

  uname -a
  Linux netikras-netbook 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 
UTC 2013 i686 i686 i686 GNU/Linux


  
  Nothing. Using my netbook as usual. Did not really notice when this started 
since earlier today did not feel any significant slowdowns.

  
  That's what happened:
PID   USER  PR  NI  VIRT  RES   SHR   S  %CPU %MEMTIME+  COMMAND
   
  13155 root  20   0 61424  25m 2948 R  99,6  1,3   1:06.01 
accounts-daemon 

  
  netikras@netikras-netbook /tmp $ while :; do ps aux | grep accounts|grep -v 
grep;echo; sleep 2; done
  root 13155 93.6 26.1 555660 519912 pts/0   Sl   01:11   3:15 
/usr/lib/accountsservice/accounts-daemon

  root 13155 92.7 26.1 555660 519912 pts/0   Sl   01:11   3:15
  /usr/lib/accountsservice/accounts-daemon

  root 13155 91.9 26.1 555660 519912 pts/0   Sl   01:11   3:15
  /usr/lib/accountsservice/accounts-daemon

  
  accounts-daemon is using lots o CPU cycles and memory. Stats above are after 
restarting daemon for several times. Before this memory usage was >60%; CPU - 
100%.

  In file attached you should  be able to see there's a loop checking
  for something repeatedly. Not sure this is the cause though, but feels
  like it..

  
  It's the first time I've noticed this problem, but I often leave my computer 
running unattended so I cannot tell if it's really the first time it happened.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1316830/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1316830] Re: /usr/lib/accountsservice/accounts-daemon :: memory and CPU time leak

2014-11-25 Thread Jonathan Greenblatt
I figured it out by attaching to the process with gdb and doing a
backtrace. Apparently my wtmp and btmp files got full from devices doing
remote logins on a regular basis. I became suspicious that there was
something particular to what I was doing based on how few people were
affected by this. Here is the size of my files:

-rw-rw 1 root utmp   7160832 Nov 24 21:23 /var/log/btmp
-rw-rw-r-- 1 root utmp 116148480 Nov 25 22:39 /var/log/wtmp

I need to have a cleanup job for these files anyway illregardless of
what the accounts-daemon does but it may help if the accounts-deamon
does not process the while file if possible. I have not looked into what
accounts-deamon does with the files so I am not sure if it is feasable
just to look at the end of the files instead of the whole file.

Even with truncating the files accounts-deamon seems to be too much of a
busy body but for now at least the %CPU is below 1% on average but I do
see it peak at times to 10%. The polkitd now shows up at the top more
than accounts-deamon, from the threads on this I beleive that deamon is
part of the same processing.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to accountsservice in Ubuntu.
https://bugs.launchpad.net/bugs/1316830

Title:
  /usr/lib/accountsservice/accounts-daemon :: memory and CPU time leak

Status in “accountsservice” package in Ubuntu:
  Confirmed

Bug description:
  
  netikras@netikras-netbook ~/received/accountsservice-0.6.20 $ cat 
/etc/lsb-release 
  DISTRIB_ID=LinuxMint
  DISTRIB_RELEASE=16
  DISTRIB_CODENAME=petra
  DISTRIB_DESCRIPTION="Linux Mint 16 Petra"

  uname -a
  Linux netikras-netbook 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 
UTC 2013 i686 i686 i686 GNU/Linux


  
  Nothing. Using my netbook as usual. Did not really notice when this started 
since earlier today did not feel any significant slowdowns.

  
  That's what happened:
PID   USER  PR  NI  VIRT  RES   SHR   S  %CPU %MEMTIME+  COMMAND
   
  13155 root  20   0 61424  25m 2948 R  99,6  1,3   1:06.01 
accounts-daemon 

  
  netikras@netikras-netbook /tmp $ while :; do ps aux | grep accounts|grep -v 
grep;echo; sleep 2; done
  root 13155 93.6 26.1 555660 519912 pts/0   Sl   01:11   3:15 
/usr/lib/accountsservice/accounts-daemon

  root 13155 92.7 26.1 555660 519912 pts/0   Sl   01:11   3:15
  /usr/lib/accountsservice/accounts-daemon

  root 13155 91.9 26.1 555660 519912 pts/0   Sl   01:11   3:15
  /usr/lib/accountsservice/accounts-daemon

  
  accounts-daemon is using lots o CPU cycles and memory. Stats above are after 
restarting daemon for several times. Before this memory usage was >60%; CPU - 
100%.

  In file attached you should  be able to see there's a loop checking
  for something repeatedly. Not sure this is the cause though, but feels
  like it..

  
  It's the first time I've noticed this problem, but I often leave my computer 
running unattended so I cannot tell if it's really the first time it happened.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1316830/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1067020] Re: accounts-daemon hangs on GDM login

2014-09-21 Thread Jonathan Greenblatt
I seem to have all the issues above where it is a problem at log in and
after the system is up:

Linux rockdove-svr-1 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15
01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

I am running a Lubuntu installation.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to accountsservice in Ubuntu.
https://bugs.launchpad.net/bugs/1067020

Title:
  accounts-daemon hangs on GDM login

Status in “accountsservice” package in Ubuntu:
  Confirmed

Bug description:
  root@xxx:~# lsb_release -a
  No LSB modules are available.
  Distributor ID:   Ubuntu
  Description:  Ubuntu 12.04.1 LTS
  Release:  12.04
  Codename: precise

  root@xxx:~# uname -a
  Linux beefy 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux

  accountsservice Version: 0.6.15-2ubuntu9.4

  Upon authorization using GDM, the accounts-daemon process hangs the
  login by consuming 100% CPU on a single processor and rapidly
  consuming all system memory. GDM will not continue with the login
  until the accounts-daemon process is killed.

  I'm using SSSD as the backend authentication module in PAM.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1067020/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp