Date: Mon, 9 Feb 2009 23:48:22 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Eugene Grosbein <eugen@kuzbass.ru> Cc: stable@freebsd.org Subject: Re: sysctl lock in RELENG_6 Message-ID: <20090209214822.GH9427@deviant.kiev.zoral.com.ua> In-Reply-To: <498FAA2A.7423AC15@kuzbass.ru> References: <498FAA2A.7423AC15@kuzbass.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--vhOf6eAHdfH9MSjZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 09, 2009 at 10:59:38AM +0700, Eugene Grosbein wrote: > Hi! >=20 > I've RELENG_6 system controlling local PBX through RS-232 port, sio(4). > It also runs syslogd, cron, sshd, bsnmpd and sendmail for outgoing report= s. >=20 > It locks very often: it answers to pings but PBX controlling software sto= ps > responding, local and remote login attempts hang due to 'login' process > stuck in 'sysctl lock' state. Local consoles do switch with 'Alt-Fn' > and DDB works. It shows that sendmail is in 'sysctl lock' state too. >=20 > This is NanoBSD installation running from IDE flash, it's swapless > but I think I could manage to obtain crashdump if there is an interest of= it. >=20 > I've digged commit logs a bit and found this change MFC'd to RELENG_7 > but not RELENG_6: >=20 > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_sysctl.c#rev1.177= .6.2 >=20 > It seems RELENG_6 needs this too, doesn't it? > I'm going to merge the change to RELENG_6 and give it a try. Yes, please give it a try. In fact, it was quite specific situation that I observed and produced a fix for. You need execing process that needs to grab Giant, e.g. due to image being located on !MPSAFE fs, and simultaneous sysctl issued that inspects this process. --vhOf6eAHdfH9MSjZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmQpKUACgkQC3+MBN1Mb4jrgACgn3DM3+XBG4zIwdcBmkev1tqA XVEAmwc917IvUzsTVMl9Kt4jypzRy+WN =EZ/K -----END PGP SIGNATURE----- --vhOf6eAHdfH9MSjZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090209214822.GH9427>