[systemd-devel] systemcstl still truncates

Lennart Poettering lennart at poettering.net
Sun Apr 21 07:13:17 PDT 2013


On Sun, 21.04.13 16:04, Reindl Harald (h.reindl at thelounge.net) wrote:

> why is the Main PID process below truncated?

>  Main PID: 65508 (/usr/sbin/postg)

because that is the "comm" process name of the process, i.e. the name
"top" shows, rather than the name "ps" shows. The "comm" name is
maintained by the kernel and the kernel limits it to 16chars max.

Usually, the "comm" name does not contain slashes, though. Your daemon
probably changes it via PR_SET_NAME, and does this incorrectly and
doesn't chop off the path before doing this. Also see prctl(2) for more
information.

Long story short: it's not systemd that truncates this, it's the kernel.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list