more on unix swap space problem
Guy Harris
guy at auspex.auspex.com
Wed May 3 17:05:17 AEST 1989
>The Question: is the :sw: entry in fstab truly needed,
Yes.
>or is the swap info compiled into the kernel?
Yes. (Probably.)
The problem is that in 4.xBSD's swapping code, as I remember, you have
to both
1) tell the kernel that it is to permit swapping on a particular
device when you build the kernel (so, in that sense, it's
compiled into the kernel, although you should be able to
reconfigure this without kernel source)
and
2) tell the kernel that it is to *use* a particular swap area
when the system comes up multi-user, which is done by putting
a ":sw:" entry in "fstab" and running "/etc/swapon" in one of
the "/etc/rc*" files ("/etc/swapon" does a "swapon" call to
turn swapping on for a particular partition). The only
exception is the *first* swapping area, which is built into
the kernel and automatically turned on when you boot.
I think SunOS 4.0 has lifted restriction 1), which is an improvement.
More information about the Comp.unix.questions
mailing list