Date: Wed, 30 Aug 2023 16:36:41 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: =?UTF-8?Q?Mina_Gali=C4=87?= <freebsd@igalic.co> Cc: current@freebsd.org Subject: Re: 100% CPU time for sysctl command, not killable Message-ID: <d609276f9e564043261028aa4eb81065@Leidinger.net> In-Reply-To: <f7ef2884ef98d3ee978d2440c46f47b1@Leidinger.net> References: <67616bb5b074851832053a0286c3c2fa@Leidinger.net> <-2rv9P1fc0I_nDQomzn-3shvEyCOkCA84lNmp7B3RdDOr9qBwG5QXZNT0R4ZPq0Z1S4-PyGC1xbVoNjPNHNmajxFq-ygNfDS4AqGzB0ylRU=@igalic.co> <f7ef2884ef98d3ee978d2440c46f47b1@Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=_ecfc975d1cc88a7ac32bdd744aa7025e Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed 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 Alexander@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 Alexander@Leidinger.net: PGP > 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP > 0x8F31830F9F2772BF PID TID COMM TDNAME 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 Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_ecfc975d1cc88a7ac32bdd744aa7025e Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= =3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen= eva,sans-serif'> <p id=3D"reply-intro">Am 2023-08-20 21:23, schrieb Alexander Leidinger:</p> <blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2= px solid; margin: 0"> <div id=3D"replybody1"> <div style=3D"font-size: 10pt; font-family: Verdana,Geneva,sans-serif;"> <p id=3D"v1reply-intro">Am 2023-08-20 18:55, schrieb Mina Gali=C4=87:</p> <blockquote style=3D"padding: 0 0.4em; border-left: #1010ff 2px solid; marg= in: 0;"> <div id=3D"v1replybody1">procstat(1) kstack could be helpful here.</div> <div> </div> <div>-------- Original Message --------<br />On 20 Aug 2023, 17:29, Alexand= er Leidinger Alexander@Leidinger.net> wrote: <blockquote class=3D"v1v1protonmail_quote"><br />Hi, sysctl kern.maxvnodes= =3D1048576000 results in 100% CPU and a non-killable sysctl program. This i= s somewhat unexpected... Bye, Alexander. -- http://www.Leidinger.net Alexan= der@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@F= reeBSD.org : PGP 0x8F31830F9F2772BF</blockquote> </div> </blockquote> <p> PID TID COMM &nbs= p; TDNAME KSTA= CK &n= bsp; <br />94391 118678 sysctl &nbs= p; - s= ysctl_maxvnodes sysctl_root_handler_locked sysctl_root userland_sysctl sys_= __sysctl amd64_syscall fast_syscall_common </p> </div> </div> </blockquote> <p><br /></p> <p>I experimented a bit by multiplying my initial value of 104857600. It fa= ils between 5 and 6 times the initial value.</p> <p>sysctl kern.maxvnodes=3D524288000 is successful within 4 seconds.</p> <p>sysctl kern.maxvnodes=3D629145600 goes into a loop with the same procsta= t -k output.</p> <p>Bye,</p> <p>Alexander.</p> <div id=3D"signature">-- <br /> <div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">= <a href=3D"http://www.Leidinger.net" target=3D"_blank" rel=3D"noopener nore= ferrer">http://www.Leidinger.net</a> <a href=3D"mailto:Alexander@Leidinger.= net:">Alexander@Leidinger.net:</a> PGP 0x8F31830F9F2772BF<br /><a href=3D"h= ttp://www.FreeBSD.org" target=3D"_blank" rel=3D"noopener noreferrer">http:/= /www.FreeBSD.org</a> <a href=3D"mailto:netchild@FreeBSD.org">n= etchild@FreeBSD.org</a> : PGP 0x8F31830F9F2772BF</div> </div> </body></html> --=_ecfc975d1cc88a7ac32bdd744aa7025e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d609276f9e564043261028aa4eb81065>