]> git.saurik.com Git - apple/xnu.git/blob - bsd/conf/MASTER
xnu-1504.15.3.tar.gz
[apple/xnu.git] / bsd / conf / MASTER
1 #
2 # Mach Operating System
3 # Copyright (c) 1986 Carnegie-Mellon University
4 # All rights reserved. The CMU software License Agreement
5 # specifies the terms and conditions for use and redistribution.
6 #
7 #######################################################################
8 #
9 # Master machine independent configuration file.
10 #
11 # Specific configuration files are created based on this and
12 # the machine specific master file using the doconf script.
13 #
14 # Any changes to the master configuration files will affect all
15 # other configuration files based upon it.
16 #
17 #######################################################################
18 #
19 # To build a configuration, execute "doconf <configuration>."
20 # Configurations are specified in the "Configurations:" section
21 # of the MASTER and MASTER.* files as follows:
22 #
23 # <configuration> = [ <attribute0> <attribute1> ... <attributeN> ]
24 #
25 # Lines in the MASTER and MASTER.* files are selected based on
26 # the attribute selector list, found in a comment at the end of
27 # the line. This is a list of attributes separated by commas.
28 # The "!" operator selects the line if none of the attributes are
29 # specified.
30 #
31 # For example:
32 #
33 # <foo,bar> selects a line if "foo" or "bar" are specified.
34 # <!foo,bar> selects a line if neither "foo" nor "bar" is
35 # specified.
36 #
37 # Lines with no attributes specified are selected for all
38 # configurations.
39 #
40 #######################################################################
41 #
42 # STANDARD CONFIGURATION OPTIONS (select any combination)
43 #
44 # debug = extra kernel level debugging support
45 # mach = Mach support
46 #
47 # EXPERIMENTAL CONFIGURATION OPTIONS (select any combination, carefully)
48 #
49 # host = host resource control support
50 #
51 # MULTI-PROCESSOR CONFIGURATION (select at most one)
52 #
53 # multi16 = enable 16 multi-processors
54 # multi32 = enable 32 multi-processors
55 # multi48 = enable 48 multi-processors
56 #
57 # SYSTEM SIZE CONFIGURATION (select exactly one)
58 #
59 # xlarge = extra large scale system configuration
60 # large = large scale system configuration
61 # medium = medium scale system configuration
62 # small = small scale system configuration
63 # xsmall = extra small scale system configuration
64 # bsmall = special extra small scale system configuration
65 #
66 #######################################################################
67 #
68 # Standard Mach Research Configurations:
69 # -------- ---- -------- ---------------
70 #
71 # These are the default configurations that can be used by most sites.
72 # They are used internally by the Mach project.
73 #
74 # MACH = [mach multi16 medium debug]
75 #
76 #######################################################################
77 #
78 ident NeXT
79
80 # obsolete timezone spec
81 options TIMEZONE=0, PST=0
82
83 options QUOTA # # <quota>
84 options INET # # <inet>
85 options ABSOLUTETIME_SCALAR_TYPE
86 options NEW_VM_CODE # # <newvm>
87 options OLD_VM_CODE # # <!newvm>
88 options HW_AST # Hardware ast support # <hw_ast>
89 options HW_FOOTPRINT # Cache footprint support # <hw_foot>
90 options CONFIG_LCTX # Login Context
91
92 options MACH # Standard Mach features # <mach>
93 options MACH_ASSERT # Compile in assertions # <mach_assert>
94 options MACH_COMPAT # Vendor syscall compatibility # <mach>
95 options MACH_COUNTERS # counters # <count>
96 options MACH_DEBUG # IPC debugging interface # <mdebug>
97 options MACH_FASTLINK # Fast symbolic links
98 options MACH_FIXPRI # Fixed priority threads # <fixpri>
99 options MACH_HOST # Mach host (resource alloc.) # <host>
100 options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat>
101 options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug>
102 options MACH_IPC_TEST # Testing code/printfs # <ipc_test>
103 options MACH_LDEBUG # Sanity-check simple locking # <test>
104 options MACH_NP # Mach IPC support # <np>
105 options MACH_NBC # No buffer cache # <nbc>
106 options MACH_NET # Fast network access # <mach_net>
107 options MACH_XP # external pager support # <xp>
108 options NORMA_IPC # NORMA IPC support # <norma_ipc>
109 options NORMA_DEVICE # NORMA unified device names # <norma_device>
110 options NORMA_VM # NORMA virtual memory support # <norma_vm>
111 options NORMA_TASK # NORMA task support # <norma_task>
112 options NORMA_ETHER # NORMA across ethernet # <norma_ether>
113 options SIMPLE_CLOCK # don't assume fixed tick # <simple_clock>
114 options XPR_DEBUG # kernel tracing # <xpr_debug>
115 options KDEBUG # kernel tracing # <kdebug>
116 options DDM_DEBUG # driverkit-style tracing # <ddm_debug>
117 options MACH_OLD_VM_COPY # Old vm_copy technology # <!newvm>
118 options NO_DIRECT_RPC # for untyped mig servers #
119 options IPX # ipx stack # <ipx>
120 options EON # # <eon>
121 options ISO # ISO stack # <iso>
122 options LLC # 802.2 support # <llc>
123 options LOOP # loopback support # <loop>
124 options MROUTING # multicast routing # <mrouting>
125 options ROUTING # routing # <routing>
126 options NETMIBS # # <netmibs>
127 options VLAN # # <vlan>
128 options BOND # # <bond>
129 options PF # Packet Filter # <pf>
130 options PF_PKTHDR # PF tag inside mbuf pkthdr # <pf_pkthdr>
131 options PKT_PRIORITY # Packet priority support # <pkt_priority>
132 options PFLOG # PF log interface # <pflog>
133 options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
134 options IPFLOW # IP fast forwarding # <ipflow>
135 options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
136 options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
137 options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
138 options DUMMYNET # dummynet support # <dummynet>
139 options TRAFFIC_MGT # traffic management support # <traffic_mgt>
140 options IPFW2 # IP firewall (new version) # <ipfw2>
141 options MULTICAST # Internet Protocol Class-D $
142 options TCPDEBUG # TCP debug # <tcpdebug>
143 options RANDOM_IP_ID # random (not sequential) ip ids # <randomipid>
144 options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
145 options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
146 options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
147 options IFNET_ROUTE_REFCNT # count route references to ifnet # <ifnet_route_refcnt>
148 options SYSV_SEM # SVID semaphores # <sysv_sem>
149 options SYSV_MSG # SVID messages # <sysv_msg>
150 options SYSV_SHM # SVID shared mem # <sysv_shm>
151 options PSYNCH # pthread synch # <psynch>
152 options PANIC_INFO # want kernel panic info # <panic_info>
153 options DEVELOPMENT # dev kernel # <development>
154
155 # secure_kernel - secure kernel from user programs
156 options SECURE_KERNEL # <secure_kernel>
157
158 options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
159
160 #
161 # 4.4 general kernel
162 #
163 options SOCKETS # socket support # <inet, inet6, netat>
164 options DIAGNOSTIC # diagnostics # <diagnostic>
165 options CONFIG_DTRACE # dtrace support # <config_dtrace>
166 options GPROF # build profiling # <profile>
167 options SENDFILE # sendfile # <sendfile>
168 options NETWORKING # networking layer # <inet, inet6, netat>
169 options CONFIG_FSE # file system events # <config_fse>
170 options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
171 options CONFIG_SOWUPCALL # SB_UPCALL on sowwakeup # <config_sowupcall>
172 options CONFIG_MBUF_NOEXPAND # limit mbuf expansion # <config_mbuf_noexpand>
173 options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
174 options CONFIG_MBUF_TAGS_MALLOC # use malloc for tags # <config_mbuf_tags_malloc>
175 options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # <config_force_out_ifp>
176 options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # <config_ifef_nowindowscale>
177
178 options CONFIG_WORKQUEUE # <config_workqueue>
179
180
181 #
182 # 4.4 filesystems
183 #
184 options FFS # Fast Filesystem Support # <ffs>
185 options HFS # HFS/HFS+ support # <hfs>
186 options FIFO # fifo support # <fifo>
187 options UNION # union_fs support # <union>
188 options FDESC # fdesc_fs support # <fdesc>
189 options DEVFS # devfs support # <devfs>
190 options JOURNALING # journaling support # <journaling>
191 options HFS_COMPRESSION # hfs compression # <hfs_compression>
192 options CONFIG_HFS_TRIM # HFS trims unused blocks # <config_hfs_trim>
193
194 #
195 # file system features
196 #
197 options QUOTA # file system quotas # <quota>
198 options REV_ENDIAN_FS # Reverse Endian FS # <revfs>
199 options NAMEDSTREAMS # named stream vnop support # <namedstreams>
200 options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
201 options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
202
203 #
204 # NFS support
205 #
206 options NFSCLIENT # Be an NFS client # <nfsclient>
207 options NFSSERVER # Be an NFS server # <nfsserver>
208
209 #
210 # AppleTalk Support
211 #
212 options NETAT # AppleTalk support # <netat>
213 #options AURP_SUPPORT # AppleTalk Update Routing # <netat>
214
215 #
216 # Machine Independent Apple Features
217 #
218 options KERNSERV # kernel_server intarface # <kernserv>
219 options MALLOCDEBUG # kernel malloc debugging # <mallocdebug>
220 options DRIVERKIT # driverkit support # <driverkit>
221 options KERNOBJC # Objective-C support # <kernobjc>
222 options OBJCTEST # Objc internal test # <objctest>
223 options KERNEL_STACK # MI kernel stack support # <kernstack>
224 profile # build a profiling kernel # <profile>
225
226 #
227 # Point-to-Point Protocol support
228 #
229 pseudo-device ppp 2 # <ppp>
230
231 #
232 # IPv6 Support
233 #
234 options "INET6" # kernel IPv6 Support # <inet6>
235 options IPSEC # IP security # <ipsec>
236 options IPSEC_ESP # IP security # <ipsec>
237 options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
238 options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
239 #options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
240
241 pseudo-device gif 1 # <gif>
242 pseudo-device dummy 2 # <dummy>
243 pseudo-device faith 1 # <faith>
244 pseudo-device stf 1 # <stf>
245
246 options crypto # <ipsec,crypto>
247 options ALLCRYPTO # <xlarge,large,medium>
248 options randomipid # <inet,randomipid>
249
250 options ZLIB # inflate/deflate support # <zlib>
251
252
253 makeoptions LIBDRIVER = "libDriver_kern.o" # <libdriver>
254 makeoptions LIBOBJC = "libkobjc.o" # <kernobjc>
255
256 maxusers 64 # <xlarge>
257 maxusers 50 # <large>
258 maxusers 32 # <medium>
259 maxusers 16 # <small>
260 maxusers 8 # <xsmall>
261 maxusers 2 # <bsmall>
262
263 #
264 # Multi-processor selection
265 #
266 pseudo-device cpus 64 # <multi64>
267 pseudo-device cpus 32 # <multi32>
268 pseudo-device cpus 16 # <multi16>
269 pseudo-device cpus 2 # <multi2>
270 pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
271
272 #
273 # configurable kernel event related resources
274 #
275 options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
276 options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
277 options CONFIG_KN_HASHSIZE=20 # <bsmall>
278
279 #
280 # configurable vfs related resources
281 # CONFIG_VNODES - used to pre allocate vnode related resources
282 # CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes
283 # CONFIG_NC_HASH - name cache hash table allocation
284 # CONFIG_VFS_NAMES - name strings
285 #
286 # 263168 magic number for medium CONFIG_VNODES is based on memory
287 # Number vnodes is (memsize/64k) + 1024
288 # This is the calculation that is used by launchd in tiger
289 # we are clipping the max based on 16G
290 # ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
291
292 options CONFIG_VNODES=263168 # <large,xlarge>
293 options CONFIG_VNODES=263168 # <medium>
294 options CONFIG_VNODES=10240 # <small>
295 options CONFIG_VNODES=1024 # <xsmall>
296 options CONFIG_VNODES=750 # <bsmall>
297
298 options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
299 options CONFIG_VNODE_FREE_MIN=300 # <medium>
300 options CONFIG_VNODE_FREE_MIN=200 # <small>
301 options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
302 options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
303
304 options CONFIG_NC_HASH=5120 # <large,xlarge>
305 options CONFIG_NC_HASH=4096 # <medium>
306 options CONFIG_NC_HASH=2048 # <small,xsmall>
307 options CONFIG_NC_HASH=1024 # <bsmall>
308
309 options CONFIG_VFS_NAMES=5120 # <large,xlarge>
310 options CONFIG_VFS_NAMES=4096 # <medium>
311 options CONFIG_VFS_NAMES=3072 # <small,xsmall>
312 options CONFIG_VFS_NAMES=2048 # <bsmall>
313
314 options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
315 options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
316
317 #
318 # configurable kauth credential related resources
319 #
320 options KAUTH_CRED_PRIMES_COUNT=7 # <medium,large,xlarge>
321 options KAUTH_CRED_PRIMES_COUNT=3 # <bsmall,xsmall,small>
322
323 options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # <medium,large,xlarge>
324 options KAUTH_CRED_PRIMES="{5, 17, 97}" # <bsmall,xsmall,small>
325
326 #
327 # configurable options for minumum number of buffers for kernel memory
328 #
329 options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
330 options CONFIG_MIN_NBUF=128 # <small>
331 options CONFIG_MIN_NBUF=80 # <xsmall>
332 options CONFIG_MIN_NBUF=64 # <bsmall>
333
334 options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
335 options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
336 options CONFIG_MIN_NIOBUF=32 # <bsmall>
337
338 #
339 # set maximum space used for packet buffers
340 #
341 options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
342 options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
343 options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
344
345 #
346 # set maximum space used for packet buffers
347 #
348 options CONFIG_USESOCKTHRESHOLD=1 # <large,xlarge,medium>
349 options CONFIG_USESOCKTHRESHOLD=0 # <bsmall,xsmall,small>
350
351 #
352 # Configure size of TCP hash table
353 #
354 options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
355 options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
356
357 #
358 # configurable async IO options
359 # CONFIG_AIO_MAX - system wide limit of async IO requests.
360 # CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
361 # CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
362 #
363 options CONFIG_AIO_MAX=360 # <xlarge>
364 options CONFIG_AIO_MAX=180 # <large>
365 options CONFIG_AIO_MAX=90 # <medium>
366 options CONFIG_AIO_MAX=45 # <small>
367 options CONFIG_AIO_MAX=20 # <xsmall>
368 options CONFIG_AIO_MAX=10 # <bsmall>
369
370 options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
371 options CONFIG_AIO_PROCESS_MAX=32 # <large>
372 options CONFIG_AIO_PROCESS_MAX=16 # <medium>
373 options CONFIG_AIO_PROCESS_MAX=12 # <small>
374 options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
375 options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
376
377 options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
378 options CONFIG_AIO_THREAD_COUNT=8 # <large>
379 options CONFIG_AIO_THREAD_COUNT=4 # <medium>
380 options CONFIG_AIO_THREAD_COUNT=3 # <small>
381 options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
382
383 #
384 # configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
385 # sync with osfmk/conf/MASTER until we fix the config system...) todo XXX
386 #
387 options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
388 options CONFIG_THREAD_MAX=1536 # <small,xsmall>
389 options CONFIG_THREAD_MAX=1024 # <bsmall>
390
391 options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
392 options CONFIG_MAXVIFS=16 # <small,xsmall>
393 options CONFIG_MAXVIFS=2 # <bsmall>
394
395 options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
396 options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
397 options CONFIG_MFCTBLSIZ=16 # <bsmall>
398
399 #
400 # configurable kernel - use these options to strip strings from panic
401 # and printf calls.
402 # no_panic_str - saves around 50K of kernel footprint.
403 # no_printf_str - saves around 45K of kernel footprint.
404 #
405 options CONFIG_NO_PANIC_STRINGS # <no_panic_str>
406 options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
407 options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
408
409 #
410 # configurable kernel - general switch to say we are building for an
411 # embedded device
412 #
413 options CONFIG_EMBEDDED # <config_embedded>
414
415 # only execute signed code. Hang this off config_embedded since there's
416 # nothing more appropriate right now
417 #
418 options CONFIG_ENFORCE_SIGNED_CODE # <config_embedded>
419
420 # support dynamic signing of code
421 #
422 options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
423
424 #
425 # code decryption... used on embedded for app protection
426 # must be set in all the bsd/conf and osfmk/conf MASTER files
427 #
428 options CONFIG_CODE_DECRYPTION # <config_embedded>
429
430 #
431 # User Content Protection, used on embedded
432 #
433
434 options CONFIG_PROTECT # <config_protect>
435
436
437 #
438 # Ethernet (ARP)
439 #
440 pseudo-device ether # <networking,inet,inet6,netat>
441 #
442 # Network loopback device
443 #
444 pseudo-device loop # <networking,inet,inet6,netat>
445 #
446 # UCB pseudo terminal service
447 #
448 pseudo-device pty 512 init pty_init # <xlarge>
449 pseudo-device pty 256 init pty_init # <large>
450 pseudo-device pty 128 init pty_init # <medium>
451 pseudo-device pty 48 init pty_init # <small>
452 pseudo-device pty 16 init pty_init # <xsmall>
453 pseudo-device pty 8 init pty_init # <bsmall>
454 #
455 # Cloning pseudo terminal service
456 #
457 pseudo-device ptmx 1 init ptmx_init
458
459 #
460 # vnode device
461 #
462 pseudo-device vndevice 16 init vndevice_init # <xlarge>
463 pseudo-device vndevice 8 init vndevice_init # <large>
464 pseudo-device vndevice 4 init vndevice_init # <medium>
465 pseudo-device vndevice 3 init vndevice_init # <small>
466 pseudo-device vndevice 2 init vndevice_init # <bsmall>
467
468 #
469 # memory device
470 pseudo-device mdevdevice 1 init mdevinit
471
472 #
473 #
474 # packet filter device
475 #
476 pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6,netat>
477
478 #
479 # fsevents device
480 pseudo-device fsevents 1 init fsevents_init # <config_fse>
481
482 #
483 # shim to "linux" mach disk drivers (mach drivers must also be turned on)
484 #
485 # now using iokit disk shim, this is code is obsolete
486 #pseudo-device diskshim
487
488 pseudo-device random 1 init random_init
489 pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
490 pseudo-device helper 1 init helper_init # <config_dtrace>
491 pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
492 pseudo-device sdt 1 init sdt_init # <config_dtrace>
493 pseudo-device systrace 1 init systrace_init # <config_dtrace>
494 pseudo-device fbt 1 init fbt_init # <config_dtrace>
495 pseudo-device profile_prvd 1 init profile_init # <config_dtrace>
496