From owner-freebsd-doc Sun Jan 27 10:20:15 2002 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 92C3837B402 for ; Sun, 27 Jan 2002 10:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0RIK1N83972; Sun, 27 Jan 2002 10:20:01 -0800 (PST) (envelope-from gnats) Received: from Kain.sumuk.de (Kain.sumuk.de [213.221.86.114]) by hub.freebsd.org (Postfix) with ESMTP id 0312D37B400 for ; Sun, 27 Jan 2002 10:17:59 -0800 (PST) Received: from Moses.earth.sol (Moses.earth.sol [192.168.1.1]) by Kain.sumuk.de (8.11.6/8.11.5) with ESMTP id g0RIHv912664 for ; Sun, 27 Jan 2002 19:17:57 +0100 (CET) (envelope-from martin@sumuk.de) Received: (from vincent@localhost) by Moses.earth.sol (8.11.6/8.11.6) id g0RIHu240014; Sun, 27 Jan 2002 19:17:56 +0100 (CET) (envelope-from vincent) Message-Id: <200201271817.g0RIHu240014@sumuk.de> Date: Sun, 27 Jan 2002 19:17:56 +0100 (CET) From: Martin Heinen Reply-To: Martin Heinen To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/34344: [PATCH] Warp 'Creating a Swapfile' in Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34344 >Category: docs >Synopsis: [PATCH] Warp 'Creating a Swapfile' in >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 27 10:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Martin Heinen >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD Moses.earth.sol 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Dec 22 07:35:30 CET 2001 toor@Moses.earth.sol:/usr/obj/usr/src/sys/MOSES i386 >Description: The section 'Adding Swap Space' describes how to create swapfiles. This seems to be very important information, so I wrapped this into an . If the patch gets committed, I'll fix whitespace damage done with another patch. >How-To-Repeat: Read the section on Adding Swap Space in Configuration and Tuning >Fix: Index: chapter.sgml =================================================================== RCS file: /u/cvs/doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v retrieving revision 1.37 diff -u -r1.37 chapter.sgml --- chapter.sgml 23 Jan 2002 11:59:32 -0000 1.37 +++ chapter.sgml 27 Jan 2002 17:54:40 -0000 @@ -1156,44 +1156,49 @@ /usr/swap0. You can use any name you want, of course. - First, be certain that your kernel configuration includes - the vnode driver. It is not in recent versions of - GENERIC. - - pseudo-device vn 1 #Vnode driver (turns a file into a device) + + Creating a Swapfile + + Be certain that your kernel configuration includes + the vnode driver. It is not in recent versions of + GENERIC. + + pseudo-device vn 1 #Vnode driver (turns a file into a device) + + - create a vn-device + Create a vn-device: &prompt.root; cd /dev &prompt.root; sh MAKEDEV vn0 - create a swapfile (/usr/swap0) + Create a swapfile (/usr/swap0): &prompt.root; dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 - set proper permissions on (/usr/swap0) + Set proper permissions on (/usr/swap0) &prompt.root; chmod 0600 /usr/swap0 - enable the swap file in /etc/rc.conf + Enable the swap file in /etc/rc.conf: swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. - reboot the machine + Reboot the machine or to enable the swap file immediately, + type: + + &prompt.root; vnconfig -e /dev/vn0b /usr/swap0 swap - - To enable the swap file immediately, type - - &prompt.root; vnconfig -e /dev/vn0b /usr/swap0 swap + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message