]> git.saurik.com Git - apple/xnu.git/blame - bsd/conf/MASTER
xnu-1228.tar.gz
[apple/xnu.git] / bsd / conf / MASTER
CommitLineData
1c79356b
A
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#
1c79356b 49# host = host resource control support
1c79356b
A
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
2d21ac55 64# bsmall = special extra small scale system configuration
1c79356b
A
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#
78ident NeXT
79
80# obsolete timezone spec
81options TIMEZONE=0, PST=0
82
2d21ac55
A
83options QUOTA # # <quota>
84options INET # # <inet>
0b4e3aa0 85options ABSOLUTETIME_SCALAR_TYPE
1c79356b
A
86options NEW_VM_CODE # # <newvm>
87options OLD_VM_CODE # # <!newvm>
88options HW_AST # Hardware ast support # <hw_ast>
89options HW_FOOTPRINT # Cache footprint support # <hw_foot>
2d21ac55
A
90options CONFIG_LCTX # Login Context
91
1c79356b 92options MACH # Standard Mach features # <mach>
2d21ac55 93options MACH_ASSERT # Compile in assertions # <mach_assert>
1c79356b
A
94options MACH_COMPAT # Vendor syscall compatibility # <mach>
95options MACH_COUNTERS # counters # <count>
96options MACH_DEBUG # IPC debugging interface # <mdebug>
97options MACH_FASTLINK # Fast symbolic links
98options MACH_FIXPRI # Fixed priority threads # <fixpri>
99options MACH_HOST # Mach host (resource alloc.) # <host>
100options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat>
101options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug>
102options MACH_IPC_TEST # Testing code/printfs # <ipc_test>
103options MACH_LDEBUG # Sanity-check simple locking # <test>
104options MACH_NP # Mach IPC support # <np>
105options MACH_NBC # No buffer cache # <nbc>
1c79356b
A
106options MACH_NET # Fast network access # <mach_net>
107options MACH_XP # external pager support # <xp>
108options NORMA_IPC # NORMA IPC support # <norma_ipc>
109options NORMA_DEVICE # NORMA unified device names # <norma_device>
110options NORMA_VM # NORMA virtual memory support # <norma_vm>
111options NORMA_TASK # NORMA task support # <norma_task>
112options NORMA_ETHER # NORMA across ethernet # <norma_ether>
113options SIMPLE_CLOCK # don't assume fixed tick # <simple_clock>
1c79356b
A
114options XPR_DEBUG # kernel tracing # <xpr_debug>
115options KDEBUG # kernel tracing # <kdebug>
116options DDM_DEBUG # driverkit-style tracing # <ddm_debug>
117options MACH_OLD_VM_COPY # Old vm_copy technology # <!newvm>
118options NO_DIRECT_RPC # for untyped mig servers #
119options IPX # ipx stack # <ipx>
120options EON # # <eon>
121options ISO # ISO stack # <iso>
122options LLC # 802.2 support # <llc>
123options LOOP # loopback support # <loop>
124options MROUTING # multicast routing # <mrouting>
1c79356b 125options ROUTING # routing # <routing>
2d21ac55 126options NETMIBS # # <netmibs>
1c79356b 127options VLAN # # <vlan>
91447636 128options BOND # # <bond>
2d21ac55
A
129options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
130options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
131options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
132options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
91447636 133options DUMMYNET # dummynet support # <dummynet>
2d21ac55 134options TRAFFIC_MGT # traffic management support # <traffic_mgt>
91447636 135options IPFW2 # IP firewall (new version) # <ipfw2>
1c79356b 136options MULTICAST # Internet Protocol Class-D $
9bccf70c
A
137options TCPDEBUG # TCP debug # <tcpdebug>
138options RANDOM_IP_ID # random (not sequential) ip ids # <randomipid>
139options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
140options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
2d21ac55 141options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
55e303ae 142options AUDIT # Security event auditing # <audit>
2d21ac55
A
143options SYSV_SEM # SVID semaphores # <sysv_sem>
144options SYSV_MSG # SVID messages # <sysv_msg>
145options SYSV_SHM # SVID shared mem # <sysv_shm>
146options PANIC_INFO # want kernel panic info # <panic_info>
147options DEVELOPMENT # dev kernel # <development>
1c79356b 148
2d21ac55
A
149# secure_kernel - secure kernel from user programs
150options SECURE_KERNEL # <secure_kernel>
1c79356b
A
151
152#
153# 4.4 general kernel
154#
2d21ac55 155options SOCKETS # socket support # <inet, inet6, netat>
91447636 156options COMPAT_43_TTY # 4.3 BSD tty compat # <compat_43_tty>
1c79356b 157options DIAGNOSTIC # diagnostics # <diagnostic>
2d21ac55 158options CONFIG_DTRACE # dtrace support # <config_dtrace>
55e303ae 159options GPROF # build profiling # <profile>
2d21ac55
A
160options SENDFILE # sendfile # <sendfile>
161options NETWORKING # networking layer # <inet, inet6, netat>
162options CONFIG_FSE # file system events # <config_fse>
163options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
164options CONFIG_SOWUPCALL # SB_UPCALL on sowwakeup # <config_sowupcall>
165options CONFIG_FORCE_OUT_IFP # Force IP output to use an interface # <config_force_out_ifp>
166options CONFIG_MBUF_NOEXPAND # limit mbuf expansion # <config_mbuf_noexpand>
167options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
1c79356b
A
168
169#
170# 4.4 filesystems
171#
2d21ac55
A
172options FFS # Fast Filesystem Support # <ffs>
173options HFS # HFS/HFS+ support # <hfs>
1c79356b 174options FIFO # fifo support # <fifo>
1c79356b
A
175options UNION # union_fs support # <union>
176options FDESC # fdesc_fs support # <fdesc>
177options CD9660 # ISO 9660 CD-ROM support # <cd9660>
1c79356b 178options DEVFS # devfs support # <devfs>
2d21ac55
A
179options JOURNALING # journaling support # <journaling>
180
181#
182# file system features
183#
184options QUOTA # file system quotas # <quota>
185options REV_ENDIAN_FS # Reverse Endian FS # <revfs>
186options NAMEDSTREAMS # named stream vnop support # <namedstreams>
187options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
1c79356b
A
188
189#
190# NFS support
191#
2d21ac55
A
192options NFSCLIENT # Be an NFS client # <nfsclient>
193options NFSSERVER # Be an NFS server # <nfsserver>
1c79356b
A
194
195#
196# AppleTalk Support
197#
2d21ac55 198options NETAT # AppleTalk support # <netat>
0c530ab8 199#options AURP_SUPPORT # AppleTalk Update Routing # <netat>
2d21ac55 200
1c79356b
A
201#
202# Machine Independent Apple Features
203#
204options KERNSERV # kernel_server intarface # <kernserv>
205options MALLOCDEBUG # kernel malloc debugging # <mallocdebug>
206options DRIVERKIT # driverkit support # <driverkit>
207options KERNOBJC # Objective-C support # <kernobjc>
208options OBJCTEST # Objc internal test # <objctest>
209options KERNEL_STACK # MI kernel stack support # <kernstack>
2d21ac55 210profile # build a profiling kernel # <profile>
1c79356b 211
9bccf70c
A
212#
213# Point-to-Point Protocol support
214#
215pseudo-device ppp 2 # <ppp>
216
1c79356b 217#
9bccf70c 218# IPv6 Support
1c79356b
A
219#
220options "INET6" # kernel IPv6 Support # <inet6>
1c79356b
A
221options IPSEC # IP security # <ipsec>
222options IPSEC_ESP # IP security # <ipsec>
223options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
91447636
A
224options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
225#options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
9bccf70c
A
226
227pseudo-device gif 1 # <gif>
1c79356b
A
228pseudo-device dummy 2 # <dummy>
229pseudo-device faith 1 # <faith>
9bccf70c
A
230pseudo-device stf 1 # <stf>
231
232options crypto # <ipsec,crypto>
2d21ac55
A
233options ALLCRYPTO # <xlarge,large,medium>
234options randomipid # <inet,randomipid>
235
236options ZLIB # inflate/deflate support # <zlib>
1c79356b
A
237
238makeoptions LIBDRIVER = "libDriver_kern.o" # <libdriver>
239makeoptions LIBOBJC = "libkobjc.o" # <kernobjc>
240
241maxusers 64 # <xlarge>
242maxusers 50 # <large>
243maxusers 32 # <medium>
244maxusers 16 # <small>
2d21ac55 245maxusers 8 # <xsmall>
1c79356b
A
246maxusers 2 # <bsmall>
247
248#
249# Multi-processor selection
250#
251pseudo-device cpus 64 # <multi64>
252pseudo-device cpus 32 # <multi32>
253pseudo-device cpus 16 # <multi16>
254pseudo-device cpus 2 # <multi2>
255pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
256
2d21ac55
A
257#
258# configurable kernel event related resources
259#
260options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
261options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
262options CONFIG_KN_HASHSIZE=20 # <bsmall>
263
264#
265# configurable vfs related resources
266# CONFIG_VNODES - used to pre allocate vnode related resources
267# CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes
268# CONFIG_NC_HASH - name cache hash table allocation
269# CONFIG_VFS_NAMES - name strings
270#
271# 263168 magic number for medium CONFIG_VNODES is based on memory
272# Number vnodes is (memsize/64k) + 1024
273# This is the calculation that is used by launchd in tiger
274# we are clipping the max based on 16G
275# ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
276
277options CONFIG_VNODES=263168 # <large,xlarge>
278options CONFIG_VNODES=263168 # <medium>
279options CONFIG_VNODES=10240 # <small>
280options CONFIG_VNODES=1024 # <xsmall>
281options CONFIG_VNODES=512 # <bsmall>
282
283options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
284options CONFIG_VNODE_FREE_MIN=300 # <medium>
285options CONFIG_VNODE_FREE_MIN=200 # <small>
286options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
287options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
288
289options CONFIG_NC_HASH=5120 # <large,xlarge>
290options CONFIG_NC_HASH=4096 # <medium>
291options CONFIG_NC_HASH=2048 # <small,xsmall>
292options CONFIG_NC_HASH=1024 # <bsmall>
293
294options CONFIG_VFS_NAMES=5120 # <large,xlarge>
295options CONFIG_VFS_NAMES=4096 # <medium>
296options CONFIG_VFS_NAMES=3072 # <small,xsmall>
297options CONFIG_VFS_NAMES=2048 # <bsmall>
298
299#
300# configurable kauth credential related resources
301#
302options KAUTH_CRED_PRIMES_COUNT=7 # <medium,large,xlarge>
303options KAUTH_CRED_PRIMES_COUNT=3 # <bsmall,xsmall,small>
304
305options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # <medium,large,xlarge>
306options KAUTH_CRED_PRIMES="{5, 17, 97}" # <bsmall,xsmall,small>
307
308#
309# configurable options for minumum number of buffers for kernel memory
310#
311options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
312options CONFIG_MIN_NBUF=128 # <small>
313options CONFIG_MIN_NBUF=80 # <xsmall>
314options CONFIG_MIN_NBUF=64 # <bsmall>
315
316options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
317options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
318options CONFIG_MIN_NIOBUF=32 # <bsmall>
319
320#
321# set maximum space used for packet buffers
322#
323options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
324options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
325options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
326
327#
328# Configure size of TCP hash table
329#
330options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
331options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
332
333#
334# configurable async IO options
335# CONFIG_AIO_MAX - system wide limit of async IO requests.
336# CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
337# CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
338#
339options CONFIG_AIO_MAX=360 # <xlarge>
340options CONFIG_AIO_MAX=180 # <large>
341options CONFIG_AIO_MAX=90 # <medium>
342options CONFIG_AIO_MAX=45 # <small>
343options CONFIG_AIO_MAX=20 # <xsmall>
344options CONFIG_AIO_MAX=10 # <bsmall>
345
346options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
347options CONFIG_AIO_PROCESS_MAX=32 # <large>
348options CONFIG_AIO_PROCESS_MAX=16 # <medium>
349options CONFIG_AIO_PROCESS_MAX=12 # <small>
350options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
351options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
352
353options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
354options CONFIG_AIO_THREAD_COUNT=8 # <large>
355options CONFIG_AIO_THREAD_COUNT=4 # <medium>
356options CONFIG_AIO_THREAD_COUNT=3 # <small>
357options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
358
359#
360# configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
361# sync with osfmk/conf/MASTER until we fix the config system...) todo XXX
362#
363options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
364options CONFIG_THREAD_MAX=1536 # <small,xsmall>
365options CONFIG_THREAD_MAX=1024 # <bsmall>
366
367options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
368options CONFIG_MAXVIFS=16 # <small,xsmall>
369options CONFIG_MAXVIFS=2 # <bsmall>
370
371options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
372options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
373options CONFIG_MFCTBLSIZ=16 # <bsmall>
374
375#
376# configurable kernel - use these options to strip strings from panic
377# and printf calls.
378# no_panic_str - saves around 50K of kernel footprint.
379# no_printf_str - saves around 45K of kernel footprint.
380#
381options CONFIG_NO_PANIC_STRINGS # <no_panic_str>
382options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
383options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
384
385#
386# configurable kernel - general switch to say we are building for an
387# embedded device
388#
389options CONFIG_EMBEDDED # <config_embedded>
390
1c79356b
A
391#
392# Ethernet (ARP)
393#
2d21ac55 394pseudo-device ether # <networking,inet,inet6,netat>
1c79356b
A
395#
396# Network loopback device
397#
2d21ac55 398pseudo-device loop # <networking,inet,inet6,netat>
1c79356b
A
399#
400# UCB pseudo terminal service
401#
2d21ac55
A
402pseudo-device pty 512 init pty_init # <xlarge>
403pseudo-device pty 256 init pty_init # <large>
404pseudo-device pty 128 init pty_init # <medium>
405pseudo-device pty 48 init pty_init # <small>
406pseudo-device pty 16 init pty_init # <xsmall>
407pseudo-device pty 8 init pty_init # <bsmall>
408#
409# Cloning pseudo terminal service
410#
411pseudo-device ptmx 1 init ptmx_init
9bccf70c
A
412
413#
414# vnode device
2d21ac55
A
415#
416pseudo-device vndevice 16 init vndevice_init # <xlarge>
417pseudo-device vndevice 8 init vndevice_init # <large>
418pseudo-device vndevice 4 init vndevice_init # <medium>
419pseudo-device vndevice 3 init vndevice_init # <small>
420pseudo-device vndevice 2 init vndevice_init # <bsmall>
9bccf70c 421
55e303ae
A
422#
423# memory device
424pseudo-device mdevdevice 1 init mdevinit
425
9bccf70c 426#
1c79356b
A
427#
428# packet filter device
429#
2d21ac55 430pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6,netat>
1c79356b 431
91447636
A
432#
433# fsevents device
2d21ac55 434pseudo-device fsevents 1 init fsevents_init # <config_fse>
91447636 435
1c79356b
A
436#
437# shim to "linux" mach disk drivers (mach drivers must also be turned on)
438#
439# now using iokit disk shim, this is code is obsolete
440#pseudo-device diskshim
0b4e3aa0
A
441
442pseudo-device random 1 init random_init
2d21ac55
A
443pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
444pseudo-device helper 1 init helper_init # <config_dtrace>
445pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
446pseudo-device sdt 1 init sdt_init # <config_dtrace>
447pseudo-device systrace 1 init systrace_init # <config_dtrace>
448pseudo-device fbt 1 init fbt_init # <config_dtrace>
449pseudo-device profile_prvd 1 init profile_init # <config_dtrace>
0b4e3aa0 450