Please add columns for "user unit", "slice", "machine"
Submitted by Lennart Poettering
gnome-system-monitor already supports showing columns for logind seats, sessions, owners, as well as systemd units. It would be really awesome it would also gain new columns for:
- machines, via sd_pid_get_machine_name()
- slices, via sd_pid_get_slice()
- user units, via sd_pid_user_unit()
Machines are useful when the user runs VMs or containers.
Slices are useful for splitting up systems for resource management purposes.
User units are useful in the context of per-user system instances. (sd_pid_get_unit() then refers to the system unit (i.e. the entity the systemd system instance manages the process in), while sd_pid_get_user_unit() refers to the user unit (i.e. the entity the systemd user instance manages the process in).
procps already has columns for this. How this looks is described in the "ps" output here:
Also, while we are at it: please consider simplifying the "Control Groups" column and only show the "name=systemd" hierarchy. Having orthogonal hierarchies for different controllers will soon no longer be supported by the kernel, hence there will only be a single hierarchy remaining that is the one system manages i.e. the "name=systemd" one.