Looks like a repro:
root@juju-be253b-7-lxd-5:~# date ; systemctl list-units --type scope | grep snap | wc -l Thu Jul 22 21:49:25 UTC 2021 0 root@juju-be253b-7-lxd-5:~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig=/root/.kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done [1] 10320 [2] 10321 [3] 10322 [4] 10323 [5] 10324 [6] 10325 [7] 10326 [8] 10327 [9] 10328 [10] 10329 [11] 10330 [12] 10331 [13] 10332 [14] 10333 [15] 10334 [16] 10335 [17] 10336 [18] 10349 [19] 10351 ... root@juju-be253b-7-lxd-5:~# date ; systemctl list-units --type scope | grep snap | wc -l Thu Jul 22 21:51:36 UTC 2021 27 root@juju-be253b-7-lxd-5:~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig=/root/.kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done ... root@juju-be253b-7-lxd-5:~# date ; systemctl list-units --type scope | grep snap | wc -l Thu Jul 22 21:52:31 UTC 2021 68 root@juju-be253b-7-lxd-5:~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig=/root/.kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done ... root@juju-be253b-7-lxd-5:~# date ; systemctl list-units --type scope | grep snap | wc -l Thu Jul 22 21:54:51 UTC 2021 100 root@juju-be253b-7-lxd-5:~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig=/root/.kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done ... root@juju-be253b-7-lxd-5:~# date ; systemctl list-units --type scope | grep snap | wc -l Thu Jul 22 21:56:32 UTC 2021 145 root@juju-be253b-7-lxd-5:~# date ; systemctl list-units --type scope | grep snap | wc -l Thu Jul 22 22:05:18 UTC 2021 145
Looks like a repro:
root@juju- be253b- 7-lxd-5: ~# date ; systemctl list-units --type scope | grep snap | wc -l be253b- 7-lxd-5: ~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig= /root/. kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done be253b- 7-lxd-5: ~# date ; systemctl list-units --type scope | grep snap | wc -l be253b- 7-lxd-5: ~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig= /root/. kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done be253b- 7-lxd-5: ~# date ; systemctl list-units --type scope | grep snap | wc -l be253b- 7-lxd-5: ~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig= /root/. kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done be253b- 7-lxd-5: ~# date ; systemctl list-units --type scope | grep snap | wc -l be253b- 7-lxd-5: ~# for i in {1..100}; do /snap/bin/kubectl --kubeconfig= /root/. kube/config get secrets -n kube-system -o json & done; for i in {1..20}; do echo 'Reloading...'; sudo systemctl daemon-reload; done be253b- 7-lxd-5: ~# date ; systemctl list-units --type scope | grep snap | wc -l be253b- 7-lxd-5: ~# date ; systemctl list-units --type scope | grep snap | wc -l
Thu Jul 22 21:49:25 UTC 2021
0
root@juju-
[1] 10320
[2] 10321
[3] 10322
[4] 10323
[5] 10324
[6] 10325
[7] 10326
[8] 10327
[9] 10328
[10] 10329
[11] 10330
[12] 10331
[13] 10332
[14] 10333
[15] 10334
[16] 10335
[17] 10336
[18] 10349
[19] 10351
...
root@juju-
Thu Jul 22 21:51:36 UTC 2021
27
root@juju-
...
root@juju-
Thu Jul 22 21:52:31 UTC 2021
68
root@juju-
...
root@juju-
Thu Jul 22 21:54:51 UTC 2021
100
root@juju-
...
root@juju-
Thu Jul 22 21:56:32 UTC 2021
145
root@juju-
Thu Jul 22 22:05:18 UTC 2021
145