From owner-freebsd-hackers Sat Nov 30 15: 0:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3279537B401; Sat, 30 Nov 2002 15:00:44 -0800 (PST) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4A4243EBE; Sat, 30 Nov 2002 15:00:43 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0348.cvx22-bradley.dialup.earthlink.net ([209.179.199.93] helo=mindspring.com) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18IGbK-0000gX-00; Sat, 30 Nov 2002 15:00:43 -0800 Message-ID: <3DE942CC.82604BAA@mindspring.com> Date: Sat, 30 Nov 2002 14:59:24 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Robert Watson Cc: Stefanos Kiakas , freebsd-hackers@freebsd.org Subject: Re: jail References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Robert Watson wrote: > On Thu, 28 Nov 2002, Terry Lambert wrote: [ ... lockups when using vnodes to hold jail FS instances ... ] > Hmm. The only bug like that I know about in -current was corrected in one > of Kirk or Jeff's passes through getnewvnode() a few months ago, and > involved a race condition when rotating logs in the same directory during > a newsyslog call during heavy recursive directory activity -- > specifically, the security script. Do you have any more practical details > about the nature of the hang? In particular, the results of show locks > and show lockedvnods would be useful for interesting processes, as well as > their wait channels. I'm positive it's a problem. Someone posted test code for it already, which is simpler than the code I've seen the problem reported with. I don't personally use jails this way, and it was really complicated to repeat before the new test code. If you are interested, I can find the previous report for you; it had to do with the guy's system with multiple jails locking up every day at the same time, which turned out to be the time the /etc/security cron job ran it's 'find'. This was about 4 months ago, and I helped him work around the problem by rearranging his directories so that the vnode files acting as backing store were never in the same subdirectory as a similar file, if you want to look for it in the archives. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message