<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - journald: remember that a process died"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88668">88668</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>journald: remember that a process died
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>minor
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>smurf@smurf.noris.de
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>