From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 21 18:30:43 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E755416F90B; Wed, 21 Feb 2007 18:30:43 +0000 (UTC) (envelope-from joe@tao.org.uk) Received: from mailhost.tao.org.uk (transwarp.tao.org.uk [87.74.4.34]) by mx1.freebsd.org (Postfix) with ESMTP id A1AB513C47E; Wed, 21 Feb 2007 18:30:43 +0000 (UTC) (envelope-from joe@tao.org.uk) Received: from genius.tao.org.uk (wireless58.dhcp.tao.org.uk [87.74.4.58]) by mailhost.tao.org.uk (Postfix) with ESMTP id 568EB5EAC; Wed, 21 Feb 2007 18:30:42 +0000 (GMT) Received: by genius.tao.org.uk (Postfix, from userid 1000) id C921C4101; Wed, 21 Feb 2007 18:30:34 +0000 (GMT) Date: Wed, 21 Feb 2007 18:30:34 +0000 From: Josef Karthauser To: Maxim Konovalov Message-ID: <20070221183034.GA2790@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Maxim Konovalov , LI Xin , current@freebsd.org, hackers@freebsd.org References: <20070221171816.GB2202@genius.tao.org.uk> <45DC7F94.7010104@delphij.net> <20070221205826.D79626@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20070221205826.D79626@mp2.macomnet.net> User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org, LI Xin , current@freebsd.org Subject: Re: Zombie Jails - why don't they disappear? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2007 18:30:44 -0000 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 21, 2007 at 09:00:35PM +0300, Maxim Konovalov wrote: > > > > Sockets (stuck in a state which can not be released immediately?) or > > other resources? I really think that this is a bug, though. >=20 > It was discussed millon times already and there is at least one open > PR: >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/89528 Ah, thanks Maxim. The poignant comment is: PR kern/89528: Ouch! I found a comment in tty_pty.c that it doesn't deallocate pty's anymore. Not a single destroy_dev() is called by tty_pty.c. This means the FreeBSD kernel leaks a lot of cdev's and thus ucred's and my patch is working around another bug. Joe --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iEYEARECAAYFAkXcj8oACgkQXVIcjOaxUBY4gACeOmp3EaqUyW/DInzVBDkc2Ayh swEAnjeYSn1TsURIZ/gwpUsOAT6dtxX5 =YMsJ -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--