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.
7 #######################################################################
9 # Master machine independent configuration file.
11 # Specific configuration files are created based on this and
12 # the machine specific master file using the doconf script.
14 # Any changes to the master configuration files will affect all
15 # other configuration files based upon it.
17 #######################################################################
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:
23 # <configuration> = [ <attribute0> <attribute1> ... <attributeN> ]
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
33 # <foo,bar> selects a line if "foo" or "bar" are specified.
34 # <!foo,bar> selects a line if neither "foo" nor "bar" is
37 # Lines with no attributes specified are selected for all
40 #######################################################################
42 # STANDARD CONFIGURATION OPTIONS (select any combination)
44 # debug = extra kernel level debugging support
47 # EXPERIMENTAL CONFIGURATION OPTIONS (select any combination, carefully)
49 # host = host resource control support
51 # MULTI-PROCESSOR CONFIGURATION (select at most one)
53 # multi16 = enable 16 multi-processors
54 # multi32 = enable 32 multi-processors
55 # multi48 = enable 48 multi-processors
57 # SYSTEM SIZE CONFIGURATION (select exactly one)
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
66 #######################################################################
68 # Standard Mach Research Configurations:
69 # -------- ---- -------- ---------------
71 # These are the default configurations that can be used by most sites.
72 # They are used internally by the Mach project.
74 # MACH = [mach multi16 medium debug]
76 #######################################################################
80 # obsolete timezone spec
81 options TIMEZONE=0, PST=0
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
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 CONFIG_ZLEAKS # Live zone leak debug sysctls # <zleaks>
105 options MACH_NP # Mach IPC support # <np>
106 options MACH_NBC # No buffer cache # <nbc>
107 options MACH_NET # Fast network access # <mach_net>
108 options MACH_XP # external pager support # <xp>
109 options NORMA_IPC # NORMA IPC support # <norma_ipc>
110 options NORMA_DEVICE # NORMA unified device names # <norma_device>
111 options NORMA_VM # NORMA virtual memory support # <norma_vm>
112 options NORMA_TASK # NORMA task support # <norma_task>
113 options NORMA_ETHER # NORMA across ethernet # <norma_ether>
114 options SIMPLE_CLOCK # don't assume fixed tick # <simple_clock>
115 options XPR_DEBUG # kernel tracing # <xpr_debug>
116 options KDEBUG # kernel tracing # <kdebug>
117 options DDM_DEBUG # driverkit-style tracing # <ddm_debug>
118 options MACH_OLD_VM_COPY # Old vm_copy technology # <!newvm>
119 options NO_DIRECT_RPC # for untyped mig servers #
120 options IPX # ipx stack # <ipx>
121 options EON # # <eon>
122 options ISO # ISO stack # <iso>
123 options LLC # 802.2 support # <llc>
124 options LOOP # loopback support # <loop>
125 options MROUTING # multicast routing # <mrouting>
126 options ROUTING # routing # <routing>
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 PFLOG # PF log interface # <pflog>
132 options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
133 options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
134 options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
135 options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
136 options DUMMYNET # dummynet support # <dummynet>
137 options TRAFFIC_MGT # traffic management support # <traffic_mgt>
138 options IPFW2 # IP firewall (new version) # <ipfw2>
139 options MULTICAST # Internet Protocol Class-D $
140 options TCPDEBUG # TCP debug # <tcpdebug>
141 options RANDOM_IP_ID # random (not sequential) ip ids # <randomipid>
142 options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
143 options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
144 options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
145 options SYSV_SEM # SVID semaphores # <sysv_sem>
146 options SYSV_MSG # SVID messages # <sysv_msg>
147 options SYSV_SHM # SVID shared mem # <sysv_shm>
148 options PSYNCH # pthread synch # <psynch>
149 options PANIC_INFO # want kernel panic info # <panic_info>
150 options DEVELOPMENT # dev kernel # <development>
152 # secure_kernel - secure kernel from user programs
153 options SECURE_KERNEL # <secure_kernel>
155 options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
160 options SOCKETS # socket support # <inet, inet6, netat>
161 options DIAGNOSTIC # diagnostics # <diagnostic>
162 options CONFIG_DTRACE # dtrace support # <config_dtrace>
163 options GPROF # build profiling # <profile>
164 options SENDFILE # sendfile # <sendfile>
165 options NETWORKING # networking layer # <inet, inet6, netat>
166 options CONFIG_FSE # file system events # <config_fse>
167 options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
168 options CONFIG_SOWUPCALL # SB_UPCALL on sowwakeup # <config_sowupcall>
169 options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
170 options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # <config_force_out_ifp>
171 options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # <config_ifef_nowindowscale>
173 options CONFIG_WORKQUEUE # <config_workqueue>
178 options FFS # Fast Filesystem Support # <ffs>
179 options HFS # HFS/HFS+ support # <hfs>
180 options FIFO # fifo support # <fifo>
181 options FDESC # fdesc_fs support # <fdesc>
182 options DEVFS # devfs support # <devfs>
183 options JOURNALING # journaling support # <journaling>
184 options HFS_COMPRESSION # hfs compression # <hfs_compression>
185 options CONFIG_HFS_TRIM # HFS trims unused blocks # <config_hfs_trim>
188 # file system features
190 options QUOTA # file system quotas # <quota>
191 options REV_ENDIAN_FS # Reverse Endian FS # <revfs>
192 options NAMEDSTREAMS # named stream vnop support # <namedstreams>
193 options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
194 options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
195 options CONFIG_TRIGGERS # trigger vnodes # <config_triggers>
200 options NFSCLIENT # Be an NFS client # <nfsclient>
201 options NFSSERVER # Be an NFS server # <nfsserver>
206 options NETAT # AppleTalk support # <netat>
207 #options AURP_SUPPORT # AppleTalk Update Routing # <netat>
210 # Machine Independent Apple Features
212 options KERNSERV # kernel_server intarface # <kernserv>
213 options MALLOCDEBUG # kernel malloc debugging # <mallocdebug>
214 options DRIVERKIT # driverkit support # <driverkit>
215 options KERNOBJC # Objective-C support # <kernobjc>
216 options OBJCTEST # Objc internal test # <objctest>
217 options KERNEL_STACK # MI kernel stack support # <kernstack>
218 profile # build a profiling kernel # <profile>
221 # Point-to-Point Protocol support
223 pseudo-device ppp 2 # <ppp>
228 options "INET6" # kernel IPv6 Support # <inet6>
229 options IPSEC # IP security # <ipsec>
230 options IPSEC_ESP # IP security # <ipsec>
231 options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
232 options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
233 #options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
235 pseudo-device gif 1 # <gif>
236 pseudo-device dummy 2 # <dummy>
237 pseudo-device faith 1 # <faith>
238 pseudo-device stf 1 # <stf>
240 options crypto # <ipsec,crypto>
241 options ALLCRYPTO # <xlarge,large,medium>
242 options randomipid # <inet,randomipid>
244 options ZLIB # inflate/deflate support # <zlib>
246 options IF_BRIDGE # <if_bridge>
248 makeoptions LIBDRIVER = "libDriver_kern.o" # <libdriver>
249 makeoptions LIBOBJC = "libkobjc.o" # <kernobjc>
251 maxusers 64 # <xlarge>
252 maxusers 50 # <large>
253 maxusers 32 # <medium>
254 maxusers 16 # <small>
255 maxusers 8 # <xsmall>
256 maxusers 2 # <bsmall>
259 # Multi-processor selection
261 pseudo-device cpus 64 # <multi64>
262 pseudo-device cpus 32 # <multi32>
263 pseudo-device cpus 16 # <multi16>
264 pseudo-device cpus 2 # <multi2>
265 pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
268 # configurable kernel event related resources
270 options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
271 options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
272 options CONFIG_KN_HASHSIZE=20 # <bsmall>
275 # configurable vfs related resources
276 # CONFIG_VNODES - used to pre allocate vnode related resources
277 # CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes
278 # CONFIG_NC_HASH - name cache hash table allocation
279 # CONFIG_VFS_NAMES - name strings
281 # 263168 magic number for medium CONFIG_VNODES is based on memory
282 # Number vnodes is (memsize/64k) + 1024
283 # This is the calculation that is used by launchd in tiger
284 # we are clipping the max based on 16G
285 # ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
287 options CONFIG_VNODES=263168 # <large,xlarge>
288 options CONFIG_VNODES=263168 # <medium>
289 options CONFIG_VNODES=10240 # <small>
290 options CONFIG_VNODES=750 # <bsmall>
292 options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
293 options CONFIG_VNODE_FREE_MIN=300 # <medium>
294 options CONFIG_VNODE_FREE_MIN=200 # <small>
295 options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
296 options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
298 options CONFIG_NC_HASH=5120 # <large,xlarge>
299 options CONFIG_NC_HASH=4096 # <medium>
300 options CONFIG_NC_HASH=2048 # <small,xsmall>
301 options CONFIG_NC_HASH=1024 # <bsmall>
303 options CONFIG_VFS_NAMES=5120 # <large,xlarge>
304 options CONFIG_VFS_NAMES=4096 # <medium>
305 options CONFIG_VFS_NAMES=3072 # <small,xsmall>
306 options CONFIG_VFS_NAMES=2048 # <bsmall>
308 options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
309 options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
312 # configurable kauth credential related resources
314 options KAUTH_CRED_PRIMES_COUNT=7 # <medium,large,xlarge>
315 options KAUTH_CRED_PRIMES_COUNT=3 # <bsmall,xsmall,small>
317 options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # <medium,large,xlarge>
318 options KAUTH_CRED_PRIMES="{5, 17, 97}" # <bsmall,xsmall,small>
321 # configurable options for minumum number of buffers for kernel memory
323 options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
324 options CONFIG_MIN_NBUF=128 # <small>
325 options CONFIG_MIN_NBUF=80 # <xsmall>
326 options CONFIG_MIN_NBUF=64 # <bsmall>
328 options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
329 options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
330 options CONFIG_MIN_NIOBUF=32 # <bsmall>
333 # set maximum space used for packet buffers
335 options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
336 options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
337 options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
340 # set maximum space used for packet buffers
342 options CONFIG_USESOCKTHRESHOLD=1 # <large,xlarge,medium>
343 options CONFIG_USESOCKTHRESHOLD=0 # <bsmall,xsmall,small>
346 # Configure size of TCP hash table
348 options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
349 options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
352 # configurable async IO options
353 # CONFIG_AIO_MAX - system wide limit of async IO requests.
354 # CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
355 # CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
357 options CONFIG_AIO_MAX=360 # <xlarge>
358 options CONFIG_AIO_MAX=180 # <large>
359 options CONFIG_AIO_MAX=90 # <medium>
360 options CONFIG_AIO_MAX=45 # <small>
361 options CONFIG_AIO_MAX=20 # <xsmall>
362 options CONFIG_AIO_MAX=10 # <bsmall>
364 options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
365 options CONFIG_AIO_PROCESS_MAX=32 # <large>
366 options CONFIG_AIO_PROCESS_MAX=16 # <medium>
367 options CONFIG_AIO_PROCESS_MAX=12 # <small>
368 options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
369 options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
371 options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
372 options CONFIG_AIO_THREAD_COUNT=8 # <large>
373 options CONFIG_AIO_THREAD_COUNT=4 # <medium>
374 options CONFIG_AIO_THREAD_COUNT=3 # <small>
375 options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
378 # configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
379 # sync with osfmk/conf/MASTER until we fix the config system...) todo XXX
381 options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
382 options CONFIG_THREAD_MAX=1536 # <small,xsmall>
383 options CONFIG_THREAD_MAX=1024 # <bsmall>
385 options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
386 options CONFIG_MAXVIFS=16 # <small,xsmall>
387 options CONFIG_MAXVIFS=2 # <bsmall>
389 options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
390 options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
391 options CONFIG_MFCTBLSIZ=16 # <bsmall>
394 # configurable kernel message buffer size
396 options CONFIG_MSG_BSIZE=4096 # <bsmall,small,xsmall>
397 options CONFIG_MSG_BSIZE=16384 # <medium,large,xlarge>
400 # configurable kernel - use these options to strip strings from panic
402 # no_panic_str - saves around 50K of kernel footprint.
403 # no_printf_str - saves around 45K of kernel footprint.
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>
410 # use finer-grained lock groups for the proc subsystem
412 options CONFIG_FINE_LOCK_GROUPS # <medium,large,xlarge>
415 # configurable kernel - general switch to say we are building for an
418 options CONFIG_EMBEDDED # <config_embedded>
420 # only execute signed code. Hang this off config_embedded since there's
421 # nothing more appropriate right now
423 options CONFIG_ENFORCE_SIGNED_CODE # <config_embedded>
425 # support dynamic signing of code
427 options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
430 # code decryption... used on embedded for app protection
431 # must be set in all the bsd/conf and osfmk/conf MASTER files
433 options CONFIG_CODE_DECRYPTION # <config_embedded>
436 # User Content Protection, used on embedded
439 options CONFIG_PROTECT # <config_protect>
442 # freeze - support app hibernation, used on embedded
443 # CONFIG_FREEZE_SUSPENDED_MIN is the minimum number of suspended
444 # processes to be left unhibernated
446 options CONFIG_FREEZE # <freeze>
448 options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap>
453 pseudo-device ether # <networking,inet,inet6,netat>
455 # Network loopback device
457 pseudo-device loop # <networking,inet,inet6,netat>
459 # UCB pseudo terminal service
461 pseudo-device pty 512 init pty_init # <xlarge>
462 pseudo-device pty 256 init pty_init # <large>
463 pseudo-device pty 128 init pty_init # <medium>
464 pseudo-device pty 48 init pty_init # <small>
465 pseudo-device pty 16 init pty_init # <xsmall>
466 pseudo-device pty 8 init pty_init # <bsmall>
468 # Cloning pseudo terminal service
470 pseudo-device ptmx 1 init ptmx_init
475 pseudo-device vndevice 16 init vndevice_init # <xlarge>
476 pseudo-device vndevice 8 init vndevice_init # <large>
477 pseudo-device vndevice 4 init vndevice_init # <medium>
478 pseudo-device vndevice 3 init vndevice_init # <small>
479 pseudo-device vndevice 2 init vndevice_init # <xsmall>
480 pseudo-device vndevice 2 init vndevice_init # <bsmall>
484 pseudo-device mdevdevice 1 init mdevinit
488 # packet filter device
490 pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6,netat>
494 pseudo-device fsevents 1 init fsevents_init # <config_fse>
497 # shim to "linux" mach disk drivers (mach drivers must also be turned on)
499 # now using iokit disk shim, this is code is obsolete
500 #pseudo-device diskshim
502 pseudo-device random 1 init random_init
503 pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
504 pseudo-device helper 1 init helper_init # <config_dtrace>
505 pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
506 pseudo-device sdt 1 init sdt_init # <config_dtrace>
507 pseudo-device systrace 1 init systrace_init # <config_dtrace>
508 pseudo-device fbt 1 init fbt_init # <config_dtrace>
509 pseudo-device profile_prvd 1 init profile_init # <config_dtrace>