From owner-freebsd-current@FreeBSD.ORG Wed Jun 1 13:22:58 2005 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 0D7BB16A41C; Wed, 1 Jun 2005 13:22:58 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A5B543D1F; Wed, 1 Jun 2005 13:22:57 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd22.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1DdTBP-0002Zp-00; Wed, 01 Jun 2005 15:22:55 +0200 Received: from Andro-Beta.Leidinger.net (rfgsy4ZJweeXKbrmw34EyWt055K90PoB-te4ANSp-0-fJEWZBJAx4a@[84.165.199.14]) by fwd22.sul.t-online.de with esmtp id 1DdTBG-292v7g0; Wed, 1 Jun 2005 15:22:46 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j51DMiw2036452; Wed, 1 Jun 2005 15:22:45 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.32 ([141.113.101.32]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Wed, 01 Jun 2005 15:22:44 +0200 Message-ID: <20050601152244.cgb5pjihw4w4ssgg@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 01 Jun 2005 15:22:44 +0200 From: Alexander Leidinger To: Poul-Henning Kamp References: <41216.1117630645@critter.freebsd.dk> In-Reply-To: <41216.1117630645@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: rfgsy4ZJweeXKbrmw34EyWt055K90PoB-te4ANSp-0-fJEWZBJAx4a@t-dialin.net X-TOI-MSGID: 06740b0b-2d5b-44eb-95eb-0109658cb362 Cc: Don Lewis , current@freebsd.org Subject: Re: [RFC] [PATCH] VM & VFS changes 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: Wed, 01 Jun 2005 13:22:58 -0000 Poul-Henning Kamp wrote: > Maybe the simplest solution is also the best: keep track of the > dependencies and do the cleanup leaf->root on the resulting tree. How many userland processes have to be running and consuming memory which isn't available as physical RAM at this point in the shutdown sequence? Wouldn't a loop like the following be enough? while swap umount unbusy-FS swap-off swap This assumes that swap-off doesn't turns off the swap if it isn't able to put everything back into other swap or physical RAM areas. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The electrician didn't know what the yellow cable was so he yanked the ethernet out.