]> git.saurik.com Git - apple/xnu.git/blame_incremental - bsd/conf/MASTER
xnu-1504.3.12.tar.gz
[apple/xnu.git] / bsd / conf / MASTER
... / ...
CommitLineData
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#
78ident NeXT
79
80# obsolete timezone spec
81options TIMEZONE=0, PST=0
82
83options QUOTA # # <quota>
84options INET # # <inet>
85options ABSOLUTETIME_SCALAR_TYPE
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>
90options CONFIG_LCTX # Login Context
91
92options MACH # Standard Mach features # <mach>
93options MACH_ASSERT # Compile in assertions # <mach_assert>
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>
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>
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>
125options ROUTING # routing # <routing>
126options NETMIBS # # <netmibs>
127options VLAN # # <vlan>
128options BOND # # <bond>
129options PF # Packet Filter # <pf>
130options PF_PKTHDR # PF tag inside mbuf pkthdr # <pf_pkthdr>
131options PFLOG # PF log interface # <pflog>
132options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
133options IPFLOW # IP fast forwarding # <ipflow>
134options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
135options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
136options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
137options DUMMYNET # dummynet support # <dummynet>
138options TRAFFIC_MGT # traffic management support # <traffic_mgt>
139options IPFW2 # IP firewall (new version) # <ipfw2>
140options MULTICAST # Internet Protocol Class-D $
141options TCPDEBUG # TCP debug # <tcpdebug>
142options RANDOM_IP_ID # random (not sequential) ip ids # <randomipid>
143options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
144options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
145options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
146options SYSV_SEM # SVID semaphores # <sysv_sem>
147options SYSV_MSG # SVID messages # <sysv_msg>
148options SYSV_SHM # SVID shared mem # <sysv_shm>
149options PSYNCH # pthread synch # <psynch>
150options PANIC_INFO # want kernel panic info # <panic_info>
151options DEVELOPMENT # dev kernel # <development>
152
153# secure_kernel - secure kernel from user programs
154options SECURE_KERNEL # <secure_kernel>
155
156options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
157
158#
159# 4.4 general kernel
160#
161options SOCKETS # socket support # <inet, inet6, netat>
162options DIAGNOSTIC # diagnostics # <diagnostic>
163options CONFIG_DTRACE # dtrace support # <config_dtrace>
164options GPROF # build profiling # <profile>
165options SENDFILE # sendfile # <sendfile>
166options NETWORKING # networking layer # <inet, inet6, netat>
167options CONFIG_FSE # file system events # <config_fse>
168options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
169options CONFIG_SOWUPCALL # SB_UPCALL on sowwakeup # <config_sowupcall>
170options CONFIG_MBUF_NOEXPAND # limit mbuf expansion # <config_mbuf_noexpand>
171options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
172options CONFIG_MBUF_TAGS_MALLOC # use malloc for tags # <config_mbuf_tags_malloc>
173options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # <config_force_out_ifp>
174options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # <config_ifef_nowindowscale>
175
176options CONFIG_WORKQUEUE # <config_workqueue>
177
178
179#
180# 4.4 filesystems
181#
182options FFS # Fast Filesystem Support # <ffs>
183options HFS # HFS/HFS+ support # <hfs>
184options FIFO # fifo support # <fifo>
185options UNION # union_fs support # <union>
186options FDESC # fdesc_fs support # <fdesc>
187options DEVFS # devfs support # <devfs>
188options JOURNALING # journaling support # <journaling>
189options HFS_COMPRESSION # hfs compression # <hfs_compression>
190
191#
192# file system features
193#
194options QUOTA # file system quotas # <quota>
195options REV_ENDIAN_FS # Reverse Endian FS # <revfs>
196options NAMEDSTREAMS # named stream vnop support # <namedstreams>
197options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
198options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
199
200#
201# NFS support
202#
203options NFSCLIENT # Be an NFS client # <nfsclient>
204options NFSSERVER # Be an NFS server # <nfsserver>
205
206#
207# AppleTalk Support
208#
209options NETAT # AppleTalk support # <netat>
210#options AURP_SUPPORT # AppleTalk Update Routing # <netat>
211
212#
213# Machine Independent Apple Features
214#
215options KERNSERV # kernel_server intarface # <kernserv>
216options MALLOCDEBUG # kernel malloc debugging # <mallocdebug>
217options DRIVERKIT # driverkit support # <driverkit>
218options KERNOBJC # Objective-C support # <kernobjc>
219options OBJCTEST # Objc internal test # <objctest>
220options KERNEL_STACK # MI kernel stack support # <kernstack>
221profile # build a profiling kernel # <profile>
222
223#
224# Point-to-Point Protocol support
225#
226pseudo-device ppp 2 # <ppp>
227
228#
229# IPv6 Support
230#
231options "INET6" # kernel IPv6 Support # <inet6>
232options IPSEC # IP security # <ipsec>
233options IPSEC_ESP # IP security # <ipsec>
234options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
235options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
236#options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
237
238pseudo-device gif 1 # <gif>
239pseudo-device dummy 2 # <dummy>
240pseudo-device faith 1 # <faith>
241pseudo-device stf 1 # <stf>
242
243options crypto # <ipsec,crypto>
244options ALLCRYPTO # <xlarge,large,medium>
245options randomipid # <inet,randomipid>
246
247options ZLIB # inflate/deflate support # <zlib>
248
249options IF_BRIDGE # <if_bridge>
250
251makeoptions LIBDRIVER = "libDriver_kern.o" # <libdriver>
252makeoptions LIBOBJC = "libkobjc.o" # <kernobjc>
253
254maxusers 64 # <xlarge>
255maxusers 50 # <large>
256maxusers 32 # <medium>
257maxusers 16 # <small>
258maxusers 8 # <xsmall>
259maxusers 2 # <bsmall>
260
261#
262# Multi-processor selection
263#
264pseudo-device cpus 64 # <multi64>
265pseudo-device cpus 32 # <multi32>
266pseudo-device cpus 16 # <multi16>
267pseudo-device cpus 2 # <multi2>
268pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
269
270#
271# configurable kernel event related resources
272#
273options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
274options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
275options CONFIG_KN_HASHSIZE=20 # <bsmall>
276
277#
278# configurable vfs related resources
279# CONFIG_VNODES - used to pre allocate vnode related resources
280# CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes
281# CONFIG_NC_HASH - name cache hash table allocation
282# CONFIG_VFS_NAMES - name strings
283#
284# 263168 magic number for medium CONFIG_VNODES is based on memory
285# Number vnodes is (memsize/64k) + 1024
286# This is the calculation that is used by launchd in tiger
287# we are clipping the max based on 16G
288# ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
289
290options CONFIG_VNODES=263168 # <large,xlarge>
291options CONFIG_VNODES=263168 # <medium>
292options CONFIG_VNODES=10240 # <small>
293options CONFIG_VNODES=1024 # <xsmall>
294options CONFIG_VNODES=750 # <bsmall>
295
296options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
297options CONFIG_VNODE_FREE_MIN=300 # <medium>
298options CONFIG_VNODE_FREE_MIN=200 # <small>
299options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
300options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
301
302options CONFIG_NC_HASH=5120 # <large,xlarge>
303options CONFIG_NC_HASH=4096 # <medium>
304options CONFIG_NC_HASH=2048 # <small,xsmall>
305options CONFIG_NC_HASH=1024 # <bsmall>
306
307options CONFIG_VFS_NAMES=5120 # <large,xlarge>
308options CONFIG_VFS_NAMES=4096 # <medium>
309options CONFIG_VFS_NAMES=3072 # <small,xsmall>
310options CONFIG_VFS_NAMES=2048 # <bsmall>
311
312options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
313options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
314
315#
316# configurable kauth credential related resources
317#
318options KAUTH_CRED_PRIMES_COUNT=7 # <medium,large,xlarge>
319options KAUTH_CRED_PRIMES_COUNT=3 # <bsmall,xsmall,small>
320
321options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # <medium,large,xlarge>
322options KAUTH_CRED_PRIMES="{5, 17, 97}" # <bsmall,xsmall,small>
323
324#
325# configurable options for minumum number of buffers for kernel memory
326#
327options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
328options CONFIG_MIN_NBUF=128 # <small>
329options CONFIG_MIN_NBUF=80 # <xsmall>
330options CONFIG_MIN_NBUF=64 # <bsmall>
331
332options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
333options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
334options CONFIG_MIN_NIOBUF=32 # <bsmall>
335
336#
337# set maximum space used for packet buffers
338#
339options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
340options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
341options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
342
343#
344# set maximum space used for packet buffers
345#
346options CONFIG_USESOCKTHRESHOLD=1 # <large,xlarge,medium>
347options CONFIG_USESOCKTHRESHOLD=0 # <bsmall,xsmall,small>
348
349#
350# Configure size of TCP hash table
351#
352options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
353options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
354
355#
356# configurable async IO options
357# CONFIG_AIO_MAX - system wide limit of async IO requests.
358# CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
359# CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
360#
361options CONFIG_AIO_MAX=360 # <xlarge>
362options CONFIG_AIO_MAX=180 # <large>
363options CONFIG_AIO_MAX=90 # <medium>
364options CONFIG_AIO_MAX=45 # <small>
365options CONFIG_AIO_MAX=20 # <xsmall>
366options CONFIG_AIO_MAX=10 # <bsmall>
367
368options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
369options CONFIG_AIO_PROCESS_MAX=32 # <large>
370options CONFIG_AIO_PROCESS_MAX=16 # <medium>
371options CONFIG_AIO_PROCESS_MAX=12 # <small>
372options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
373options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
374
375options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
376options CONFIG_AIO_THREAD_COUNT=8 # <large>
377options CONFIG_AIO_THREAD_COUNT=4 # <medium>
378options CONFIG_AIO_THREAD_COUNT=3 # <small>
379options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
380
381#
382# configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
383# sync with osfmk/conf/MASTER until we fix the config system...) todo XXX
384#
385options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
386options CONFIG_THREAD_MAX=1536 # <small,xsmall>
387options CONFIG_THREAD_MAX=1024 # <bsmall>
388
389options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
390options CONFIG_MAXVIFS=16 # <small,xsmall>
391options CONFIG_MAXVIFS=2 # <bsmall>
392
393options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
394options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
395options CONFIG_MFCTBLSIZ=16 # <bsmall>
396
397#
398# configurable kernel - use these options to strip strings from panic
399# and printf calls.
400# no_panic_str - saves around 50K of kernel footprint.
401# no_printf_str - saves around 45K of kernel footprint.
402#
403options CONFIG_NO_PANIC_STRINGS # <no_panic_str>
404options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
405options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
406
407#
408# configurable kernel - general switch to say we are building for an
409# embedded device
410#
411options CONFIG_EMBEDDED # <config_embedded>
412
413# only execute signed code. Hang this off config_embedded since there's
414# nothing more appropriate right now
415#
416options CONFIG_ENFORCE_SIGNED_CODE # <config_embedded>
417
418# support dynamic signing of code
419#
420options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
421
422#
423# code decryption... used on embedded for app protection
424# must be set in all the bsd/conf and osfmk/conf MASTER files
425#
426options CONFIG_CODE_DECRYPTION # <config_embedded>
427
428
429#
430# Ethernet (ARP)
431#
432pseudo-device ether # <networking,inet,inet6,netat>
433#
434# Network loopback device
435#
436pseudo-device loop # <networking,inet,inet6,netat>
437#
438# UCB pseudo terminal service
439#
440pseudo-device pty 512 init pty_init # <xlarge>
441pseudo-device pty 256 init pty_init # <large>
442pseudo-device pty 128 init pty_init # <medium>
443pseudo-device pty 48 init pty_init # <small>
444pseudo-device pty 16 init pty_init # <xsmall>
445pseudo-device pty 8 init pty_init # <bsmall>
446#
447# Cloning pseudo terminal service
448#
449pseudo-device ptmx 1 init ptmx_init
450
451#
452# vnode device
453#
454pseudo-device vndevice 16 init vndevice_init # <xlarge>
455pseudo-device vndevice 8 init vndevice_init # <large>
456pseudo-device vndevice 4 init vndevice_init # <medium>
457pseudo-device vndevice 3 init vndevice_init # <small>
458pseudo-device vndevice 2 init vndevice_init # <bsmall>
459
460#
461# memory device
462pseudo-device mdevdevice 1 init mdevinit
463
464#
465#
466# packet filter device
467#
468pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6,netat>
469
470#
471# fsevents device
472pseudo-device fsevents 1 init fsevents_init # <config_fse>
473
474#
475# shim to "linux" mach disk drivers (mach drivers must also be turned on)
476#
477# now using iokit disk shim, this is code is obsolete
478#pseudo-device diskshim
479
480pseudo-device random 1 init random_init
481pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
482pseudo-device helper 1 init helper_init # <config_dtrace>
483pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
484pseudo-device sdt 1 init sdt_init # <config_dtrace>
485pseudo-device systrace 1 init systrace_init # <config_dtrace>
486pseudo-device fbt 1 init fbt_init # <config_dtrace>
487pseudo-device profile_prvd 1 init profile_init # <config_dtrace>
488