]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | # |
2 | # Mach Operating System | |
3 | # Copyright (c) 1986 Carnegie-Mellon University | |
fe8ab488 A |
4 | # Copyright 2001-2014 Apple Inc. |
5 | # | |
1c79356b A |
6 | # All rights reserved. The CMU software License Agreement |
7 | # specifies the terms and conditions for use and redistribution. | |
8 | # | |
9 | ####################################################################### | |
10 | # | |
11 | # Master machine independent configuration file. | |
12 | # | |
13 | # Specific configuration files are created based on this and | |
14 | # the machine specific master file using the doconf script. | |
15 | # | |
16 | # Any changes to the master configuration files will affect all | |
17 | # other configuration files based upon it. | |
18 | # | |
19 | ####################################################################### | |
20 | # | |
21 | # To build a configuration, execute "doconf <configuration>." | |
22 | # Configurations are specified in the "Configurations:" section | |
23 | # of the MASTER and MASTER.* files as follows: | |
24 | # | |
25 | # <configuration> = [ <attribute0> <attribute1> ... <attributeN> ] | |
26 | # | |
27 | # Lines in the MASTER and MASTER.* files are selected based on | |
28 | # the attribute selector list, found in a comment at the end of | |
29 | # the line. This is a list of attributes separated by commas. | |
30 | # The "!" operator selects the line if none of the attributes are | |
31 | # specified. | |
32 | # | |
33 | # For example: | |
34 | # | |
35 | # <foo,bar> selects a line if "foo" or "bar" are specified. | |
36 | # <!foo,bar> selects a line if neither "foo" nor "bar" is | |
37 | # specified. | |
38 | # | |
39 | # Lines with no attributes specified are selected for all | |
40 | # configurations. | |
41 | # | |
42 | ####################################################################### | |
43 | # | |
1c79356b A |
44 | # SYSTEM SIZE CONFIGURATION (select exactly one) |
45 | # | |
46 | # xlarge = extra large scale system configuration | |
47 | # large = large scale system configuration | |
48 | # medium = medium scale system configuration | |
49 | # small = small scale system configuration | |
50 | # xsmall = extra small scale system configuration | |
2d21ac55 | 51 | # bsmall = special extra small scale system configuration |
1c79356b A |
52 | # |
53 | ####################################################################### | |
1c79356b | 54 | # |
1c79356b | 55 | |
3e170ce0 | 56 | options INET # # <inet> |
1c79356b A |
57 | options HW_AST # Hardware ast support # <hw_ast> |
58 | options HW_FOOTPRINT # Cache footprint support # <hw_foot> | |
2d21ac55 | 59 | |
1c79356b | 60 | options MACH # Standard Mach features # <mach> |
1c79356b | 61 | options MACH_COMPAT # Vendor syscall compatibility # <mach> |
1c79356b | 62 | options MACH_FASTLINK # Fast symbolic links |
1c79356b A |
63 | options MACH_HOST # Mach host (resource alloc.) # <host> |
64 | options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat> | |
1c79356b | 65 | options MACH_IPC_TEST # Testing code/printfs # <ipc_test> |
39037602 | 66 | options MACH_FLIPC # Fast-Local IPC # <mach_flipc> |
1c79356b A |
67 | options MACH_NP # Mach IPC support # <np> |
68 | options MACH_NBC # No buffer cache # <nbc> | |
1c79356b A |
69 | options MACH_NET # Fast network access # <mach_net> |
70 | options MACH_XP # external pager support # <xp> | |
1c79356b | 71 | options NO_DIRECT_RPC # for untyped mig servers # |
1c79356b | 72 | options LOOP # loopback support # <loop> |
1c79356b | 73 | options VLAN # # <vlan> |
91447636 | 74 | options BOND # # <bond> |
fe8ab488 A |
75 | options AH_ALL_CRYPTO # AH all crypto algs # <ah_all_crypto> |
76 | options IPCOMP_ZLIB # IP compression using zlib # <ipcomp_zlib> | |
b0d623f7 | 77 | options PF # Packet Filter # <pf> |
316670eb | 78 | options PF_ALTQ # PF ALTQ (Alternate Queueing) # <pf_altq> |
3e170ce0 | 79 | options PF_ECN # PF use ECN marking # <pf_ecn> |
b0d623f7 | 80 | options PFLOG # PF log interface # <pflog> |
316670eb A |
81 | options PKTSCHED_CBQ # CBQ packet scheduler # <pktsched_cbq> |
82 | options PKTSCHED_HFSC # H-FSC packet scheduler # <pktsched_hfsc> | |
83 | options PKTSCHED_PRIQ # PRIQ packet scheduler # <pktsched_priq> | |
84 | options PKTSCHED_FAIRQ # FAIRQ packet scheduler # <pktsched_fairq> | |
39236c6e | 85 | options MEASURE_BW # interface bandwidth measurement # <measure_bw> |
316670eb A |
86 | options CLASSQ_BLUE # BLUE queueing algorithm # <classq_blue> |
87 | options CLASSQ_RED # RED queueing algorithm # <classq_red> | |
88 | options CLASSQ_RIO # RIO queueing algorithm # <classq_rio> | |
91447636 | 89 | options DUMMYNET # dummynet support # <dummynet> |
2d21ac55 | 90 | options TRAFFIC_MGT # traffic management support # <traffic_mgt> |
1c79356b | 91 | options MULTICAST # Internet Protocol Class-D $ |
9bccf70c | 92 | options TCPDEBUG # TCP debug # <tcpdebug> |
9bccf70c A |
93 | options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin> |
94 | options ICMP_BANDLIM # ICMP bandwidth limiting sysctl | |
2d21ac55 | 95 | options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk> |
39236c6e A |
96 | options MULTIPATH # Multipath domain # <multipath> |
97 | options MPTCP # Multipath TCP # <mptcp> | |
3e170ce0 A |
98 | options SYSV_SEM # SVID semaphores # <sysv_sem> |
99 | options SYSV_MSG # SVID messages # <sysv_msg> | |
100 | options SYSV_SHM # SVID shared mem # <sysv_shm> | |
101 | options PSYNCH # pthread synch # <psynch> | |
39236c6e | 102 | options FLOW_DIVERT # <flow_divert> |
fe8ab488 A |
103 | options NECP # <necp> |
104 | options CONTENT_FILTER # # <content_filter> | |
105 | options PACKET_MANGLER # # <packet_mangler> | |
39037602 | 106 | |
2d21ac55 A |
107 | # secure_kernel - secure kernel from user programs |
108 | options SECURE_KERNEL # <secure_kernel> | |
1c79356b | 109 | |
b0d623f7 A |
110 | options OLD_SEMWAIT_SIGNAL # old semwait_signal handler |
111 | ||
1c79356b A |
112 | # |
113 | # 4.4 general kernel | |
114 | # | |
3e170ce0 A |
115 | options SOCKETS # socket support # <inet, inet6> |
116 | options DIAGNOSTIC # diagnostics # <diagnostic> | |
117 | options GPROF # build profiling # <profile> | |
fe8ab488 | 118 | options PROFILE # kernel profiling # <profile> |
2d21ac55 | 119 | options SENDFILE # sendfile # <sendfile> |
3e170ce0 | 120 | options NETWORKING # networking layer # <inet, inet6> |
2d21ac55 A |
121 | options CONFIG_FSE # file system events # <config_fse> |
122 | options CONFIG_IMAGEBOOT # local image boot # <config_imageboot> | |
2d21ac55 | 123 | options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo> |
593a1d5f A |
124 | |
125 | options CONFIG_WORKQUEUE # <config_workqueue> | |
1c79356b A |
126 | |
127 | # | |
128 | # 4.4 filesystems | |
129 | # | |
3e170ce0 | 130 | options MOCKFS # Boot from an executable # <mockfs> |
1c79356b | 131 | options FIFO # fifo support # <fifo> |
1c79356b | 132 | options FDESC # fdesc_fs support # <fdesc> |
1c79356b | 133 | options DEVFS # devfs support # <devfs> |
490019cf | 134 | options ROUTEFS # routefs support # <routefs> |
39037602 A |
135 | options NULLFS # nullfs support # <nullfs> |
136 | options FS_COMPRESSION # fs compression # <fs_compression> | |
3e170ce0 | 137 | options CONFIG_DEV_KMEM # /dev/kmem device for reading KVA # <config_dev_kmem> |
2d21ac55 A |
138 | |
139 | # | |
140 | # file system features | |
141 | # | |
142 | options QUOTA # file system quotas # <quota> | |
2d21ac55 | 143 | options NAMEDSTREAMS # named stream vnop support # <namedstreams> |
39236c6e | 144 | options CONFIG_APPLEDOUBLE # apple double support # <config_appledouble> |
2d21ac55 | 145 | options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs> |
b7266188 | 146 | options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access> |
6d2010ae | 147 | options CONFIG_TRIGGERS # trigger vnodes # <config_triggers> |
316670eb A |
148 | options CONFIG_EXT_RESOLVER # e.g. memberd # <config_ext_resolver> |
149 | options CONFIG_SEARCHFS # searchfs syscall support # <config_searchfs> | |
813fb2f6 | 150 | options CONFIG_MNT_SUID # allow suid binaries # <config_mnt_suid> |
1c79356b A |
151 | |
152 | # | |
153 | # NFS support | |
154 | # | |
2d21ac55 A |
155 | options NFSCLIENT # Be an NFS client # <nfsclient> |
156 | options NFSSERVER # Be an NFS server # <nfsserver> | |
1c79356b | 157 | |
1c79356b A |
158 | # |
159 | # Machine Independent Apple Features | |
160 | # | |
3e170ce0 | 161 | profile # build a profiling kernel # <profile> |
1c79356b A |
162 | |
163 | # | |
9bccf70c | 164 | # IPv6 Support |
1c79356b | 165 | # |
3e170ce0 A |
166 | options "INET6" # kernel IPv6 Support # <inet6> |
167 | options IPV6SEND # Secure Neighbor Discovery # <ipv6send> | |
168 | options IPSEC # IP security # <ipsec> | |
169 | options IPSEC_ESP # IP security # <ipsec> | |
170 | options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall> | |
91447636 A |
171 | options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall> |
172 | #options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall> | |
9bccf70c | 173 | |
3e170ce0 A |
174 | pseudo-device gif 1 # <gif> |
175 | pseudo-device dummy 2 # <dummy> | |
176 | pseudo-device stf 1 # <stf> | |
9bccf70c | 177 | |
3e170ce0 A |
178 | options CRYPTO # <ipsec,crypto> |
179 | options CRYPTO_SHA2 # <crypto_sha2> | |
180 | options ENCRYPTED_SWAP # <encrypted_swap> | |
2d21ac55 | 181 | |
3e170ce0 | 182 | options ZLIB # inflate/deflate support # <zlib> |
1c79356b | 183 | |
3e170ce0 | 184 | options IF_BRIDGE # <if_bridge> |
b7266188 | 185 | |
2d21ac55 A |
186 | # |
187 | # configurable kernel event related resources | |
188 | # | |
189 | options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge> | |
190 | options CONFIG_KN_HASHSIZE=48 # <small,xsmall> | |
191 | options CONFIG_KN_HASHSIZE=20 # <bsmall> | |
192 | ||
193 | # | |
194 | # configurable vfs related resources | |
195 | # CONFIG_VNODES - used to pre allocate vnode related resources | |
196 | # CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes | |
197 | # CONFIG_NC_HASH - name cache hash table allocation | |
198 | # CONFIG_VFS_NAMES - name strings | |
199 | # | |
200 | # 263168 magic number for medium CONFIG_VNODES is based on memory | |
201 | # Number vnodes is (memsize/64k) + 1024 | |
202 | # This is the calculation that is used by launchd in tiger | |
203 | # we are clipping the max based on 16G | |
204 | # ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168; | |
205 | ||
206 | options CONFIG_VNODES=263168 # <large,xlarge> | |
207 | options CONFIG_VNODES=263168 # <medium> | |
208 | options CONFIG_VNODES=10240 # <small> | |
3e170ce0 | 209 | options CONFIG_VNODES=750 # <bsmall> |
2d21ac55 | 210 | |
3e170ce0 A |
211 | options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge> |
212 | options CONFIG_VNODE_FREE_MIN=300 # <medium> | |
213 | options CONFIG_VNODE_FREE_MIN=200 # <small> | |
214 | options CONFIG_VNODE_FREE_MIN=100 # <xsmall> | |
215 | options CONFIG_VNODE_FREE_MIN=75 # <bsmall> | |
2d21ac55 A |
216 | |
217 | options CONFIG_NC_HASH=5120 # <large,xlarge> | |
218 | options CONFIG_NC_HASH=4096 # <medium> | |
219 | options CONFIG_NC_HASH=2048 # <small,xsmall> | |
220 | options CONFIG_NC_HASH=1024 # <bsmall> | |
221 | ||
222 | options CONFIG_VFS_NAMES=5120 # <large,xlarge> | |
223 | options CONFIG_VFS_NAMES=4096 # <medium> | |
224 | options CONFIG_VFS_NAMES=3072 # <small,xsmall> | |
225 | options CONFIG_VFS_NAMES=2048 # <bsmall> | |
226 | ||
b7266188 A |
227 | options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium> |
228 | options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall> | |
229 | ||
2d21ac55 A |
230 | # |
231 | # configurable options for minumum number of buffers for kernel memory | |
232 | # | |
233 | options CONFIG_MIN_NBUF=256 # <medium,large,xlarge> | |
234 | options CONFIG_MIN_NBUF=128 # <small> | |
235 | options CONFIG_MIN_NBUF=80 # <xsmall> | |
236 | options CONFIG_MIN_NBUF=64 # <bsmall> | |
237 | ||
238 | options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge> | |
239 | options CONFIG_MIN_NIOBUF=64 # <xsmall,small> | |
240 | options CONFIG_MIN_NIOBUF=32 # <bsmall> | |
241 | ||
242 | # | |
243 | # set maximum space used for packet buffers | |
244 | # | |
3e170ce0 A |
245 | options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge> |
246 | options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium> | |
247 | options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small> | |
2d21ac55 A |
248 | |
249 | # | |
250 | # Configure size of TCP hash table | |
251 | # | |
252 | options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge> | |
253 | options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall> | |
254 | ||
316670eb A |
255 | # |
256 | # Configure bandwidth limiting sysctl | |
257 | # | |
258 | options CONFIG_ICMP_BANDLIM=250 # <medium,large,xlarge> | |
259 | options CONFIG_ICMP_BANDLIM=50 # <xsmall,small,bsmall> | |
260 | ||
2d21ac55 A |
261 | # |
262 | # configurable async IO options | |
263 | # CONFIG_AIO_MAX - system wide limit of async IO requests. | |
264 | # CONFIG_AIO_PROCESS_MAX - process limit of async IO requests. | |
265 | # CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created. | |
266 | # | |
3e170ce0 A |
267 | options CONFIG_AIO_MAX=360 # <xlarge> |
268 | options CONFIG_AIO_MAX=180 # <large> | |
2d21ac55 A |
269 | options CONFIG_AIO_MAX=90 # <medium> |
270 | options CONFIG_AIO_MAX=45 # <small> | |
271 | options CONFIG_AIO_MAX=20 # <xsmall> | |
272 | options CONFIG_AIO_MAX=10 # <bsmall> | |
273 | ||
274 | options CONFIG_AIO_PROCESS_MAX=64 # <xlarge> | |
275 | options CONFIG_AIO_PROCESS_MAX=32 # <large> | |
276 | options CONFIG_AIO_PROCESS_MAX=16 # <medium> | |
277 | options CONFIG_AIO_PROCESS_MAX=12 # <small> | |
278 | options CONFIG_AIO_PROCESS_MAX=8 # <xsmall> | |
279 | options CONFIG_AIO_PROCESS_MAX=4 # <bsmall> | |
280 | ||
3e170ce0 | 281 | options CONFIG_AIO_THREAD_COUNT=16 # <xlarge> |
2d21ac55 A |
282 | options CONFIG_AIO_THREAD_COUNT=8 # <large> |
283 | options CONFIG_AIO_THREAD_COUNT=4 # <medium> | |
284 | options CONFIG_AIO_THREAD_COUNT=3 # <small> | |
285 | options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall> | |
286 | ||
3e170ce0 A |
287 | options CONFIG_MAXVIFS=32 # <medium,large,xlarge> |
288 | options CONFIG_MAXVIFS=16 # <small,xsmall> | |
289 | options CONFIG_MAXVIFS=2 # <bsmall> | |
2d21ac55 A |
290 | |
291 | options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge> | |
292 | options CONFIG_MFCTBLSIZ=128 # <small,xsmall> | |
293 | options CONFIG_MFCTBLSIZ=16 # <bsmall> | |
294 | ||
6d2010ae A |
295 | # |
296 | # configurable kernel message buffer size | |
297 | # | |
298 | options CONFIG_MSG_BSIZE=4096 # <bsmall,small,xsmall> | |
299 | options CONFIG_MSG_BSIZE=16384 # <medium,large,xlarge> | |
300 | ||
3e170ce0 A |
301 | # |
302 | # maximum size of the per-process Mach IPC table | |
303 | # | |
304 | options CONFIG_IPC_TABLE_ENTRIES_STEPS=64 # 137898 entries # <bsmall,small,xsmall> | |
305 | options CONFIG_IPC_TABLE_ENTRIES_STEPS=256 # 300714 entries # <medium,large,xlarge> | |
306 | ||
39037602 | 307 | |
2d21ac55 A |
308 | # |
309 | # configurable kernel - use these options to strip strings from panic | |
310 | # and printf calls. | |
311 | # no_panic_str - saves around 50K of kernel footprint. | |
312 | # no_printf_str - saves around 45K of kernel footprint. | |
313 | # | |
314 | options CONFIG_NO_PANIC_STRINGS # <no_panic_str> | |
315 | options CONFIG_NO_PRINTF_STRINGS # <no_printf_str> | |
316 | options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str> | |
317 | ||
6d2010ae A |
318 | # |
319 | # use finer-grained lock groups for the proc subsystem | |
320 | # | |
321 | options CONFIG_FINE_LOCK_GROUPS # <medium,large,xlarge> | |
322 | ||
fe8ab488 | 323 | |
b7266188 A |
324 | # support dynamic signing of code |
325 | # | |
326 | options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning> | |
327 | ||
fe8ab488 A |
328 | # enforce library validation on all processes. |
329 | # | |
330 | options CONFIG_ENFORCE_LIBRARY_VALIDATION # <config_library_validation> | |
331 | ||
332 | # | |
333 | # code decryption... used on embedded for app protection, DSMOS on desktop | |
334 | # | |
3e170ce0 | 335 | options CONFIG_CODE_DECRYPTION # <config_code_decryption> |
fe8ab488 | 336 | |
d1ecb069 A |
337 | # |
338 | # User Content Protection, used on embedded | |
339 | # | |
3e170ce0 | 340 | options CONFIG_PROTECT # <config_protect> |
d1ecb069 | 341 | |
6d2010ae | 342 | # |
316670eb A |
343 | # enable per-process memory priority tracking |
344 | # | |
3e170ce0 | 345 | options CONFIG_MEMORYSTATUS # <memorystatus> |
316670eb A |
346 | |
347 | # | |
348 | # enable jetsam - used on embedded | |
349 | # | |
3e170ce0 A |
350 | options CONFIG_JETSAM # <jetsam> |
351 | ||
39037602 A |
352 | # |
353 | # enable new link table implementation stats/debugging | |
354 | # (adds mesaureable overhead) | |
355 | # | |
356 | options CONFIG_LTABLE_STATS # <config_ltable_stats> | |
357 | options CONFIG_LTABLE_DEBUG # <config_ltable_debug> | |
358 | ||
3e170ce0 A |
359 | # |
360 | # enable new wait queue implementation stats / debugging | |
361 | # | |
362 | options CONFIG_WAITQ_STATS # <config_waitq_stats> | |
363 | options CONFIG_WAITQ_DEBUG # <config_waitq_debug> | |
316670eb A |
364 | |
365 | # | |
366 | # enable freezing of suspended processes - used on embedded | |
6d2010ae | 367 | # |
3e170ce0 | 368 | options CONFIG_FREEZE # <freeze> |
6d2010ae | 369 | |
3e170ce0 | 370 | options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap> |
593a1d5f | 371 | |
fe8ab488 A |
372 | # |
373 | # enable detectiion of file cache thrashing - used on platforms with | |
374 | # dynamic VM compression enabled | |
375 | # | |
3e170ce0 | 376 | options CONFIG_PHANTOM_CACHE # <phantom_cache> |
fe8ab488 | 377 | |
316670eb A |
378 | # |
379 | # memory pressure event support | |
316670eb A |
380 | # |
381 | options VM_PRESSURE_EVENTS # <vm_pressure_events> | |
382 | ||
39037602 A |
383 | options CONFIG_SECLUDED_MEMORY # <config_secluded_memory> |
384 | ||
385 | options CONFIG_BACKGROUND_QUEUE # <config_background_queue> | |
386 | ||
fe8ab488 A |
387 | # |
388 | # I/O Scheduling | |
389 | # | |
390 | options CONFIG_IOSCHED # <config_iosched> | |
391 | ||
39037602 A |
392 | # |
393 | # Accounting for I/O usage | |
394 | # | |
395 | options CONFIG_IO_ACCOUNTING # <config_io_accounting> | |
396 | ||
39236c6e A |
397 | # |
398 | # Enable inheritance of importance through specially marked mach ports and for file locks | |
399 | # For now debug is enabled wherever inheritance is | |
400 | # | |
401 | options IMPORTANCE_INHERITANCE # <importance_inheritance> | |
402 | options IMPORTANCE_DEBUG # <importance_inheritance> | |
403 | ||
3e170ce0 | 404 | options CONFIG_TELEMETRY # <config_telemetry> |
39236c6e A |
405 | |
406 | options CONFIG_PROC_UUID_POLICY # <config_proc_uuid_policy> | |
407 | ||
fe8ab488 A |
408 | # |
409 | # ECC data logging | |
410 | # | |
3e170ce0 | 411 | options CONFIG_ECC_LOGGING # <config_ecc_logging> |
fe8ab488 | 412 | |
39037602 A |
413 | # |
414 | # Application core dumps | |
415 | # | |
416 | options CONFIG_COREDUMP # <config_coredump> | |
417 | ||
1c79356b A |
418 | # |
419 | # Ethernet (ARP) | |
420 | # | |
3e170ce0 | 421 | pseudo-device ether # <networking,inet,inet6> |
1c79356b A |
422 | # |
423 | # Network loopback device | |
424 | # | |
3e170ce0 | 425 | pseudo-device loop # <networking,inet,inet6> |
1c79356b A |
426 | # |
427 | # UCB pseudo terminal service | |
428 | # | |
2d21ac55 A |
429 | pseudo-device pty 512 init pty_init # <xlarge> |
430 | pseudo-device pty 256 init pty_init # <large> | |
431 | pseudo-device pty 128 init pty_init # <medium> | |
432 | pseudo-device pty 48 init pty_init # <small> | |
433 | pseudo-device pty 16 init pty_init # <xsmall> | |
434 | pseudo-device pty 8 init pty_init # <bsmall> | |
435 | # | |
436 | # Cloning pseudo terminal service | |
437 | # | |
438 | pseudo-device ptmx 1 init ptmx_init | |
9bccf70c A |
439 | |
440 | # | |
441 | # vnode device | |
2d21ac55 | 442 | # |
fe8ab488 | 443 | pseudo-device vndevice 4 init vndevice_init # <development,debug> |
9bccf70c | 444 | |
55e303ae A |
445 | # |
446 | # memory device | |
447 | pseudo-device mdevdevice 1 init mdevinit | |
448 | ||
9bccf70c | 449 | # |
1c79356b A |
450 | # |
451 | # packet filter device | |
452 | # | |
39236c6e | 453 | pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6> |
1c79356b | 454 | |
91447636 A |
455 | # |
456 | # fsevents device | |
2d21ac55 | 457 | pseudo-device fsevents 1 init fsevents_init # <config_fse> |
91447636 | 458 | |
0b4e3aa0 | 459 | pseudo-device random 1 init random_init |
2d21ac55 A |
460 | pseudo-device dtrace 1 init dtrace_init # <config_dtrace> |
461 | pseudo-device helper 1 init helper_init # <config_dtrace> | |
462 | pseudo-device lockstat 1 init lockstat_init # <config_dtrace> | |
463 | pseudo-device sdt 1 init sdt_init # <config_dtrace> | |
464 | pseudo-device systrace 1 init systrace_init # <config_dtrace> | |
465 | pseudo-device fbt 1 init fbt_init # <config_dtrace> | |
466 | pseudo-device profile_prvd 1 init profile_init # <config_dtrace> | |
fe8ab488 A |
467 | |
468 | # | |
469 | # IOKit configuration options | |
470 | # | |
471 | ||
472 | options HIBERNATION # system hibernation # <hibernation> | |
3e170ce0 A |
473 | options IOKITCPP # C++ implementation # <iokitcpp> |
474 | options IOKITSTATS # IOKit statistics # <iokitstats> | |
475 | options IOTRACKING # IOKit tracking # <iotracking> | |
476 | options CONFIG_SLEEP # # <config_sleep> | |
fe8ab488 | 477 | options CONFIG_MAX_THREADS=64 # IOConfigThread threads |
3e170ce0 A |
478 | options NO_KEXTD # <no_kextd> |
479 | options NO_KERNEL_HID # <no_kernel_hid> | |
fe8ab488 A |
480 | |
481 | # | |
482 | # Libkern configuration options | |
483 | # | |
484 | ||
485 | options LIBKERNCPP # C++ implementation # <libkerncpp> | |
486 | options CONFIG_KXLD # kxld/runtime linking of kexts # <config_kxld> | |
487 | options CONFIG_KEC_FIPS # Kernel External Components for FIPS compliance (KEC_FIPS) # <config_kec_fips> | |
488 | ||
489 | # Note that when adding this config option to an architecture, one MUST | |
490 | # add the architecture to the preprocessor test at the beginning of | |
491 | # libkern/kmod/cplus_{start.c,stop.c}. | |
492 | options CONFIG_STATIC_CPPINIT # Static library initializes kext cpp runtime # <config_static_cppinit> | |
493 | ||
494 | # | |
495 | # libsa configuration options | |
496 | # | |
497 | ||
498 | # CONFIG_KEXT_BASEMENT - alloc post boot loaded kexts after prelinked kexts | |
499 | # | |
3e170ce0 | 500 | options CONFIG_KEXT_BASEMENT # # <config_kext_basement> |
fe8ab488 | 501 | |
490019cf A |
502 | # |
503 | # Persona Management | |
504 | # | |
505 | options CONFIG_PERSONAS # Persona management # <config_personas> | |
506 | options PERSONA_DEBUG # Persona debugging # <persona_debug> | |
507 | ||
fe8ab488 A |
508 | # |
509 | # security configuration options | |
510 | # | |
511 | ||
3e170ce0 | 512 | options CONFIG_MACF # Mandatory Access Control Framework # <config_macf> |
fe8ab488 | 513 | options CONFIG_MACF_SOCKET_SUBSET # MAC socket subest (no labels) # <config_macf> |
3e170ce0 A |
514 | #options CONFIG_MACF_SOCKET # MAC socket labels # <config_macf> |
515 | #options CONFIG_MACF_NET # mbuf # <config_macf> | |
516 | #options CONFIG_MACF_DEBUG # debug # <config_macf> | |
fe8ab488 | 517 | |
3e170ce0 | 518 | options CONFIG_AUDIT # Kernel auditing # <config_audit> |
fe8ab488 A |
519 | |
520 | ||
521 | # | |
522 | # MACH configuration options. | |
523 | # | |
524 | # TASK_SWAPPER enables code that manages demand for physical memory by | |
525 | # forcibly suspending tasks when the demand exceeds supply. This | |
526 | # option should be on. | |
527 | # | |
fe8ab488 A |
528 | options MACH_RT |
529 | options TASK_SWAPPER # <task_swapper_disabled> | |
530 | ||
531 | # | |
532 | # This defines configuration options that are normally used only during | |
533 | # kernel code development and debugging. They add run-time error checks or | |
534 | # statistics gathering, which will slow down the system | |
535 | # | |
536 | ########################################################## | |
537 | # | |
538 | # MACH_ASSERT controls the assert() and ASSERT() macros, used to verify the | |
539 | # consistency of various algorithms in the kernel. The performance impact | |
540 | # of this option is significant. | |
541 | # | |
542 | options MACH_ASSERT # # <mach_assert> | |
543 | # | |
544 | # MACH_DEBUG enables the mach_debug_server, a message interface used to | |
545 | # retrieve or control various statistics. This interface may expose data | |
546 | # structures that would not normally be allowed outside the kernel, and | |
547 | # MUST NOT be enabled on a released configuration. | |
548 | # Other options here enable information retrieval for specific subsystems | |
549 | # | |
550 | options MACH_DEBUG # IPC debugging interface # <mdebug> | |
551 | options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug> | |
3e170ce0 | 552 | options MACH_VM_DEBUG # # <debug> |
fe8ab488 A |
553 | # |
554 | # MACH_MP_DEBUG control the possible dead locks that may occur by controlling | |
555 | # that IPL level has been raised down to SPL0 after some calls to | |
556 | # hardclock device driver. | |
557 | # | |
3e170ce0 | 558 | options MACH_MP_DEBUG # # <debug> |
fe8ab488 A |
559 | # |
560 | # ZONE_DEBUG keeps track of all zalloc()ed elements to perform further | |
561 | # operations on each element. | |
562 | # | |
563 | options ZONE_DEBUG # # <debug> | |
564 | ||
565 | options CONFIG_ZLEAKS # Live zone leak debugging # <zleaks> | |
566 | ||
fe8ab488 A |
567 | # |
568 | # CONFIG_TASK_ZONE_INFO allows per-task zone information to be extracted | |
569 | # Primarily useful for xnu debug and development. | |
570 | # | |
571 | options CONFIG_TASK_ZONE_INFO # <task_zone_info> | |
572 | # | |
573 | # CONFIG_DEBUGGER_FOR_ZONE_INFO restricts zone info so that it is only | |
574 | # available when the kernel is being debugged. | |
575 | # | |
576 | options CONFIG_DEBUGGER_FOR_ZONE_INFO # <debugger_for_zone_info> | |
577 | # | |
578 | # XPR_DEBUG enables the gathering of data through the XPR macros inserted | |
579 | # into various subsystems. This option is normally only enabled for | |
580 | # specific performance or behavior studies, as the overhead in both | |
581 | # code and data space is large. The data is normally retrieved through | |
582 | # the kernel debugger (kdb) or by reading /dev/kmem. | |
583 | # | |
584 | options XPR_DEBUG # # <debug> | |
585 | # | |
586 | # MACH_LDEBUG controls the internal consistency checks and | |
587 | # data gathering in the locking package. This also enables a debug-only | |
588 | # version of simple-locks on uniprocessor machines. The code size and | |
589 | # performance impact of this option is significant. | |
590 | # | |
591 | options MACH_LDEBUG # # <debug> | |
592 | ||
593 | # | |
594 | # configuration option for full, partial, or no kernel debug event tracing | |
595 | # | |
596 | options KDEBUG # kernel tracing # <kdebug> | |
597 | options IST_KDEBUG # limited tracing # <ist_kdebug> | |
3e170ce0 | 598 | options NO_KDEBUG # no kernel tracing # <no_kdebug> |
fe8ab488 A |
599 | |
600 | # | |
601 | # CONFIG_DTRACE enables code needed to support DTrace. Currently this is | |
602 | # only used for delivery of traps/interrupts to DTrace. | |
603 | # | |
3e170ce0 | 604 | options CONFIG_DTRACE # # <config_dtrace> |
fe8ab488 A |
605 | |
606 | # kernel performance tracing | |
607 | options KPERF # <kperf> | |
608 | options KPC # <kpc> | |
609 | ||
813fb2f6 A |
610 | options PGO # <pgo> |
611 | ||
fe8ab488 A |
612 | # MACH_COUNTERS enables code that handles various counters in the system. |
613 | # | |
3e170ce0 | 614 | options MACH_COUNTERS # # <debug> |
fe8ab488 A |
615 | |
616 | # DEVELOPMENT define for development builds | |
3e170ce0 | 617 | options DEVELOPMENT # dev kernel # <development> |
fe8ab488 A |
618 | |
619 | # DEBUG kernel | |
3e170ce0 | 620 | options DEBUG # general debugging code # <debug> |
fe8ab488 A |
621 | |
622 | ########################################################## | |
623 | # | |
624 | # This defines configuration options that are normally used only during | |
625 | # kernel code development and performance characterization. They add run-time | |
626 | # statistics gathering, which will slow down the system, | |
627 | # | |
628 | ########################################################## | |
629 | # | |
630 | # MACH_IPC_STATS controls the collection of statistics in the MACH IPC | |
631 | # subsystem. | |
632 | # | |
633 | #options MACH_IPC_STATS | |
634 | # | |
635 | # MACH_CLUSTER_STATS controls the collection of various statistics concerning | |
636 | # the effectiveness and behavior of the clustered pageout and pagein | |
637 | # code. | |
638 | # | |
639 | #options MACH_CLUSTER_STATS | |
640 | ||
641 | options MACH_BSD # BSD subsystem on top of Mach # <mach_bsd> | |
642 | options IOKIT # # <iokit> | |
643 | ||
644 | # | |
645 | # configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in | |
646 | # sync with bsd/conf/MASTER until we fix the config system... todo XXX | |
647 | # | |
648 | options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge> | |
649 | options CONFIG_THREAD_MAX=1536 # <small,xsmall> | |
650 | options CONFIG_THREAD_MAX=1024 # <bsmall> | |
651 | ||
652 | options CONFIG_TASK_MAX=1024 # <medium,large,xlarge> | |
653 | options CONFIG_TASK_MAX=768 # <small,> | |
654 | options CONFIG_TASK_MAX=512 # <xsmall,bsmall> | |
655 | ||
656 | options CONFIG_ZONE_MAP_MIN=12582912 # <medium,large,xlarge> | |
657 | options CONFIG_ZONE_MAP_MIN=6291456 # <small> | |
658 | options CONFIG_ZONE_MAP_MIN=1048576 # <xsmall,bsmall> | |
659 | ||
660 | # Sizes must be a power of two for the zhash to | |
661 | # be able to just mask off bits instead of mod | |
662 | options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=16384 #<medium,large,xlarge> | |
663 | options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=8192 #<small,xsmall,bsmall> | |
664 | options CONFIG_ZLEAK_TRACE_MAP_NUM=8192 #<medium,large,xlarge> | |
665 | options CONFIG_ZLEAK_TRACE_MAP_NUM=4096 #<small,xsmall,bsmall> | |
666 | ||
667 | # vc_progress_white - make the progress gear white instead of black | |
668 | options CONFIG_VC_PROGRESS_WHITE # <vc_progress_white> | |
669 | ||
fe8ab488 A |
670 | # |
671 | # Timeshare scheduler implementations | |
672 | # | |
673 | options CONFIG_SCHED_TRADITIONAL # <config_sched_traditional> | |
674 | options CONFIG_SCHED_PROTO # <config_sched_proto> | |
675 | options CONFIG_SCHED_GRRR # <config_sched_grrr> | |
676 | options CONFIG_SCHED_GRRR_CORE # <config_sched_grrr> | |
677 | options CONFIG_SCHED_MULTIQ # <config_sched_multiq> | |
678 | options CONFIG_SCHED_TIMESHARE_CORE # <config_sched_traditional,config_sched_multiq> | |
fe8ab488 | 679 | |
3e170ce0 A |
680 | options CONFIG_SCHED_IDLE_IN_PLACE # <config_sched_idle_in_place> |
681 | options CONFIG_SCHED_SFI # <config_sched_sfi> | |
fe8ab488 | 682 | options CONFIG_GZALLOC # <config_gzalloc> |
3e170ce0 | 683 | options CONFIG_SCHED_DEFERRED_AST # <config_sched_deferred_ast> |
fe8ab488 A |
684 | |
685 | # Enable allocation of contiguous physical memory through vm_map_enter_cpm() | |
3e170ce0 | 686 | options VM_CPM # <vm_cpm> |
fe8ab488 | 687 | |
3e170ce0 | 688 | options CONFIG_SKIP_PRECISE_USER_KERNEL_TIME # <config_skip_precise_user_kernel_time> |
fe8ab488 A |
689 | |
690 | # | |
691 | # Switch to disable cpu, wakeup and high memory watermark monitors | |
692 | # | |
3e170ce0 | 693 | options CONFIG_NOMONITORS # <config_nomonitors> |
fe8ab488 | 694 | |
3e170ce0 A |
695 | options MACH_KDP # KDP # <mach_kdp> |
696 | options CONFIG_SERIAL_KDP # KDP over serial # <config_serial_kdp> | |
fe8ab488 A |
697 | options CONFIG_KDP_INTERACTIVE_DEBUGGING # <kdp_interactive_debugging> |
698 | ||
3e170ce0 A |
699 | # |
700 | # Kernel Power On Self Tests | |
701 | # | |
702 | options CONFIG_XNUPOST # <config_xnupost> | |
703 | ||
704 | # | |
705 | # Kernel proc reference instrumentation | |
706 | # | |
707 | options PROC_REF_DEBUG # <proc_ref_debug> | |
708 | ||
39037602 A |
709 | # |
710 | # Kernel OS reason debug instrumentation | |
711 | # | |
712 | options OS_REASON_DEBUG # <os_reason_debug> | |
713 | ||
fe8ab488 A |
714 | # |
715 | # Kernel Voucher Attr Manager for Activity Trace | |
716 | # | |
3e170ce0 | 717 | options CONFIG_ATM # <config_atm> |
fe8ab488 A |
718 | |
719 | # | |
720 | # Kernel Voucher Attr Manager for BANK | |
721 | # | |
3e170ce0 | 722 | options CONFIG_BANK # <config_bank> |
fe8ab488 A |
723 | |
724 | ||
725 | # Group related tasks together into coalitions | |
726 | options CONFIG_COALITIONS # <config_coalitions> | |
727 | ||
3e170ce0 A |
728 | # Enable support for sysdiagnose notifications |
729 | options CONFIG_SYSDIAGNOSE # <config_sysdiagnose> | |
730 | ||
fe8ab488 | 731 | # Configurable Security Restrictions |
3e170ce0 | 732 | options CONFIG_CSR # <config_csr> |
fe8ab488 A |
733 | |
734 | # | |
735 | # Console options | |
736 | # | |
737 | options SERIAL_CONSOLE # bi-directional serial over UART | |
738 | options VIDEO_CONSOLE # uni-directional output over framebuffer | |
739 | ||
740 | # | |
741 | # Syscall options | |
742 | # | |
743 | options CONFIG_REQUIRES_U32_MUNGING # incoming U32 argument structures must be munged to match U64 # <config_requires_u32_munging> |