Re: 100% CPU time for sysctl command, not killable
Am 2023-09-03 21:22, schrieb Alexander Leidinger: Am 2023-09-02 16:56, schrieb Mateusz Guzik: On 8/20/23, Alexander Leidinger wrote: Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable sysctl program. This is somewhat unexpected... fixed here https://cgit.freebsd.org/src/commit/?id=32988c1499f8698b41e15ed40a46d271e757bba3 I confirm. There may be dragons...: kern.maxvnodes: 1048576000 vfs.wantfreevnodes: 262144000 vfs.freevnodes: 0 <--- vfs.vnodes_created: 11832359 vfs.numvnodes: 146699 vfs.recycles_free: 4700765 vfs.recycles: 0 vfs.vnode_alloc_sleeps: 0 Another time I got an insanely huge amount of free vnodes (more than maxvnodes). Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.orgnetch...@freebsd.org : PGP 0x8F31830F9F2772BF signature.asc Description: OpenPGP digital signature
Re: 100% CPU time for sysctl command, not killable
Am 2023-09-02 16:56, schrieb Mateusz Guzik: On 8/20/23, Alexander Leidinger wrote: Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable sysctl program. This is somewhat unexpected... fixed here https://cgit.freebsd.org/src/commit/?id=32988c1499f8698b41e15ed40a46d271e757bba3 I confirm. Thanks! Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.orgnetch...@freebsd.org : PGP 0x8F31830F9F2772BF
Re: 100% CPU time for sysctl command, not killable
On 8/20/23, Alexander Leidinger wrote: > Hi, > > sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable > sysctl program. This is somewhat unexpected... > fixed here https://cgit.freebsd.org/src/commit/?id=32988c1499f8698b41e15ed40a46d271e757bba3 employing basic profiling tooling immediately shows the issue, in this case for example: pmcstat -S inst_retired.any_p -TI > Bye, > Alexander. > > -- > http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.orgnetch...@freebsd.org : PGP 0x8F31830F9F2772BF > > -- Mateusz Guzik
Re: 100% CPU time for sysctl command, not killable
Am 2023-08-20 21:23, schrieb Alexander Leidinger: Am 2023-08-20 18:55, schrieb Mina Galić: procstat(1) kstack could be helpful here. Original Message On 20 Aug 2023, 17:29, Alexander Leidinger alexan...@leidinger.net> wrote: Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable sysctl program. This is somewhat unexpected... Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netch...@freebsd.org : PGP 0x8F31830F9F2772BF PIDTID COMMTDNAME KSTACK 94391 118678 sysctl - sysctl_maxvnodes sysctl_root_handler_locked sysctl_root userland_sysctl sys___sysctl amd64_syscall fast_syscall_common I experimented a bit by multiplying my initial value of 104857600. It fails between 5 and 6 times the initial value. sysctl kern.maxvnodes=524288000 is successful within 4 seconds. sysctl kern.maxvnodes=629145600 goes into a loop with the same procstat -k output. Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.orgnetch...@freebsd.org : PGP 0x8F31830F9F2772BF
Re: 100% CPU time for sysctl command, not killable
Am 2023-08-20 18:55, schrieb Mina Galić: procstat(1) kstack could be helpful here. Original Message On 20 Aug 2023, 17:29, Alexander Leidinger alexan...@leidinger.net> wrote: Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable sysctl program. This is somewhat unexpected... Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netch...@freebsd.org : PGP 0x8F31830F9F2772BF PIDTID COMMTDNAME KSTACK 94391 118678 sysctl - sysctl_maxvnodes sysctl_root_handler_locked sysctl_root userland_sysctl sys___sysctl amd64_syscall fast_syscall_common Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.orgnetch...@freebsd.org : PGP 0x8F31830F9F2772BF
Re: 100% CPU time for sysctl command, not killable
procstat(1) kstack could be helpful here. Original Message On 20 Aug 2023, 17:29, Alexander Leidinger wrote: > Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable > sysctl program. This is somewhat unexpected... Bye, Alexander. -- > http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netch...@freebsd.org : PGP 0x8F31830F9F2772BF
Re: 100% CPU time for sysctl command, not killable
Sounds like a fork bomb discovered Obter o Outlook para Android<https://aka.ms/AAb9ysg> From: owner-freebsd-curr...@freebsd.org on behalf of Alexander Leidinger Sent: Sunday, August 20, 2023 1:29:40 PM To: curr...@freebsd.org Subject: 100% CPU time for sysctl command, not killable Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable sysctl program. This is somewhat unexpected... Bye, Alexander. -- https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.leidinger.net%2F=05%7C01%7C%7C8154f1ba1c56451df44f08dba19ab6fb%7C84df9e7fe9f640afb435%7C1%7C0%7C638281458099404081%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=1w9Qc6PlRiJU%2FYrGjSiyLGIbWfoekhX2XbRE%2FMr2MB8%3D=0<http://www.leidinger.net/> alexan...@leidinger.net: PGP 0x8F31830F9F2772BF https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freebsd.org%2F=05%7C01%7C%7C8154f1ba1c56451df44f08dba19ab6fb%7C84df9e7fe9f640afb435%7C1%7C0%7C638281458099404081%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=XONqhX5V5duH8oyRVwnAiruzHzcnIGCcjbWVDLscILU%3D=0<http://www.freebsd.org/> netch...@freebsd.org : PGP 0x8F31830F9F2772BF
100% CPU time for sysctl command, not killable
Hi, sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable sysctl program. This is somewhat unexpected... Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.orgnetch...@freebsd.org : PGP 0x8F31830F9F2772BF