Use balloc to extend Ifile.
[unix-history] / usr / src / usr.sbin / config / SMM.doc / 5.t
CommitLineData
3edcb7c8
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
dc395bbe 3.\"
3edcb7c8
KB
4.\" %sccs.include.redist.roff%
5.\"
6.\" @(#)5.t 6.3 (Berkeley) %G%
dc395bbe 7.\"
57349e41
MK
8.\".ds RH "Sample Configuration Files
9.ne 2i
10.NH
11SAMPLE CONFIGURATION FILES
dc395bbe
KM
12.PP
13In this section we will consider how to configure a
14sample VAX-11/780 system on which the hardware can be
15reconfigured to guard against various hardware mishaps.
16We then study the rules needed to configure a VAX-11/750
17to run in a networking environment.
18.NH 2
19VAX-11/780 System
20.PP
21Our VAX-11/780 is configured with hardware
22recommended in the document ``Hints on Configuring a VAX for 4.2BSD''
23(this is one of the high-end configurations).
24Table 1 lists the pertinent hardware to be configured.
25.DS B
26.TS
27box;
28l | l | l | l | l
29l | l | l | l | l.
30Item Vendor Connection Name Reference
31_
32cpu DEC VAX780
33MASSBUS controller Emulex nexus ? mba0 hp(4)
34disk Fujitsu mba0 hp0
35disk Fujitsu mba0 hp1
36MASSBUS controller Emulex nexus ? mba1
37disk Fujitsu mba1 hp2
38disk Fujitsu mba1 hp3
39UNIBUS adapter DEC nexus ?
40tape controller Emulex uba0 tm0 tm(4)
41tape drive Kennedy tm0 te0
42tape drive Kennedy tm0 te1
43terminal multiplexor Emulex uba0 dh0 dh(4)
44terminal multiplexor Emulex uba0 dh1
45terminal multiplexor Emulex uba0 dh2
46.TE
47.DE
48.ce
49Table 1. VAX-11/780 Hardware support.
50.LP
51We will call this machine ANSEL and construct a configuration
52file one step at a time.
53.PP
54The first step is to fill in the global configuration parameters.
55The machine is a VAX, so the
56.I "machine type"
57is ``vax''. We will assume this system will
58run only on this one processor, so the
59.I "cpu type"
60is ``VAX780''. The options are empty since this is going to
61be a ``vanilla'' VAX. The system identifier, as mentioned before,
57349e41 62is ``ANSEL,'' and the maximum number of users we plan to support is
dc395bbe
KM
63about 40. Thus the beginning of the configuration file looks like
64this:
65.DS
66.ta 1.5i 2.5i 4.0i
67#
68# ANSEL VAX (a picture perfect machine)
69#
70machine vax
71cpu VAX780
72timezone 8 dst
73ident ANSEL
74maxusers 40
75.DE
76.PP
77To this we must then add the specifications for three
78system images. The first will be our standard system with the
79root on ``hp0'' and swapping on the same drive as the root.
80The second will have the root file system in the same location,
81but swap space interleaved among drives on each controller.
82Finally, the third will be a generic system,
83to allow us to boot off any of the four disk drives.
84.DS
85.ta 1.5i 2.5i
86config vmunix root on hp0
87config hpvmunix root on hp0 swap on hp0 and hp2
88config genvmunix swap generic
89.DE
90.PP
91Finally, the hardware must be specified. Let us first just try
92transcribing the information from Table 1.
93.DS
94.ta 1.5i 2.5i 4.0i
95controller mba0 at nexus ?
96disk hp0 at mba0 disk 0
97disk hp1 at mba0 disk 1
98controller mba1 at nexus ?
99disk hp2 at mba1 disk 2
100disk hp3 at mba1 disk 3
101controller uba0 at nexus ?
102controller tm0 at uba0 csr 0172520 vector tmintr
103tape te0 at tm0 drive 0
104tape te1 at tm0 drive 1
105device dh0 at uba0 csr 0160020 vector dhrint dhxint
106device dm0 at uba0 csr 0170500 vector dmintr
107device dh1 at uba0 csr 0160040 vector dhrint dhxint
108device dh2 at uba0 csr 0160060 vector dhrint dhxint
109.DE
110.LP
111(Oh, I forgot to mention one panel of the terminal multiplexor
112has modem control, thus the ``dm0'' device.)
113.PP
114This will suffice, but leaves us with little flexibility. Suppose
115our first disk controller were to break. We would like to recable the
116drives normally on the second controller so that all our disks could
117still be used without reconfiguring the system. To do this we wildcard
118the MASSBUS adapter connections and also the slave numbers. Further,
119we wildcard the UNIBUS adapter connections in case we decide some time
120in the future to purchase another adapter to offload the single UNIBUS
121we currently have. The revised device specifications would then be:
122.DS
123.ta 1.5i 2.5i 4.0i
124controller mba0 at nexus ?
125disk hp0 at mba? disk ?
126disk hp1 at mba? disk ?
127controller mba1 at nexus ?
128disk hp2 at mba? disk ?
129disk hp3 at mba? disk ?
130controller uba0 at nexus ?
131controller tm0 at uba? csr 0172520 vector tmintr
132tape te0 at tm0 drive 0
133tape te1 at tm0 drive 1
134device dh0 at uba? csr 0160020 vector dhrint dhxint
135device dm0 at uba? csr 0170500 vector dmintr
136device dh1 at uba? csr 0160040 vector dhrint dhxint
137device dh2 at uba? csr 0160060 vector dhrint dhxint
138.DE
139.LP
140The completed configuration file for ANSEL is shown in Appendix C.
141.NH 2
142VAX-11/750 with network support
143.PP
144Our VAX-11/750 system will be located on two 10Mb/s Ethernet
145local area networks and also the DARPA Internet. The system
146will have a MASSBUS drive for the root file system and two
147UNIBUS drives. Paging is interleaved among all three drives.
148We have sold our standard DEC terminal multiplexors since this
149machine will be accessed solely through the network. This
150machine is not intended to have a large user community, it
151does not have a great deal of memory. First the global parameters:
152.DS
153.ta 1.5i 2.5i 4.0i
154#
155# UCBVAX (Gateway to the world)
156#
157machine vax
158cpu "VAX780"
159cpu "VAX750"
160ident UCBVAX
161timezone 8 dst
162maxusers 32
163options INET
57349e41 164options NS
dc395bbe
KM
165.DE
166.PP
167The multiple cpu types allow us to replace UCBVAX with a
168more powerful cpu without reconfiguring the system. The
169value of 32 given for the maximum number of users is done to
170force the system data structures to be over-allocated. That
171is desirable on this machine because, while it is not expected
172to support many users, it is expected to perform a great deal
57349e41
MK
173of work.
174The ``INET'' indicates that we plan to use the
175DARPA standard Internet protocols on this machine,
176and ``NS'' also includes support for Xerox NS protocols.
177Note that unlike 4.2BSD configuration files,
178the network protocol options do not require corresponding pseudo devices.
dc395bbe 179.PP
57349e41 180The system images and disks are configured next.
dc395bbe
KM
181.DS
182.ta 1.5i 2.5i 4.0i
183config vmunix root on hp swap on hp and rk0 and rk1
184config upvmunix root on up
185config hkvmunix root on hk swap on rk0 and rk1
186
187controller mba0 at nexus ?
188controller uba0 at nexus ?
189disk hp0 at mba? drive 0
190disk hp1 at mba? drive 1
191controller sc0 at uba? csr 0176700 vector upintr
192disk up0 at sc0 drive 0
193disk up1 at sc0 drive 1
194controller hk0 at uba? csr 0177440 vector rkintr
195disk rk0 at hk0 drive 0
196disk rk1 at hk0 drive 1
197.DE
198.PP
199UCBVAX requires heavy interleaving of its paging area to keep up
200with all the mail traffic it handles. The limiting factor on this
201system's performance is usually the number of disk arms, as opposed
202to memory or cpu cycles. The extra UNIBUS controller, ``sc0'',
203is in case the MASSBUS controller breaks and a spare controller
204must be installed (most of our old UNIBUS controllers have been
205replaced with the newer MASSBUS controllers, so we have a number
206of these around as spares).
207.PP
57349e41
MK
208Finally, we add in the network devices.
209Pseudo terminals are needed to allow users to
dc395bbe 210log in across the network (remember the only hardwired terminal
57349e41
MK
211is the console).
212The software loopback device is used for on-machine communications.
213The connection to the Internet is through
dc395bbe
KM
214an IMP, this requires yet another
215.I pseudo-device
216(in addition to the actual hardware device used by the
217IMP software). And, finally, there are the two Ethernet devices.
218These use a special protocol, the Address Resolution Protocol (ARP),
219to map between Internet and Ethernet addresses. Thus, yet another
220.I pseudo-device
221is needed. The additional device specifications are show below.
222.DS
223.ta 1.5i 2.5i 4.0i
dc395bbe 224pseudo-device pty
dc395bbe
KM
225pseudo-device loop
226pseudo-device imp
227device acc0 at uba? csr 0167600 vector accrint accxint
228pseudo-device ether
229device ec0 at uba? csr 0164330 vector ecrint eccollide ecxint
230device il0 at uba? csr 0164000 vector ilrint ilcint
231.DE
232.LP
233The completed configuration file for UCBVAX is shown in Appendix C.
234.NH 2
235Miscellaneous comments
236.PP
237It should be noted in these examples that neither system was
238configured to use disk quotas or the 4.1BSD compatibility mode.
239To use these optional facilities, and others, we would probably
240clean out our current configuration, reconfigure the system, then
241recompile and relink the system image(s). This could, of course,
242be avoided by figuring out which relocatable object files are
243affected by the reconfiguration, then reconfiguring and recompiling
244only those files affected by the configuration change. This technique
245should be used carefully.