Pádraig Brady wrote:
> > The coreutils package should include hints (for distributions)
> > about how to package coreutils, when these hints are not trivial.
> 
> The patch essentially recommends splitting who etc. to coreutils-multiuser.

Yes, this is the outcome of the requirement to easily be able to
create "minimal [chroot] environments", brought up by Luca Boccassi.

> That probably makes sense. I'm quite surprised with the systemd runtime 
> overhead:
> 
>    $ strace -c /bin/who 2>&1 | grep total
>    100.00    0.003110           6       459        15 total
> 
>    $ strace -c git/coreutils/src/who 2>&1 | grep total
>    100.00    0.000000           0       140         8 total
> 
> BTW both commands output the same on my system:
> 
>    $ who
>    padraig  seat0        2026-07-07 12:12
>    padraig  tty2         2026-07-07 12:12

Is the first one not using systemd? How else would it get the info
about "seat0"? Are you saying that some systems (login managers) are
storing identifiers like "seat0" in /var/run/utmp?

> Thought the systemd variant produces less output with who -a
> (I guess it has more info to suppress redundant entries?)

"who -a" basically displays all entries it finds. The difference is
probably that the various terminal emulators behave inconsistently
regarding /var/run/utmp but consistently regarding systemd.

Bruno




Reply via email to