From owner-freebsd-current@FreeBSD.ORG Sat Feb 4 11:07:01 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB43E16A420 for ; Sat, 4 Feb 2006 11:07:01 +0000 (GMT) (envelope-from stb@lassitu.de) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38C2943D53 for ; Sat, 4 Feb 2006 11:07:00 +0000 (GMT) (envelope-from stb@lassitu.de) Received: from [127.0.0.1] (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.3/8.12.9) with ESMTP id k14B6uK8029288; Sat, 4 Feb 2006 12:06:56 +0100 (CET) (envelope-from stb@lassitu.de) In-Reply-To: <20060204064457.GA20820@xor.obsecurity.org> References: <20060204064457.GA20820@xor.obsecurity.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2A2A8D5B-9AE5-46E0-B5EB-1824E331E776@lassitu.de> Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Sat, 4 Feb 2006 12:06:10 +0100 To: Kris Kennaway X-Mailer: Apple Mail (2.746.2) Cc: current@freebsd.org Subject: Re: jail leak X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2006 11:07:01 -0000 Am 04.02.2006 um 07:44 schrieb Kris Kennaway: > I changed the package build scripts to build in jails instead of > chroots, but I am seeing what look like leaks in the list of jails: > > dosirak# jls > JID IP Address Hostname Path > 271 10.0.225.48 jail-57648 /c/pkgbuild/6/ > chroot/57648 > 112 10.0.119.181 jail-30645 /c/pkgbuild/6/ > chroot/30645 > dosirak# pgrep -lfj 112 > dosirak# jls > JID IP Address Hostname Path > 112 10.0.119.181 jail-30645 /c/pkgbuild/6/ > chroot/30645 > > i.e. jail 112 has nothing running inside it, but it is still hanging > around. Is there a good reason for this, or is it in fact a leak? This question has come up a number of times before. It appears the jail will only go away after all resources associated with that jail are returned. Unfortunatly, there doesn't seem to be an easy way to identify which resources are still allocated to it... We're running one 5-stable box with 7 jails, and so far, those phantoms have all disappeared eventually. Stefan -- Stefan Bethke Fon +49 170 346 0140