From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 29 Aug 2007 17:04:26 +0100 (BST) From: Hugh Dickins Subject: Re: speeding up swapoff In-Reply-To: <200708291636.48323.oliver@neukum.org> Message-ID: References: <1188394172.22156.67.camel@localhost> <20070829073040.1ec35176@laptopd505.fenrus.org> <200708291636.48323.oliver@neukum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Oliver Neukum Cc: Arjan van de Ven , Daniel Drake , linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Wed, 29 Aug 2007, Oliver Neukum wrote: > Am Mittwoch 29 August 2007 schrieb Arjan van de Ven: > > Another question, if this is during system shutdown, maybe that's a > > valid case for flushing most of the pagecache first (from userspace) > > since most of what's there won't be used again anyway. If that's enough > > to make this go faster... > > Is there a good reason to swapoff during shutdown? Three reasons, I think, only one of them compelling: 1. Tidiness. 2. So swapoff gets testing and I get to hear of any bugs in it. 3. If a regular swapfile is used instead of a disk partition, you need to swapoff before its filesystem can be unmounted cleanly. Hugh -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org