I'm getting huge a delay in ps output -- when it outputs the first line (
systemd-networkd
), there is a huge delay about **20** to **25** seconds, then the rest are displayed instantly.
$ ps -eaf
. . .
systemd+ 31865 1 0 Jul22 ? 00:00:10 /lib/systemd/systemd-networkd
62583 31891 1 0 Jul22 ? 00:00:12 /lib/systemd/systemd-timesyncd
root 31922 1 0 Jul22 ? 00:02:09 /lib/systemd/systemd-journald
. . .
Any idea why (and the fix)?
$ time ps -o uname -p 31891
USER
62583
real 0m25.025s
user 0m0.006s
sys 0m0.006s
$ time getent passwd 62583 | wc
0 0 0
real 0m25.030s
user 0m0.005s
sys 0m0.001s
$ grep 62583 /etc/passwd | wc
0 0 0
$ grep passwd /etc/nsswitch.conf
passwd: compat systemd
$ grep compat /etc/nsswitch.conf
passwd: compat systemd
group: compat systemd
shadow: compat
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ uname -rm
5.4.0-1047-azure x86_64
Asked by xpt
(1858 rep)
Sep 21, 2021, 01:51 AM
Last activity: Sep 21, 2021, 07:50 PM
Last activity: Sep 21, 2021, 07:50 PM