Subject: Re: release swap?
To: Nbsd Help <netbsd-help@netbsd.org>
From: Bob Bernstein <rs@bernstein.providence.ri.us>
List: netbsd-help
Date: 10/30/2003 12:18:35
On Thu, 30 Oct 2003 10:37:18 +0100, Lubomir Sedlacik said:

>    swapctl -d path
>  
>    -d   The -d option removes the listed path from the kernel's list of
>         swap devices or files.

Ah, and thank you for being kind enough to omit the seemingly mandatory
(in some discussion areas) RTFM.

So these two commands together seem to do the job of zeroing out the
size of the "used" swap file:

# swapctl -d /path/to/swap/device
# swapctl -A


-- 
Bob Bernstein