[systemd-bugs] [Bug 88668] New: journald: remember that a process died
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jan 21 09:03:49 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=88668
Bug ID: 88668
Summary: journald: remember that a process died
Product: systemd
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: minor
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: smurf at smurf.noris.de
QA Contact: systemd-bugs at lists.freedesktop.org
strace'ing journald while calling "logger foo" reveals:
clock_gettime(CLOCK_BOOTTIME, {124771, 959412867}) = 0
ioctl(3, FIONREAD, [30]) = 0
recvmsg(3, {msg_name(0)={sa_family=AF_UNSPEC,
sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, msg_iov(1)=[{"<13>Jan 21 17:55:28
smurf: foo", 24575}], msg_controllen=64, {cmsg_len=32, cmsg_level=SOL_SOCKET,
cmsg_type=0x1d /* SCM_??? */, ...}, msg_flags=MSG_CMSG_CLOEXEC},
MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 30
sendmsg(3, {msg_name(29)={sa_family=AF_LOCAL,
sun_path="/run/systemd/journal/syslog"}, msg_iov(1)=[{"<13>Jan 21 17:55:28
smurf: foo", 30}], msg_controllen=28, {cmsg_len=28, cmsg_level=SOL_SOCKET,
cmsg_type=SCM_CREDENTIALS{pid=14495, uid=501, gid=501}}, msg_flags=0},
MSG_NOSIGNAL) = -1 ESRCH (No such process)
sendmsg(3, {msg_name(29)={sa_family=AF_LOCAL,
sun_path="/run/systemd/journal/syslog"}, msg_iov(1)=[{"<13>Jan 21 17:55:28
smurf: foo", 30}], msg_controllen=28, {cmsg_len=28, cmsg_level=SOL_SOCKET,
cmsg_type=SCM_CREDENTIALS{pid=579, uid=501, gid=501}}, msg_flags=0},
MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
open("/proc/14495/cgroup", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("/proc/14495/comm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
readlinkat(AT_FDCWD, "/proc/14495/exe", 0x7fa6e89c8b30, 99) = -1 ENOENT (No
such file or directory)
open("/proc/14495/cmdline", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("/proc/14495/status", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("/proc/14495/sessionid", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("/proc/14495/loginuid", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("/proc/14495/cgroup", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
ftruncate(18, 16777216) = 0
ioctl(3, FIONREAD, [0]) = 0
recvmsg(3, 0x7fff18b3e670, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource
temporarily unavailable)
epoll_wait(8,
^C
That first sendmsg() call returns ESRCH. Therefore, all these accesses to
/proc/ are by definition superfluous overhead. Please don't do them.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150121/acb7372e/attachment.html>
More information about the systemd-bugs
mailing list