http://bugzilla.novell.com/show_bug.cgi?id=541253
http://bugzilla.novell.com/show_bug.cgi?id=541253#c24
Jon Nelson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |jnelson-suse@jamponi.net
Resolution|WORKSFORME |
Summary|polkitd seems to leak |polkitd seems to leak
|memory |memory / use high CPU
--- Comment #24 from Jon Nelson 2010-03-23 15:33:23 UTC ---
I'm having this problem too.
I have some additional information which might be useful.
I'm also on 11.2
When I killed one of the polkitd processes, this showed up in
/var/log/messages:
Mar 23 15:25:48 worklaptop rtkit-daemon[2588]: Warning: PolicyKit call failed:
Message did not receive a reply (timeout by message bus)
it *may* have to do with rtkit-daemon:
Also, I noticed via strace that polkitd is logging a *LOT* of information, but
it's going nowhere because stdin/stdout/stderr are tied to /dev/null (as they
should be) but polkit ***really*** needs to be able to log to syslog *or* the
logs being sent to stderr need to be captured and sent there. Logs sent
nowhere don't do anybody any good.
Partial strace:
open("/var/lib/polkit-1/localauthority/20-org.d",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
write(2, "\n** (process:6681): WARNING **: Error enumerating files in
file:///var/lib/polkit-1/localauthority/20-org.d: No such file or directory\n",
135) = 135
open("/var/lib/polkit-1/localauthority/30-site.d",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
write(2, "\n** (process:6681): WARNING **: Error enumerating files in
file:///var/lib/polkit-1/localauthority/30-site.d: No such file or
directory\n", 136) = 136
open("/var/lib/polkit-1/localauthority/50-local.d",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
write(2, "\n** (process:6681): WARNING **: Error enumerating files in
file:///var/lib/polkit-1/localauthority/50-local.d: No such file or
directory\n", 137) = 137
open("/var/lib/polkit-1/localauthority/90-mandatory.d",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
write(2, "\n** (process:6681): WARNING **: Error enumerating files in
file:///var/lib/polkit-1/localauthority/90-mandatory.d: No such file or
directory\n", 141) = 141
open("/var/lib/polkit-1/localauthority/10-vendor.d",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
getdents64(6, /* 144 entries */, 32768) = 10168
getdents64(6, /* 0 entries */, 32768) = 0
lstat("/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.RealtimeKit1.acquire-high-priority.pkla",
{st_mode=S_IFREG|0644, st_size=203, ...}) = 0
open("/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.RealtimeKit1.acquire-high-priority.pkla",
O_RDONLY) = 7
read(7,
"[org.freedesktop.RealtimeKit1.acquire-high-priority]\nIdentity=unix-user:*\nAction=org.freedesktop.RealtimeKit1.acquire-high-priority\nResultAny=auth_admin\nResultInactive=auth_admin\nResultActive=auth_admin\n",
4066) = 203
close(7) = 0
lstat("/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.RealtimeKit1.acquire-real-time.pkla",
{st_mode=S_IFREG|0644, st_size=195, ...}) = 0
open("/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.RealtimeKit1.acquire-real-time.pkla",
O_RDONLY) = 7
read(7,
"[org.freedesktop.RealtimeKit1.acquire-real-time]\nIdentity=unix-user:*\nAction=org.freedesktop.RealtimeKit1.acquire-real-time\nResultAny=auth_admin\nResultInactive=auth_admin\nResultActive=auth_admin\n",
4066) = 195
close(7) = 0
lstat("/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.consolekit.system.restart-multiple-users.pkla",
{st_mode=S_IFREG|0644, st_size=218, ...}) = 0
open("/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.consolekit.system.restart-multiple-users.pkla",
O_RDONLY) = 7
read(7,
"[org.freedesktop.consolekit.system.restart-multiple-users]\nIdentity=unix-user:*\nAction=org.freedesktop.consolekit.system.restart-multiple-users\nResultAny=auth_admin_keep\nResultInactive=auth_admin_keep\nResultActive=yes\n",
4066) = 218
close(7) = 0
The core of the issue might be that I have pulseaudio configured to use real
time priority:
2010-03-23T15:32:31.48696 I: core-util.c: Failed to acquire high-priority
scheduling: Permission denied
2010-03-23T15:32:31.48699 I: main.c: This is PulseAudio 0.9.21
2010-03-23T15:32:31.48701 I: main.c: Page size is 4096 bytes
2010-03-23T15:32:31.48712 I: main.c: Machine ID is
960950afac61217d5c079a0047faf324.
2010-03-23T15:32:31.48724 I: main.c: Using runtime directory
/home/jnelson/.pulse/960950afac61217d5c079a0047faf324-runtime.
2010-03-23T15:32:31.48729 I: main.c: Using state directory
/home/jnelson/.pulse.
2010-03-23T15:32:31.48729 I: main.c: Using modules directory
/usr/lib64/pulse-0.9.21/modules.
2010-03-23T15:32:31.48730 I: main.c: Running in system mode: no
2010-03-23T15:32:31.48745 E: pid.c: Daemon already running.
2010-03-23T15:32:31.48746 E: main.c: pa_pid_file_create() failed.
2010-03-23T15:32:31.50706 I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed:
Operation not permitted
2010-03-23T15:32:31.50709 I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed:
Operation not permitted
As soon as I stop pulseaudio the polkit issue goes away.
So, for me, it seems it goes
pulseaudio asks for realtime -> rtkit -> polkit -> polkit barfs -> rtkit says
no -> pulseaudio exits -> loop!
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.