Subject: swap space
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Yeng-Chee Su <yenchee@Zeus.csie.nctu.edu.tw>
List: current-users
Date: 01/15/1994 18:13:25
  I would like to add swap space on NetBSD-current Jan 9.  Although the 
system reports sd0c has been added as swap space, the swapinfo give me
a floating exception error.  I found it's because the size is not added
into kernel and the swapinfo make a divided by zero error.  Here is my
configuration file and partition table.

# /dev/rsd0d:
type: SCSI
disk: MICROP2112
label: 
flags:
bytes/sector: 512
sectors/track: 77
tracks/cylinder: 15
sectors/cylinder: 1155
cylinders: 1760
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

5 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    61440   102400    4.2BSD     1024  8192    16   # (Cyl.   88*- 141*)
  b:    61440   163840      swap                        # (Cyl.  141*- 195*)
  c:   102400        0      swap                        # (Cyl.    0 - 88*)
  d:  2032800        0    unused        0     0         # (Cyl.    0 - 1759)
  e:  1807520   225280    4.2BSD     1024  8192    16   # (Cyl.  195*- 1759*)


machine         "i386"
#cpu            "I386_CPU"
cpu             "I486_CPU"
ident           GENERICAHA
timezone        - 8
maxusers        16
maxfdescs       2048
options         SWAPPAGER,VNODEPAGER,DEVPAGER
options         INET,ISOFS,NFSCLIENT,NFSSERVER,MFS
options         "COMPAT_43"
options         "TCP_COMPAT_42"
options         XSERVER,UCONSOLE
options         "DUMMY_NOPS"
options         "USER_LDT"
options         MSDOSFS
options         KERNFS
options         SCSI
#options                "MATH_EMULATE"
options         "COMPAT_NOMID"
options         "MACHINE_NONCONTIG"
options         QUOTA

config          netbsd  root on sd0 swap on sd0b and sd0c

controller      isa0
controller      wdc0    at isa? port "IO_WD1" bio irq 14 vector wdintr
disk            wd0     at wdc0 drive 0
disk            wd1     at wdc0 drive 1

controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk            fd0     at fdc0 drive 0
disk            fd1     at fdc0 drive 1

controller      aha0    at isa? port "IO_AHA0" bio irq 11 drq 5 vector ahaintr
disk            sd0     at aha0 flags 0 drive ?
disk            sd1     at aha0 flags 0 drive ?
disk            sd2     at aha0 flags 0 drive ?
disk            sd3     at aha0 flags 0 drive ?
tape            st0     at aha0 flags 1 drive ?
tape            st1     at aha0 flags 1 drive ?
disk            cd0     at aha0 flags 2 drive ?
disk            cd1     at aha0 flags 2 drive ?

controller      uha0    at isa? port "IO_UHA0" bio irq 11 drq 5 vector uhaintr
disk            sd0     at uha0 flags 0 drive ?
disk            sd1     at uha0 flags 0 drive ?
disk            sd2     at uha0 flags 0 drive ?
disk            sd3     at uha0 flags 0 drive ?
tape            st0     at uha0 flags 1 drive ?
tape            st1     at uha0 flags 1 drive ?
disk            cd0     at uha0 flags 2 drive ?
disk            cd1     at uha0 flags 2 drive ?


device          pc0     at isa? port "IO_KBD" tty irq 1 vector pcrint
device          npx0    at isa? port "IO_NPX" irq 13 vector npxintr
device          com0    at isa? port "IO_COM1" tty irq 4 vector comintr
device          com1    at isa? port "IO_COM2" tty irq 3 vector comintr
device          com2    at isa? port "IO_COM3" tty irq 5 vector comintr
device          com3    at isa? port "IO_COM4" tty irq 9 vector comintr

device          lpt0    at isa? port "IO_LPT3" tty irq 7 vector lptintr
device          lpa0    at isa? port "IO_LPT1" tty
device          lpa1    at isa? port "IO_LPT2" tty

device ed2 at isa? port 0x280 net irq 9 iomem 0xd0000 vector edintr
device ed1 at isa? port 0x250 net irq 9 iomem 0xd8000 vector edintr
device ed0 at isa? port 0x300 net irq 5 iomem 0xc8000 vector edintr
#device we0 at isa? port 0x280 net irq 9 iomem 0xd0000 iosiz 8192 vector weintr
#device ec0 at isa? port 0x250 net irq 9 iomem 0xd8000 iosiz 8192 vector ecintr
#device ne0 at isa? port 0x300 net irq 9 vector neintr
#device is0 at isa? port 0x320 net irq 10 drq 7 vector isintr

device          wt0     at isa? port 0x300 bio irq 5 drq 1 vector wtintr

pseudo-device   ether
pseudo-device   log
pseudo-device   loop
pseudo-device   pty     32
pseudo-device   sl      1
pseudo-device   speaker

pseudo-device   bpfilter        4


-- 
   ________________________________________________________________________
  /             National Chiao Tung University in Taiwan                 / \
 |  Name: Yeng-Chee Su              Dept:  Computer Engineering         |__/
 |  Phone: +886-35-783513           E-mail: yenchee@csie.nctu.edu.tw    |
 |  Address: 22, Alley 2, Lane 173, Gao Tsui Road, HsinChu, Taiwan 300  |___ 
  \______________________________________________________________________\__/

------------------------------------------------------------------------------