From owner-freebsd-hackers Sun Mar 19 4:57:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from nscache2.x-treme.gr (mail1.x-treme.gr [212.120.196.23]) by hub.freebsd.org (Postfix) with ESMTP id A3B3D37B5C0 for ; Sun, 19 Mar 2000 04:57:04 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat16.x-treme.gr [212.120.197.208]) by nscache2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id OAA22120; Sun, 19 Mar 2000 14:56:55 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id LAA59269; Sun, 19 Mar 2000 11:24:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 19 Mar 2000 11:24:38 +0200 From: Giorgos Keramidas To: Micke Cc: hackers@FreeBSD.ORG Subject: Re: swap Message-ID: <20000319112438.A55921@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <000701bf9136$252e0e20$0201a0c0@micke> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000701bf9136$252e0e20$0201a0c0@micke>; from micke@swebase.com on Sun, Mar 19, 2000 at 01:00:31AM +0100 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 19, 2000 at 01:00:31AM +0100, Micke wrote: > How do i check the status of my new swap it isn't showing in top or in > pstat -s > > I have done the following > > cd /dev sh ./MAKEDEV vn0 > > create a swapfile (/usr/swap0) > > dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 > > set proper permissions on (/usr/swap0) > > chmod 0600 /usr/swap0 > > enable the swap file in /etc/rc.conf > > swapfile="/usr/swap0" # Set to name of swapfile ... Uhm, you should have vnodes enabled into your kernel, because the commands executed by the /etc/rc script, when swapfile is set to something not null, are: vnconfig /dev/vn0b ${swapfile} && swapon /dev/vn0b I'll have a look at the Handbook and see if it mentions vnconfig at the proper section, and let the -doc guys know about it if it's necessary. - Giorgos Keramidas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message