Subject: Re: paging questions
To: None <>
From: Mike Long <>
List: current-users
Date: 03/13/1996 13:20:27
>Date: Fri, 08 Mar 1996 12:44:48 +0000
>From: Mika Nystrom <>

(No clue on the rest, but I can handle this:)

>Also, is there a way to swap to files (e.g., swapping to a file over NFS,
>or for that matter adding a swapfile in an FFS filesystem while the system
>is up without using bootp (does that even work?)?)

You can use vnd devices (See vnd(4), vnconfig(8)) to swap to files.
Make sure lines like the following are in your kernel config:

config		netbsd	root on sd0 swap on sd0 and vnd0
pseudo-device	vnd	4

Then something like this should work:

dd if=/dev/zero of=$SWAPFILE bs=1k count=$SWAPSIZE
vnconfig -c /dev/vnd0b $SWAPFILE
swapon /dev/vnd0b

I don't use NFS, but you may want to read diskless(8).
Mike Long <>     <URL:>
VLSI Design Engineer         finger for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA       (eq (opinion 'ADI) (opinion 'mike)) -> nil