From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 05:30:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E18916A4C0 for ; Mon, 8 Sep 2003 05:30:54 -0700 (PDT) Received: from spam1.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 9F67043FE9 for ; Mon, 8 Sep 2003 05:30:48 -0700 (PDT) (envelope-from lahaye@snu.ac.kr) Received: (snipe 3758 invoked by alias); 8 Sep 2003 12:57:18 -0000 Received: from lahaye@snu.ac.kr with Spamsniper2.0 (Processed in 0.051468 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 8 Sep 2003 12:57:18 -0000 X-RCPTTO: ceri@FreeBSD.org,freebsd-doc@FreeBSD.org,freebsd-questions@FreeBSD.org, Received: from snu.ac.kr ([147.46.44.183]) by sis1.snu.ac.kr (8.12.9/8.12.9) with ESMTP id h88CU3SZ296402; Mon, 8 Sep 2003 21:30:04 +0900 Message-ID: <3F5C7679.1080100@snu.ac.kr> Date: Mon, 08 Sep 2003 21:30:49 +0900 From: Rob Lahaye Organization: Seoul National University - South Korea User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030726 X-Accept-Language: en-us, ko-kr MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org, freebsd-doc@FreeBSD.org References: <3F5C3DC6.2010809@snu.ac.kr> <20030908092115.GD364@submonkey.net> In-Reply-To: <20030908092115.GD364@submonkey.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: removing swap space...only by reboot? A bug? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 12:30:54 -0000 X-List-Received-Date: Mon, 08 Sep 2003 12:30:54 -0000 Ceri Davies wrote: > On Mon, Sep 08, 2003 at 05:28:54PM +0900, Rob Lahaye wrote: > >>"man swapon" says: >> >>BUGS >> There is no way to stop paging and swapping on a device. It is >> therefore >> not possible to dismount swap devices which are mounted during system >> operation. >> >>Is that still a bug? > > > That depends on which version you are running. > If you have 4.x or 5.0 then you're out of luck, but a recent -current has > the swapctl command which does what you want. Thanks. So I'm out-of-luck with 4.8 :). I wonder if a brief note on this could go at the end of the "adding swap space" section in the handbook. Something like Removing swap space: for OSversion <= 5.0 only reboot can do otherwise swapctl command does it on a running system. Regards, Rob.