]> git.saurik.com Git - apple/xnu.git/blame - bsd/conf/MASTER
xnu-1699.32.7.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>
6d2010ae 104options CONFIG_ZLEAKS # Live zone leak debug sysctls # <zleaks>
1c79356b
A
105options MACH_NP # Mach IPC support # <np>
106options MACH_NBC # No buffer cache # <nbc>
1c79356b
A
107options MACH_NET # Fast network access # <mach_net>
108options MACH_XP # external pager support # <xp>
109options NORMA_IPC # NORMA IPC support # <norma_ipc>
110options NORMA_DEVICE # NORMA unified device names # <norma_device>
111options NORMA_VM # NORMA virtual memory support # <norma_vm>
112options NORMA_TASK # NORMA task support # <norma_task>
113options NORMA_ETHER # NORMA across ethernet # <norma_ether>
114options SIMPLE_CLOCK # don't assume fixed tick # <simple_clock>
1c79356b
A
115options XPR_DEBUG # kernel tracing # <xpr_debug>
116options KDEBUG # kernel tracing # <kdebug>
117options DDM_DEBUG # driverkit-style tracing # <ddm_debug>
118options MACH_OLD_VM_COPY # Old vm_copy technology # <!newvm>
119options NO_DIRECT_RPC # for untyped mig servers #
120options IPX # ipx stack # <ipx>
121options EON # # <eon>
122options ISO # ISO stack # <iso>
123options LLC # 802.2 support # <llc>
124options LOOP # loopback support # <loop>
125options MROUTING # multicast routing # <mrouting>
1c79356b 126options ROUTING # routing # <routing>
1c79356b 127options VLAN # # <vlan>
91447636 128options BOND # # <bond>
b0d623f7
A
129options PF # Packet Filter # <pf>
130options PF_PKTHDR # PF tag inside mbuf pkthdr # <pf_pkthdr>
131options PFLOG # PF log interface # <pflog>
2d21ac55
A
132options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
133options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
134options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
135options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
91447636 136options DUMMYNET # dummynet support # <dummynet>
2d21ac55 137options TRAFFIC_MGT # traffic management support # <traffic_mgt>
91447636 138options IPFW2 # IP firewall (new version) # <ipfw2>
1c79356b 139options MULTICAST # Internet Protocol Class-D $
9bccf70c
A
140options TCPDEBUG # TCP debug # <tcpdebug>
141options RANDOM_IP_ID # random (not sequential) ip ids # <randomipid>
142options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
143options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
2d21ac55 144options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
2d21ac55
A
145options SYSV_SEM # SVID semaphores # <sysv_sem>
146options SYSV_MSG # SVID messages # <sysv_msg>
147options SYSV_SHM # SVID shared mem # <sysv_shm>
b0d623f7 148options PSYNCH # pthread synch # <psynch>
2d21ac55
A
149options PANIC_INFO # want kernel panic info # <panic_info>
150options DEVELOPMENT # dev kernel # <development>
1c79356b 151
2d21ac55
A
152# secure_kernel - secure kernel from user programs
153options SECURE_KERNEL # <secure_kernel>
1c79356b 154
b0d623f7
A
155options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
156
1c79356b
A
157#
158# 4.4 general kernel
159#
2d21ac55 160options SOCKETS # socket support # <inet, inet6, netat>
1c79356b 161options DIAGNOSTIC # diagnostics # <diagnostic>
2d21ac55 162options CONFIG_DTRACE # dtrace support # <config_dtrace>
55e303ae 163options GPROF # build profiling # <profile>
2d21ac55
A
164options SENDFILE # sendfile # <sendfile>
165options NETWORKING # networking layer # <inet, inet6, netat>
166options CONFIG_FSE # file system events # <config_fse>
167options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
168options CONFIG_SOWUPCALL # SB_UPCALL on sowwakeup # <config_sowupcall>
2d21ac55 169options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
b0d623f7
A
170options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # <config_force_out_ifp>
171options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # <config_ifef_nowindowscale>
593a1d5f
A
172
173options CONFIG_WORKQUEUE # <config_workqueue>
1c79356b
A
174
175#
176# 4.4 filesystems
177#
2d21ac55
A
178options FFS # Fast Filesystem Support # <ffs>
179options HFS # HFS/HFS+ support # <hfs>
1c79356b 180options FIFO # fifo support # <fifo>
1c79356b 181options FDESC # fdesc_fs support # <fdesc>
1c79356b 182options DEVFS # devfs support # <devfs>
2d21ac55 183options JOURNALING # journaling support # <journaling>
b0d623f7 184options HFS_COMPRESSION # hfs compression # <hfs_compression>
060df5ea 185options CONFIG_HFS_TRIM # HFS trims unused blocks # <config_hfs_trim>
2d21ac55
A
186
187#
188# file system features
189#
190options QUOTA # file system quotas # <quota>
191options REV_ENDIAN_FS # Reverse Endian FS # <revfs>
192options NAMEDSTREAMS # named stream vnop support # <namedstreams>
193options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
b7266188 194options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
6d2010ae 195options CONFIG_TRIGGERS # trigger vnodes # <config_triggers>
1c79356b
A
196
197#
198# NFS support
199#
2d21ac55
A
200options NFSCLIENT # Be an NFS client # <nfsclient>
201options NFSSERVER # Be an NFS server # <nfsserver>
1c79356b
A
202
203#
204# AppleTalk Support
205#
2d21ac55 206options NETAT # AppleTalk support # <netat>
0c530ab8 207#options AURP_SUPPORT # AppleTalk Update Routing # <netat>
2d21ac55 208
1c79356b
A
209#
210# Machine Independent Apple Features
211#
212options KERNSERV # kernel_server intarface # <kernserv>
213options MALLOCDEBUG # kernel malloc debugging # <mallocdebug>
214options DRIVERKIT # driverkit support # <driverkit>
215options KERNOBJC # Objective-C support # <kernobjc>
216options OBJCTEST # Objc internal test # <objctest>
217options KERNEL_STACK # MI kernel stack support # <kernstack>
2d21ac55 218profile # build a profiling kernel # <profile>
1c79356b 219
9bccf70c
A
220#
221# Point-to-Point Protocol support
222#
223pseudo-device ppp 2 # <ppp>
224
1c79356b 225#
9bccf70c 226# IPv6 Support
1c79356b
A
227#
228options "INET6" # kernel IPv6 Support # <inet6>
1c79356b
A
229options IPSEC # IP security # <ipsec>
230options IPSEC_ESP # IP security # <ipsec>
231options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
91447636
A
232options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
233#options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
9bccf70c
A
234
235pseudo-device gif 1 # <gif>
1c79356b
A
236pseudo-device dummy 2 # <dummy>
237pseudo-device faith 1 # <faith>
9bccf70c
A
238pseudo-device stf 1 # <stf>
239
240options crypto # <ipsec,crypto>
2d21ac55
A
241options ALLCRYPTO # <xlarge,large,medium>
242options randomipid # <inet,randomipid>
243
244options ZLIB # inflate/deflate support # <zlib>
1c79356b 245
6d2010ae 246options IF_BRIDGE # <if_bridge>
b7266188 247
1c79356b
A
248makeoptions LIBDRIVER = "libDriver_kern.o" # <libdriver>
249makeoptions LIBOBJC = "libkobjc.o" # <kernobjc>
250
251maxusers 64 # <xlarge>
252maxusers 50 # <large>
253maxusers 32 # <medium>
254maxusers 16 # <small>
2d21ac55 255maxusers 8 # <xsmall>
1c79356b
A
256maxusers 2 # <bsmall>
257
258#
259# Multi-processor selection
260#
261pseudo-device cpus 64 # <multi64>
262pseudo-device cpus 32 # <multi32>
263pseudo-device cpus 16 # <multi16>
264pseudo-device cpus 2 # <multi2>
265pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
266
2d21ac55
A
267#
268# configurable kernel event related resources
269#
270options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
271options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
272options CONFIG_KN_HASHSIZE=20 # <bsmall>
273
274#
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
280#
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;
286
287options CONFIG_VNODES=263168 # <large,xlarge>
288options CONFIG_VNODES=263168 # <medium>
289options CONFIG_VNODES=10240 # <small>
b0d623f7 290options CONFIG_VNODES=750 # <bsmall>
2d21ac55
A
291
292options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
293options CONFIG_VNODE_FREE_MIN=300 # <medium>
294options CONFIG_VNODE_FREE_MIN=200 # <small>
295options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
296options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
297
298options CONFIG_NC_HASH=5120 # <large,xlarge>
299options CONFIG_NC_HASH=4096 # <medium>
300options CONFIG_NC_HASH=2048 # <small,xsmall>
301options CONFIG_NC_HASH=1024 # <bsmall>
302
303options CONFIG_VFS_NAMES=5120 # <large,xlarge>
304options CONFIG_VFS_NAMES=4096 # <medium>
305options CONFIG_VFS_NAMES=3072 # <small,xsmall>
306options CONFIG_VFS_NAMES=2048 # <bsmall>
307
b7266188
A
308options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
309options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
310
2d21ac55
A
311#
312# configurable kauth credential related resources
313#
314options KAUTH_CRED_PRIMES_COUNT=7 # <medium,large,xlarge>
315options KAUTH_CRED_PRIMES_COUNT=3 # <bsmall,xsmall,small>
316
317options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # <medium,large,xlarge>
318options KAUTH_CRED_PRIMES="{5, 17, 97}" # <bsmall,xsmall,small>
319
320#
321# configurable options for minumum number of buffers for kernel memory
322#
323options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
324options CONFIG_MIN_NBUF=128 # <small>
325options CONFIG_MIN_NBUF=80 # <xsmall>
326options CONFIG_MIN_NBUF=64 # <bsmall>
327
328options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
329options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
330options CONFIG_MIN_NIOBUF=32 # <bsmall>
331
332#
333# set maximum space used for packet buffers
334#
335options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
336options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
337options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
338
b0d623f7 339#
593a1d5f
A
340# set maximum space used for packet buffers
341#
b0d623f7
A
342options CONFIG_USESOCKTHRESHOLD=1 # <large,xlarge,medium>
343options CONFIG_USESOCKTHRESHOLD=0 # <bsmall,xsmall,small>
593a1d5f 344
2d21ac55
A
345#
346# Configure size of TCP hash table
347#
348options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
349options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
350
351#
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.
356#
357options CONFIG_AIO_MAX=360 # <xlarge>
358options CONFIG_AIO_MAX=180 # <large>
359options CONFIG_AIO_MAX=90 # <medium>
360options CONFIG_AIO_MAX=45 # <small>
361options CONFIG_AIO_MAX=20 # <xsmall>
362options CONFIG_AIO_MAX=10 # <bsmall>
363
364options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
365options CONFIG_AIO_PROCESS_MAX=32 # <large>
366options CONFIG_AIO_PROCESS_MAX=16 # <medium>
367options CONFIG_AIO_PROCESS_MAX=12 # <small>
368options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
369options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
370
371options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
372options CONFIG_AIO_THREAD_COUNT=8 # <large>
373options CONFIG_AIO_THREAD_COUNT=4 # <medium>
374options CONFIG_AIO_THREAD_COUNT=3 # <small>
375options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
376
377#
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
380#
381options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
382options CONFIG_THREAD_MAX=1536 # <small,xsmall>
383options CONFIG_THREAD_MAX=1024 # <bsmall>
384
385options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
386options CONFIG_MAXVIFS=16 # <small,xsmall>
387options CONFIG_MAXVIFS=2 # <bsmall>
388
389options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
390options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
391options CONFIG_MFCTBLSIZ=16 # <bsmall>
392
6d2010ae
A
393#
394# configurable kernel message buffer size
395#
396options CONFIG_MSG_BSIZE=4096 # <bsmall,small,xsmall>
397options CONFIG_MSG_BSIZE=16384 # <medium,large,xlarge>
398
2d21ac55
A
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#
405options CONFIG_NO_PANIC_STRINGS # <no_panic_str>
406options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
407options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
408
6d2010ae
A
409#
410# use finer-grained lock groups for the proc subsystem
411#
412options CONFIG_FINE_LOCK_GROUPS # <medium,large,xlarge>
413
2d21ac55
A
414#
415# configurable kernel - general switch to say we are building for an
416# embedded device
417#
418options CONFIG_EMBEDDED # <config_embedded>
419
b0d623f7
A
420# only execute signed code. Hang this off config_embedded since there's
421# nothing more appropriate right now
422#
423options CONFIG_ENFORCE_SIGNED_CODE # <config_embedded>
424
b7266188
A
425# support dynamic signing of code
426#
427options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
428
593a1d5f
A
429#
430# code decryption... used on embedded for app protection
431# must be set in all the bsd/conf and osfmk/conf MASTER files
432#
433options CONFIG_CODE_DECRYPTION # <config_embedded>
434
d1ecb069
A
435#
436# User Content Protection, used on embedded
437#
438
439options CONFIG_PROTECT # <config_protect>
440
6d2010ae
A
441#
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
445#
446options CONFIG_FREEZE # <freeze>
447
448options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap>
593a1d5f 449
1c79356b
A
450#
451# Ethernet (ARP)
452#
2d21ac55 453pseudo-device ether # <networking,inet,inet6,netat>
1c79356b
A
454#
455# Network loopback device
456#
2d21ac55 457pseudo-device loop # <networking,inet,inet6,netat>
1c79356b
A
458#
459# UCB pseudo terminal service
460#
2d21ac55
A
461pseudo-device pty 512 init pty_init # <xlarge>
462pseudo-device pty 256 init pty_init # <large>
463pseudo-device pty 128 init pty_init # <medium>
464pseudo-device pty 48 init pty_init # <small>
465pseudo-device pty 16 init pty_init # <xsmall>
466pseudo-device pty 8 init pty_init # <bsmall>
467#
468# Cloning pseudo terminal service
469#
470pseudo-device ptmx 1 init ptmx_init
9bccf70c
A
471
472#
473# vnode device
2d21ac55
A
474#
475pseudo-device vndevice 16 init vndevice_init # <xlarge>
476pseudo-device vndevice 8 init vndevice_init # <large>
477pseudo-device vndevice 4 init vndevice_init # <medium>
478pseudo-device vndevice 3 init vndevice_init # <small>
6d2010ae 479pseudo-device vndevice 2 init vndevice_init # <xsmall>
2d21ac55 480pseudo-device vndevice 2 init vndevice_init # <bsmall>
9bccf70c 481
55e303ae
A
482#
483# memory device
484pseudo-device mdevdevice 1 init mdevinit
485
9bccf70c 486#
1c79356b
A
487#
488# packet filter device
489#
2d21ac55 490pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6,netat>
1c79356b 491
91447636
A
492#
493# fsevents device
2d21ac55 494pseudo-device fsevents 1 init fsevents_init # <config_fse>
91447636 495
1c79356b
A
496#
497# shim to "linux" mach disk drivers (mach drivers must also be turned on)
498#
499# now using iokit disk shim, this is code is obsolete
500#pseudo-device diskshim
0b4e3aa0
A
501
502pseudo-device random 1 init random_init
2d21ac55
A
503pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
504pseudo-device helper 1 init helper_init # <config_dtrace>
505pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
506pseudo-device sdt 1 init sdt_init # <config_dtrace>
507pseudo-device systrace 1 init systrace_init # <config_dtrace>
508pseudo-device fbt 1 init fbt_init # <config_dtrace>
509pseudo-device profile_prvd 1 init profile_init # <config_dtrace>
0b4e3aa0 510