Reproducing the bug on zesty: $ dpkg-query -W systemd systemd 232-21ubuntu5 $ bash test.sh accounts-daemon.service : Tasks: 3 (limit: 4915) acpid.service : Tasks: 1 (limit: 4915) atd.service : Tasks: 1 (limit: 4915) cron.service : Tasks: 1 (limit: 4915) dbus.service : Tasks: 1 (limit: 4915) iscsid.service : Tasks: 2 (limit: 4915) lvm2-lvmetad.service : Tasks: 1 (limit: 4915) lxcfs.service : Tasks: 3 (limit: 4915) polkit.service : Tasks: 3 (limit: 4915) rsyslog.service : Tasks: 4 (limit: 4915) snapd.service : Tasks: 6 (limit: 4915) ssh.service : Tasks: 1 (limit: 4915) systemd-journald.service : Tasks: 1 (limit: 4915) systemd-logind.service : Tasks: 1 (limit: 4915) systemd-networkd.service : Tasks: 1 (limit: 4915) systemd-resolved.service : Tasks: 1 (limit: 4915) systemd-timesyncd.service : Tasks: 2 (limit: 4915) systemd-udevd.service : Tasks: 1 accounts-daemon.service : acpid.service : atd.service : cron.service : dbus.service : iscsid.service : lvm2-lvmetad.service : lxcfs.service : polkit.service : rsyslog.service : snapd.service : ssh.service : systemd-journald.service : systemd-logind.service : systemd-networkd.service : systemd-resolved.service : systemd-timesyncd.service : systemd-udevd.service : accounts-daemon.service : Tasks: 3 (limit: 4915) acpid.service : Tasks: 1 (limit: 4915) atd.service : Tasks: 1 (limit: 4915) cron.service : Tasks: 1 (limit: 4915) dbus.service : Tasks: 1 (limit: 4915) iscsid.service : Tasks: 2 (limit: 4915) lvm2-lvmetad.service : Tasks: 1 (limit: 4915) lxcfs.service : Tasks: 3 (limit: 4915) polkit.service : Tasks: 3 (limit: 4915) rsyslog.service : Tasks: 4 (limit: 4915) snapd.service : Tasks: 6 (limit: 4915) ssh.service : Tasks: 1 (limit: 4915) systemd-journald.service : Tasks: 1 (limit: 4915) systemd-logind.service : Tasks: 1 (limit: 4915) systemd-networkd.service : Tasks: 1 (limit: 4915) systemd-resolved.service : Tasks: 1 (limit: 4915) systemd-timesyncd.service : Tasks: 2 (limit: 4915) systemd-udevd.service : Tasks: 1
Upgrading $ dpkg-query -W systemd systemd 232-21ubuntu7 $ bash test.sh accounts-daemon.service : Tasks: 3 (limit: 4915) acpid.service : Tasks: 1 (limit: 4915) atd.service : Tasks: 1 (limit: 4915) cron.service : Tasks: 1 (limit: 4915) dbus.service : Tasks: 1 (limit: 4915) iscsid.service : Tasks: 2 (limit: 4915) lvm2-lvmetad.service : Tasks: 1 (limit: 4915) lxcfs.service : Tasks: 3 (limit: 4915) polkit.service : Tasks: 3 (limit: 4915) rsyslog.service : Tasks: 4 (limit: 4915) snapd.service : Tasks: 5 (limit: 4915) ssh.service : Tasks: 1 (limit: 4915) systemd-journald.service : Tasks: 1 (limit: 4915) systemd-logind.service : Tasks: 1 (limit: 4915) systemd-networkd.service : Tasks: 1 (limit: 4915) systemd-resolved.service : Tasks: 1 (limit: 4915) systemd-timesyncd.service : Tasks: 2 (limit: 4915) systemd-udevd.service : Tasks: 1 accounts-daemon.service : Tasks: 3 (limit: 4915) acpid.service : Tasks: 1 (limit: 4915) atd.service : Tasks: 1 (limit: 4915) cron.service : Tasks: 1 (limit: 4915) dbus.service : Tasks: 1 (limit: 4915) iscsid.service : Tasks: 2 (limit: 4915) lvm2-lvmetad.service : Tasks: 1 (limit: 4915) lxcfs.service : Tasks: 3 (limit: 4915) polkit.service : Tasks: 3 (limit: 4915) rsyslog.service : Tasks: 4 (limit: 4915) snapd.service : Tasks: 5 (limit: 4915) ssh.service : Tasks: 1 (limit: 4915) systemd-journald.service : Tasks: 1 (limit: 4915) systemd-logind.service : Tasks: 1 (limit: 4915) systemd-networkd.service : Tasks: 1 (limit: 4915) systemd-resolved.service : Tasks: 1 (limit: 4915) systemd-timesyncd.service : Tasks: 2 (limit: 4915) systemd-udevd.service : Tasks: 1 accounts-daemon.service : Tasks: 3 (limit: 4915) acpid.service : Tasks: 1 (limit: 4915) atd.service : Tasks: 1 (limit: 4915) cron.service : Tasks: 1 (limit: 4915) dbus.service : Tasks: 1 (limit: 4915) iscsid.service : Tasks: 2 (limit: 4915) lvm2-lvmetad.service : Tasks: 1 (limit: 4915) lxcfs.service : Tasks: 3 (limit: 4915) polkit.service : Tasks: 3 (limit: 4915) rsyslog.service : Tasks: 4 (limit: 4915) snapd.service : Tasks: 5 (limit: 4915) ssh.service : Tasks: 1 (limit: 4915) systemd-journald.service : Tasks: 1 (limit: 4915) systemd-logind.service : Tasks: 1 (limit: 4915) systemd-networkd.service : Tasks: 1 (limit: 4915) systemd-resolved.service : Tasks: 1 (limit: 4915) systemd-timesyncd.service : Tasks: 2 (limit: 4915) systemd-udevd.service : Tasks: 1
Looking much better.
Reproducing the bug on zesty:
accounts- daemon. service : Tasks: 3 (limit: 4915)
acpid. service : Tasks: 1 (limit: 4915)
atd. service : Tasks: 1 (limit: 4915)
cron. service : Tasks: 1 (limit: 4915)
dbus. service : Tasks: 1 (limit: 4915)
iscsid. service : Tasks: 2 (limit: 4915)
lvm2- lvmetad. service : Tasks: 1 (limit: 4915)
lxcfs. service : Tasks: 3 (limit: 4915)
polkit. service : Tasks: 3 (limit: 4915)
rsyslog. service : Tasks: 4 (limit: 4915)
snapd. service : Tasks: 6 (limit: 4915)
ssh. service : Tasks: 1 (limit: 4915)
systemd- journald. service : Tasks: 1 (limit: 4915)
systemd- logind. service : Tasks: 1 (limit: 4915)
systemd- networkd. service : Tasks: 1 (limit: 4915)
systemd- resolved. service : Tasks: 1 (limit: 4915)
systemd- timesyncd. service : Tasks: 2 (limit: 4915)
systemd- udevd.service : Tasks: 1
accounts- daemon. service :
acpid. service :
atd. service :
cron. service :
dbus. service :
iscsid. service :
lvm2- lvmetad. service :
lxcfs. service :
polkit. service :
rsyslog. service :
snapd. service :
ssh. service :
systemd- journald. service :
systemd- logind. service :
systemd- networkd. service :
systemd- resolved. service :
systemd- timesyncd. service :
systemd- udevd.service :
accounts- daemon. service : Tasks: 3 (limit: 4915)
acpid. service : Tasks: 1 (limit: 4915)
atd. service : Tasks: 1 (limit: 4915)
cron. service : Tasks: 1 (limit: 4915)
dbus. service : Tasks: 1 (limit: 4915)
iscsid. service : Tasks: 2 (limit: 4915)
lvm2- lvmetad. service : Tasks: 1 (limit: 4915)
lxcfs. service : Tasks: 3 (limit: 4915)
polkit. service : Tasks: 3 (limit: 4915)
rsyslog. service : Tasks: 4 (limit: 4915)
snapd. service : Tasks: 6 (limit: 4915)
ssh. service : Tasks: 1 (limit: 4915)
systemd- journald. service : Tasks: 1 (limit: 4915)
systemd- logind. service : Tasks: 1 (limit: 4915)
systemd- networkd. service : Tasks: 1 (limit: 4915)
systemd- resolved. service : Tasks: 1 (limit: 4915)
systemd- timesyncd. service : Tasks: 2 (limit: 4915)
systemd- udevd.service : Tasks: 1
$ dpkg-query -W systemd
systemd 232-21ubuntu5
$ bash test.sh
Upgrading
accounts- daemon. service : Tasks: 3 (limit: 4915)
acpid. service : Tasks: 1 (limit: 4915)
atd. service : Tasks: 1 (limit: 4915)
cron. service : Tasks: 1 (limit: 4915)
dbus. service : Tasks: 1 (limit: 4915)
iscsid. service : Tasks: 2 (limit: 4915)
lvm2- lvmetad. service : Tasks: 1 (limit: 4915)
lxcfs. service : Tasks: 3 (limit: 4915)
polkit. service : Tasks: 3 (limit: 4915)
rsyslog. service : Tasks: 4 (limit: 4915)
snapd. service : Tasks: 5 (limit: 4915)
ssh. service : Tasks: 1 (limit: 4915)
systemd- journald. service : Tasks: 1 (limit: 4915)
systemd- logind. service : Tasks: 1 (limit: 4915)
systemd- networkd. service : Tasks: 1 (limit: 4915)
systemd- resolved. service : Tasks: 1 (limit: 4915)
systemd- timesyncd. service : Tasks: 2 (limit: 4915)
systemd- udevd.service : Tasks: 1
accounts- daemon. service : Tasks: 3 (limit: 4915)
acpid. service : Tasks: 1 (limit: 4915)
atd. service : Tasks: 1 (limit: 4915)
cron. service : Tasks: 1 (limit: 4915)
dbus. service : Tasks: 1 (limit: 4915)
iscsid. service : Tasks: 2 (limit: 4915)
lvm2- lvmetad. service : Tasks: 1 (limit: 4915)
lxcfs. service : Tasks: 3 (limit: 4915)
polkit. service : Tasks: 3 (limit: 4915)
rsyslog. service : Tasks: 4 (limit: 4915)
snapd. service : Tasks: 5 (limit: 4915)
ssh. service : Tasks: 1 (limit: 4915)
systemd- journald. service : Tasks: 1 (limit: 4915)
systemd- logind. service : Tasks: 1 (limit: 4915)
systemd- networkd. service : Tasks: 1 (limit: 4915)
systemd- resolved. service : Tasks: 1 (limit: 4915)
systemd- timesyncd. service : Tasks: 2 (limit: 4915)
systemd- udevd.service : Tasks: 1
accounts- daemon. service : Tasks: 3 (limit: 4915)
acpid. service : Tasks: 1 (limit: 4915)
atd. service : Tasks: 1 (limit: 4915)
cron. service : Tasks: 1 (limit: 4915)
dbus. service : Tasks: 1 (limit: 4915)
iscsid. service : Tasks: 2 (limit: 4915)
lvm2- lvmetad. service : Tasks: 1 (limit: 4915)
lxcfs. service : Tasks: 3 (limit: 4915)
polkit. service : Tasks: 3 (limit: 4915)
rsyslog. service : Tasks: 4 (limit: 4915)
snapd. service : Tasks: 5 (limit: 4915)
ssh. service : Tasks: 1 (limit: 4915)
systemd- journald. service : Tasks: 1 (limit: 4915)
systemd- logind. service : Tasks: 1 (limit: 4915)
systemd- networkd. service : Tasks: 1 (limit: 4915)
systemd- resolved. service : Tasks: 1 (limit: 4915)
systemd- timesyncd. service : Tasks: 2 (limit: 4915)
systemd- udevd.service : Tasks: 1
$ dpkg-query -W systemd
systemd 232-21ubuntu7
$ bash test.sh
Looking much better.