Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933158AbXH2QS4 (ORCPT ); Wed, 29 Aug 2007 12:18:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757517AbXH2QSr (ORCPT ); Wed, 29 Aug 2007 12:18:47 -0400 Received: from smtp-out001.kontent.com ([81.88.40.215]:58952 "EHLO smtp-out.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755862AbXH2QSr convert rfc822-to-8bit (ORCPT ); Wed, 29 Aug 2007 12:18:47 -0400 From: Oliver Neukum To: Hugh Dickins Subject: Re: speeding up swapoff Date: Wed, 29 Aug 2007 18:18:42 +0200 User-Agent: KMail/1.9.6 (enterprise 20070731.694771) Cc: Arjan van de Ven , Daniel Drake , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1188394172.22156.67.camel@localhost> <200708291636.48323.oliver@neukum.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200708291818.44089.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 27 Am Mittwoch 29 August 2007 schrieb Hugh Dickins: > 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. Yes. I hadn't thought of that. I am using a dedicated disk. Regards Oliver - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/