]> git.saurik.com Git - apple/xnu.git/blob - bsd/conf/MASTER
xnu-2422.1.72.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 NEW_VM_CODE # # <newvm>
86 options OLD_VM_CODE # # <!newvm>
87 options HW_AST # Hardware ast support # <hw_ast>
88 options HW_FOOTPRINT # Cache footprint support # <hw_foot>
89 options CONFIG_LCTX # Login Context
90
91 options MACH # Standard Mach features # <mach>
92 options MACH_ASSERT # Compile in assertions # <mach_assert>
93 options MACH_COMPAT # Vendor syscall compatibility # <mach>
94 options MACH_COUNTERS # counters # <count>
95 options MACH_DEBUG # IPC debugging interface # <mdebug>
96 options MACH_FASTLINK # Fast symbolic links
97 options MACH_FIXPRI # Fixed priority threads # <fixpri>
98 options MACH_HOST # Mach host (resource alloc.) # <host>
99 options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat>
100 options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug>
101 options MACH_IPC_TEST # Testing code/printfs # <ipc_test>
102 options MACH_LDEBUG # Sanity-check simple locking # <test>
103 options CONFIG_ZLEAKS # Live zone leak debug sysctls # <zleaks>
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 SIMPLE_CLOCK # don't assume fixed tick # <simple_clock>
109 options XPR_DEBUG # kernel tracing # <xpr_debug>
110 options KDEBUG # kernel tracing # <kdebug>
111 options IST_KDEBUG # limited kernel tracing # <ist_kdebug>
112 options NO_KDEBUG # no kernel tracing # <no_kdebug>
113 options DDM_DEBUG # driverkit-style tracing # <ddm_debug>
114 options MACH_OLD_VM_COPY # Old vm_copy technology # <!newvm>
115 options NO_DIRECT_RPC # for untyped mig servers #
116 options LOOP # loopback support # <loop>
117 options MROUTING # multicast routing # <mrouting>
118 options VLAN # # <vlan>
119 options BOND # # <bond>
120 options PF # Packet Filter # <pf>
121 options PF_ALTQ # PF ALTQ (Alternate Queueing) # <pf_altq>
122 options PFLOG # PF log interface # <pflog>
123 options PKTSCHED_CBQ # CBQ packet scheduler # <pktsched_cbq>
124 options PKTSCHED_HFSC # H-FSC packet scheduler # <pktsched_hfsc>
125 options PKTSCHED_PRIQ # PRIQ packet scheduler # <pktsched_priq>
126 options PKTSCHED_FAIRQ # FAIRQ packet scheduler # <pktsched_fairq>
127 options MEASURE_BW # interface bandwidth measurement # <measure_bw>
128 options CLASSQ_BLUE # BLUE queueing algorithm # <classq_blue>
129 options CLASSQ_RED # RED queueing algorithm # <classq_red>
130 options CLASSQ_RIO # RIO queueing algorithm # <classq_rio>
131 options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
132 options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
133 options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
134 options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
135 options DUMMYNET # dummynet support # <dummynet>
136 options TRAFFIC_MGT # traffic management support # <traffic_mgt>
137 options IPFW2 # IP firewall (new version) # <ipfw2>
138 options MULTICAST # Internet Protocol Class-D $
139 options TCPDEBUG # TCP debug # <tcpdebug>
140 options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
141 options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
142 options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
143 options MULTIPATH # Multipath domain # <multipath>
144 options MPTCP # Multipath TCP # <mptcp>
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 DEVELOPMENT # dev kernel # <development>
150 options FLOW_DIVERT # <flow_divert>
151
152 # secure_kernel - secure kernel from user programs
153 options SECURE_KERNEL # <secure_kernel>
154
155 options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
156
157 #
158 # 4.4 general kernel
159 #
160 options SOCKETS # socket support # <inet, inet6>
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>
166 options CONFIG_FSE # file system events # <config_fse>
167 options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
168 options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
169 options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # <config_force_out_ifp>
170 options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # <config_ifef_nowindowscale>
171
172 options CONFIG_WORKQUEUE # <config_workqueue>
173
174 #
175 # 4.4 filesystems
176 #
177 options FFS # Fast Filesystem Support # <ffs>
178 options HFS # HFS/HFS+ support # <hfs>
179 options MOCKFS # Boot from an executable # <mockfs>
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_STD # hfs standard support # <config_hfs_std>
186 options CONFIG_HFS_TRIM # hfs trims unused blocks # <config_hfs_trim>
187 options CONFIG_HFS_MOUNT_UNMAP #hfs trims blocks at mount # <config_hfs_mount_unmap>
188 options CONFIG_HFS_DIRLINK #allow directory hardlink creation # <config_hfs_dirlink>
189
190 #
191 # file system features
192 #
193 options QUOTA # file system quotas # <quota>
194 options REV_ENDIAN_FS # Reverse Endian FS # <revfs>
195 options NAMEDSTREAMS # named stream vnop support # <namedstreams>
196 options CONFIG_APPLEDOUBLE # apple double support # <config_appledouble>
197 options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
198 options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
199 options CONFIG_TRIGGERS # trigger vnodes # <config_triggers>
200 options CONFIG_EXT_RESOLVER # e.g. memberd # <config_ext_resolver>
201 options CONFIG_SEARCHFS # searchfs syscall support # <config_searchfs>
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 # Machine Independent Apple Features
211 #
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>
219
220 #
221 # IPv6 Support
222 #
223 options "INET6" # kernel IPv6 Support # <inet6>
224 options IPV6SEND # Secure Neighbor Discovery # <ipv6send>
225 options IPSEC # IP security # <ipsec>
226 options IPSEC_ESP # IP security # <ipsec>
227 options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
228 options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
229 #options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
230
231 pseudo-device gif 1 # <gif>
232 pseudo-device dummy 2 # <dummy>
233 pseudo-device stf 1 # <stf>
234
235 options crypto # <ipsec,crypto>
236 options ALLCRYPTO # <xlarge,large,medium>
237
238 options ZLIB # inflate/deflate support # <zlib>
239
240 options IF_BRIDGE # <if_bridge>
241
242 makeoptions LIBDRIVER = "libDriver_kern.o" # <libdriver>
243 makeoptions LIBOBJC = "libkobjc.o" # <kernobjc>
244
245 maxusers 64 # <xlarge>
246 maxusers 50 # <large>
247 maxusers 32 # <medium>
248 maxusers 16 # <small>
249 maxusers 8 # <xsmall>
250 maxusers 2 # <bsmall>
251
252 #
253 # Multi-processor selection
254 #
255 pseudo-device cpus 64 # <multi64>
256 pseudo-device cpus 32 # <multi32>
257 pseudo-device cpus 16 # <multi16>
258 pseudo-device cpus 2 # <multi2>
259 pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
260
261 #
262 # configurable kernel event related resources
263 #
264 options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
265 options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
266 options CONFIG_KN_HASHSIZE=20 # <bsmall>
267
268 #
269 # configurable vfs related resources
270 # CONFIG_VNODES - used to pre allocate vnode related resources
271 # CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes
272 # CONFIG_NC_HASH - name cache hash table allocation
273 # CONFIG_VFS_NAMES - name strings
274 #
275 # 263168 magic number for medium CONFIG_VNODES is based on memory
276 # Number vnodes is (memsize/64k) + 1024
277 # This is the calculation that is used by launchd in tiger
278 # we are clipping the max based on 16G
279 # ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
280
281 options CONFIG_VNODES=263168 # <large,xlarge>
282 options CONFIG_VNODES=263168 # <medium>
283 options CONFIG_VNODES=10240 # <small>
284 options CONFIG_VNODES=750 # <bsmall>
285
286 options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
287 options CONFIG_VNODE_FREE_MIN=300 # <medium>
288 options CONFIG_VNODE_FREE_MIN=200 # <small>
289 options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
290 options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
291
292 options CONFIG_NC_HASH=5120 # <large,xlarge>
293 options CONFIG_NC_HASH=4096 # <medium>
294 options CONFIG_NC_HASH=2048 # <small,xsmall>
295 options CONFIG_NC_HASH=1024 # <bsmall>
296
297 options CONFIG_VFS_NAMES=5120 # <large,xlarge>
298 options CONFIG_VFS_NAMES=4096 # <medium>
299 options CONFIG_VFS_NAMES=3072 # <small,xsmall>
300 options CONFIG_VFS_NAMES=2048 # <bsmall>
301
302 options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
303 options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
304
305 #
306 # configurable kauth credential related resources
307 #
308 options KAUTH_CRED_PRIMES_COUNT=7 # <medium,large,xlarge>
309 options KAUTH_CRED_PRIMES_COUNT=3 # <bsmall,xsmall,small>
310
311 options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # <medium,large,xlarge>
312 options KAUTH_CRED_PRIMES="{5, 17, 97}" # <bsmall,xsmall,small>
313
314 #
315 # configurable options for minumum number of buffers for kernel memory
316 #
317 options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
318 options CONFIG_MIN_NBUF=128 # <small>
319 options CONFIG_MIN_NBUF=80 # <xsmall>
320 options CONFIG_MIN_NBUF=64 # <bsmall>
321
322 options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
323 options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
324 options CONFIG_MIN_NIOBUF=32 # <bsmall>
325
326 #
327 # set maximum space used for packet buffers
328 #
329 options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
330 options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
331 options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
332
333 #
334 # Configure size of TCP hash table
335 #
336 options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
337 options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
338
339 #
340 # Configure bandwidth limiting sysctl
341 #
342 options CONFIG_ICMP_BANDLIM=250 # <medium,large,xlarge>
343 options CONFIG_ICMP_BANDLIM=50 # <xsmall,small,bsmall>
344
345 #
346 # configurable async IO options
347 # CONFIG_AIO_MAX - system wide limit of async IO requests.
348 # CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
349 # CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
350 #
351 options CONFIG_AIO_MAX=360 # <xlarge>
352 options CONFIG_AIO_MAX=180 # <large>
353 options CONFIG_AIO_MAX=90 # <medium>
354 options CONFIG_AIO_MAX=45 # <small>
355 options CONFIG_AIO_MAX=20 # <xsmall>
356 options CONFIG_AIO_MAX=10 # <bsmall>
357
358 options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
359 options CONFIG_AIO_PROCESS_MAX=32 # <large>
360 options CONFIG_AIO_PROCESS_MAX=16 # <medium>
361 options CONFIG_AIO_PROCESS_MAX=12 # <small>
362 options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
363 options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
364
365 options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
366 options CONFIG_AIO_THREAD_COUNT=8 # <large>
367 options CONFIG_AIO_THREAD_COUNT=4 # <medium>
368 options CONFIG_AIO_THREAD_COUNT=3 # <small>
369 options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
370
371 #
372 # configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
373 # sync with osfmk/conf/MASTER until we fix the config system...) todo XXX
374 #
375 options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
376 options CONFIG_THREAD_MAX=1536 # <small,xsmall>
377 options CONFIG_THREAD_MAX=1024 # <bsmall>
378
379 options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
380 options CONFIG_MAXVIFS=16 # <small,xsmall>
381 options CONFIG_MAXVIFS=2 # <bsmall>
382
383 options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
384 options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
385 options CONFIG_MFCTBLSIZ=16 # <bsmall>
386
387 #
388 # configurable kernel message buffer size
389 #
390 options CONFIG_MSG_BSIZE=4096 # <bsmall,small,xsmall>
391 options CONFIG_MSG_BSIZE=16384 # <medium,large,xlarge>
392
393 #
394 # configurable kernel - use these options to strip strings from panic
395 # and printf calls.
396 # no_panic_str - saves around 50K of kernel footprint.
397 # no_printf_str - saves around 45K of kernel footprint.
398 #
399 options CONFIG_NO_PANIC_STRINGS # <no_panic_str>
400 options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
401 options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
402
403 #
404 # use finer-grained lock groups for the proc subsystem
405 #
406 options CONFIG_FINE_LOCK_GROUPS # <medium,large,xlarge>
407
408 # support dynamic signing of code
409 #
410 options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
411
412 #
413 # User Content Protection, used on embedded
414 #
415 options CONFIG_PROTECT # <config_protect>
416
417 #
418 # enable per-process memory priority tracking
419 #
420 options CONFIG_MEMORYSTATUS # <memorystatus>
421
422 #
423 # enable jetsam - used on embedded
424 #
425 options CONFIG_JETSAM # <jetsam>
426
427 #
428 # enable freezing of suspended processes - used on embedded
429 #
430 options CONFIG_FREEZE # <freeze>
431
432 options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap>
433
434 #
435 # memory pressure event support
436 # must be set in both bsd/conf and osfmk/conf MASTER files
437 #
438 options VM_PRESSURE_EVENTS # <vm_pressure_events>
439
440 #
441 # Enable inheritance of importance through specially marked mach ports and for file locks
442 # For now debug is enabled wherever inheritance is
443 #
444 options IMPORTANCE_INHERITANCE # <importance_inheritance>
445 options IMPORTANCE_DEBUG # <importance_inheritance>
446
447 options CONFIG_TELEMETRY # <config_telemetry>
448
449 options CONFIG_PROC_UUID_POLICY # <config_proc_uuid_policy>
450
451 #
452 # In-kernel tests
453 #
454 options CONFIG_IN_KERNEL_TESTS # <in_kernel_tests>
455
456 #
457 # Ethernet (ARP)
458 #
459 pseudo-device ether # <networking,inet,inet6>
460 #
461 # Network loopback device
462 #
463 pseudo-device loop # <networking,inet,inet6>
464 #
465 # UCB pseudo terminal service
466 #
467 pseudo-device pty 512 init pty_init # <xlarge>
468 pseudo-device pty 256 init pty_init # <large>
469 pseudo-device pty 128 init pty_init # <medium>
470 pseudo-device pty 48 init pty_init # <small>
471 pseudo-device pty 16 init pty_init # <xsmall>
472 pseudo-device pty 8 init pty_init # <bsmall>
473 #
474 # Cloning pseudo terminal service
475 #
476 pseudo-device ptmx 1 init ptmx_init
477
478 #
479 # vnode device
480 #
481 pseudo-device vndevice 16 init vndevice_init # <xlarge>
482 pseudo-device vndevice 8 init vndevice_init # <large>
483 pseudo-device vndevice 4 init vndevice_init # <medium>
484 pseudo-device vndevice 3 init vndevice_init # <small>
485 pseudo-device vndevice 2 init vndevice_init # <xsmall>
486 pseudo-device vndevice 2 init vndevice_init # <bsmall>
487
488 #
489 # memory device
490 pseudo-device mdevdevice 1 init mdevinit
491
492 #
493 #
494 # packet filter device
495 #
496 pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6>
497
498 #
499 # fsevents device
500 pseudo-device fsevents 1 init fsevents_init # <config_fse>
501
502 #
503 # shim to "linux" mach disk drivers (mach drivers must also be turned on)
504 #
505 # now using iokit disk shim, this is code is obsolete
506 #pseudo-device diskshim
507
508 pseudo-device random 1 init random_init
509 pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
510 pseudo-device helper 1 init helper_init # <config_dtrace>
511 pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
512 pseudo-device sdt 1 init sdt_init # <config_dtrace>
513 pseudo-device systrace 1 init systrace_init # <config_dtrace>
514 pseudo-device fbt 1 init fbt_init # <config_dtrace>
515 pseudo-device profile_prvd 1 init profile_init # <config_dtrace>