*BSD News Article 14004


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!not-for-mail
From: burgess@hrd769.brooks.af.mil (Dave Burgess)
Newsgroups: comp.os.386bsd.questions
Subject: Swap space questions.
Date: 4 Apr 1993 16:50:22 -0500
Organization: Armstrong Lab MIS, Brooks AFB TX
Lines: 36
Message-ID: <1pnl6uINN1ru@hrd769.brooks.af.mil>
References: <9309418.24038@mulga.cs.mu.OZ.AU> <1pndsgINNspo@hrd769.brooks.af.mil>
NNTP-Posting-Host: hrd769.brooks.af.mil

I am working on section 2 of the new FAQ.  The old FAQ has a section about
the system's use of swap space.

1.  Are Bill Jolitz's statements still correct about adding swap space
to the kernel?

>To add swap space, the device needs to be compiled into the kernel
>in advance, even if you don't plan to use it. It reserves space in
>it's swap space map for this (so eventually it can interleave them).

Ok, that did it.  Thanks.  I am now able to have the swap
partition on the second drive added with swapon. (at least
the command completes with no errors.  Any way to actually
see if the system knows about the second swap partition?)

in /sys/compile/YOUR_SYSTEM_NAME/swap386bsd.c,
duplicate the makedev(0,1) line in the swdevt struct
and change the 1 to a 9.
--------------------------------------------------------------------

The swdevt struct fix is Randy's, the quoted material Bill's.

2.  Are these fixed in the patchkit?

3.  Can someone send me a brief list of the things that have to change to
get the swap to work after 'install' is complete?  I have written a short
description, but feel like I missed something.

4.  Is it possible for a file to be used as swap space?

Your FAQ maintainer.
-- 
------
TSgt Dave Burgess
NCOIC AL/Management Information Systems Office
Brooks AFB, TX