[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()
Serge Hallyn
1303649 at bugs.launchpad.net
Fri Apr 11 15:29:37 UTC 2014
Actually the source of the problem is that I was calling
nih_dbus_setup(), which actually sets up the mainloop. It is not needed
- as I thought it was - for making *_sync calls from cgmanager-
client.so. So the right fix is to not call that.
Two comments on this. First, nih_dbus_setup() seems misleadingly named,
though that may just be how I read it. The comments above that function
are plenty clear and I should have seen those.
Second, the default nih dbus connection is a shared one, which always
does nih_dbus_setup(). So for anyone to use libcgmanager without a nih
mainloop, they *must* use the dbus_connection_open_private(). We
should probably mention that somewhere in the libcgmanager
documentation.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libnih in Ubuntu.
https://bugs.launchpad.net/bugs/1303649
Title:
systemd-logind spins in cgmanager_ping_sync()
Status in “cgmanager” package in Ubuntu:
Confirmed
Status in “libnih” package in Ubuntu:
Confirmed
Status in “lxc” package in Ubuntu:
Confirmed
Status in “systemd” package in Ubuntu:
Confirmed
Bug description:
systemd-logind is consuming a high level of cpu on a continual basis:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
676 root 20 0 43644 2144 1568 R 100.0 0.0 74:43.77 systemd-logind
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: systemd-services 204-5ubuntu17
ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
Uname: Linux 3.13.0-22-generic x86_64
ApportVersion: 2.14.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Apr 7 09:09:37 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-04-23 (348 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423)
SourcePackage: systemd
UpgradeStatus: Upgraded to trusty on 2013-11-11 (146 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1303649/+subscriptions
More information about the foundations-bugs
mailing list