# # Mach Operating System # Copyright (c) 1986 Carnegie-Mellon University # All rights reserved. The CMU software License Agreement # specifies the terms and conditions for use and redistribution. # ####################################################################### # # Master machine independent configuration file. # # Specific configuration files are created based on this and # the machine specific master file using the doconf script. # # Any changes to the master configuration files will affect all # other configuration files based upon it. # ####################################################################### # # To build a configuration, execute "doconf ." # Configurations are specified in the "Configurations:" section # of the MASTER and MASTER.* files as follows: # # = [ ... ] # # Lines in the MASTER and MASTER.* files are selected based on # the attribute selector list, found in a comment at the end of # the line. This is a list of attributes separated by commas. # The "!" operator selects the line if none of the attributes are # specified. # # For example: # # selects a line if "foo" or "bar" are specified. # selects a line if neither "foo" nor "bar" is # specified. # # Lines with no attributes specified are selected for all # configurations. # ####################################################################### # # STANDARD CONFIGURATION OPTIONS (select any combination) # # debug = extra kernel level debugging support # mach = Mach support # # EXPERIMENTAL CONFIGURATION OPTIONS (select any combination, carefully) # # host = host resource control support # # MULTI-PROCESSOR CONFIGURATION (select at most one) # # multi16 = enable 16 multi-processors # multi32 = enable 32 multi-processors # multi48 = enable 48 multi-processors # # SYSTEM SIZE CONFIGURATION (select exactly one) # # xlarge = extra large scale system configuration # large = large scale system configuration # medium = medium scale system configuration # small = small scale system configuration # xsmall = extra small scale system configuration # bsmall = special extra small scale system configuration # ####################################################################### # # Standard Mach Research Configurations: # -------- ---- -------- --------------- # # These are the default configurations that can be used by most sites. # They are used internally by the Mach project. # # MACH = [mach multi16 medium debug] # ####################################################################### # ident NeXT # obsolete timezone spec options TIMEZONE=0, PST=0 options QUOTA # # options INET # # options ABSOLUTETIME_SCALAR_TYPE options NEW_VM_CODE # # options OLD_VM_CODE # # options HW_AST # Hardware ast support # options HW_FOOTPRINT # Cache footprint support # options CONFIG_LCTX # Login Context options MACH # Standard Mach features # options MACH_ASSERT # Compile in assertions # options MACH_COMPAT # Vendor syscall compatibility # options MACH_COUNTERS # counters # options MACH_DEBUG # IPC debugging interface # options MACH_FASTLINK # Fast symbolic links options MACH_FIXPRI # Fixed priority threads # options MACH_HOST # Mach host (resource alloc.) # options MACH_IPC_COMPAT # Enable old IPC interface # options MACH_IPC_DEBUG # Enable IPC debugging calls # options MACH_IPC_TEST # Testing code/printfs # options MACH_LDEBUG # Sanity-check simple locking # options MACH_NP # Mach IPC support # options MACH_NBC # No buffer cache # options MACH_NET # Fast network access # options MACH_XP # external pager support # options NORMA_IPC # NORMA IPC support # options NORMA_DEVICE # NORMA unified device names # options NORMA_VM # NORMA virtual memory support # options NORMA_TASK # NORMA task support # options NORMA_ETHER # NORMA across ethernet # options SIMPLE_CLOCK # don't assume fixed tick # options XPR_DEBUG # kernel tracing # options KDEBUG # kernel tracing # options DDM_DEBUG # driverkit-style tracing # options MACH_OLD_VM_COPY # Old vm_copy technology # options NO_DIRECT_RPC # for untyped mig servers # options IPX # ipx stack # options EON # # options ISO # ISO stack # options LLC # 802.2 support # options LOOP # loopback support # options MROUTING # multicast routing # options ROUTING # routing # options NETMIBS # # options VLAN # # options BOND # # options PF # Packet Filter # options PF_PKTHDR # PF tag inside mbuf pkthdr # options PKT_PRIORITY # Packet priority support # options PFLOG # PF log interface # options IPDIVERT # Divert sockets (for NAT) # options IPFLOW # IP fast forwarding # options IPFIREWALL # IP Firewalling (used by NAT) # options IPFIREWALL_FORWARD #Transparent proxy # options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # options DUMMYNET # dummynet support # options TRAFFIC_MGT # traffic management support # options IPFW2 # IP firewall (new version) # options MULTICAST # Internet Protocol Class-D $ options TCPDEBUG # TCP debug # options RANDOM_IP_ID # random (not sequential) ip ids # options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # options ICMP_BANDLIM # ICMP bandwidth limiting sysctl options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # options IFNET_ROUTE_REFCNT # count route references to ifnet # options SYSV_SEM # SVID semaphores # options SYSV_MSG # SVID messages # options SYSV_SHM # SVID shared mem # options PSYNCH # pthread synch # options PANIC_INFO # want kernel panic info # options DEVELOPMENT # dev kernel # # secure_kernel - secure kernel from user programs options SECURE_KERNEL # options OLD_SEMWAIT_SIGNAL # old semwait_signal handler # # 4.4 general kernel # options SOCKETS # socket support # options DIAGNOSTIC # diagnostics # options CONFIG_DTRACE # dtrace support # options GPROF # build profiling # options SENDFILE # sendfile # options NETWORKING # networking layer # options CONFIG_FSE # file system events # options CONFIG_IMAGEBOOT # local image boot # options CONFIG_SOWUPCALL # SB_UPCALL on sowwakeup # options CONFIG_MBUF_NOEXPAND # limit mbuf expansion # options CONFIG_MBUF_JUMBO # jumbo cluster pool # options CONFIG_MBUF_TAGS_MALLOC # use malloc for tags # options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # options CONFIG_WORKQUEUE # # # 4.4 filesystems # options FFS # Fast Filesystem Support # options HFS # HFS/HFS+ support # options FIFO # fifo support # options UNION # union_fs support # options FDESC # fdesc_fs support # options DEVFS # devfs support # options JOURNALING # journaling support # options HFS_COMPRESSION # hfs compression # # # file system features # options QUOTA # file system quotas # options REV_ENDIAN_FS # Reverse Endian FS # options NAMEDSTREAMS # named stream vnop support # options CONFIG_VOLFS # volfs path support (legacy) # options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # # # NFS support # options NFSCLIENT # Be an NFS client # options NFSSERVER # Be an NFS server # # # AppleTalk Support # options NETAT # AppleTalk support # #options AURP_SUPPORT # AppleTalk Update Routing # # # Machine Independent Apple Features # options KERNSERV # kernel_server intarface # options MALLOCDEBUG # kernel malloc debugging # options DRIVERKIT # driverkit support # options KERNOBJC # Objective-C support # options OBJCTEST # Objc internal test # options KERNEL_STACK # MI kernel stack support # profile # build a profiling kernel # # # Point-to-Point Protocol support # pseudo-device ppp 2 # # # IPv6 Support # options "INET6" # kernel IPv6 Support # options IPSEC # IP security # options IPSEC_ESP # IP security # options "IPV6FIREWALL" # IPv6 Firewall Feature # options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # #options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # pseudo-device gif 1 # pseudo-device dummy 2 # pseudo-device faith 1 # pseudo-device stf 1 # options crypto # options ALLCRYPTO # options randomipid # options ZLIB # inflate/deflate support # makeoptions LIBDRIVER = "libDriver_kern.o" # makeoptions LIBOBJC = "libkobjc.o" # maxusers 64 # maxusers 50 # maxusers 32 # maxusers 16 # maxusers 8 # maxusers 2 # # # Multi-processor selection # pseudo-device cpus 64 # pseudo-device cpus 32 # pseudo-device cpus 16 # pseudo-device cpus 2 # pseudo-device cpus 1 # # # configurable kernel event related resources # options CONFIG_KN_HASHSIZE=64 # options CONFIG_KN_HASHSIZE=48 # options CONFIG_KN_HASHSIZE=20 # # # configurable vfs related resources # CONFIG_VNODES - used to pre allocate vnode related resources # CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes # CONFIG_NC_HASH - name cache hash table allocation # CONFIG_VFS_NAMES - name strings # # 263168 magic number for medium CONFIG_VNODES is based on memory # Number vnodes is (memsize/64k) + 1024 # This is the calculation that is used by launchd in tiger # we are clipping the max based on 16G # ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168; options CONFIG_VNODES=263168 # options CONFIG_VNODES=263168 # options CONFIG_VNODES=10240 # options CONFIG_VNODES=1024 # options CONFIG_VNODES=750 # options CONFIG_VNODE_FREE_MIN=500 # options CONFIG_VNODE_FREE_MIN=300 # options CONFIG_VNODE_FREE_MIN=200 # options CONFIG_VNODE_FREE_MIN=100 # options CONFIG_VNODE_FREE_MIN=75 # options CONFIG_NC_HASH=5120 # options CONFIG_NC_HASH=4096 # options CONFIG_NC_HASH=2048 # options CONFIG_NC_HASH=1024 # options CONFIG_VFS_NAMES=5120 # options CONFIG_VFS_NAMES=4096 # options CONFIG_VFS_NAMES=3072 # options CONFIG_VFS_NAMES=2048 # options CONFIG_MAX_CLUSTERS=8 # options CONFIG_MAX_CLUSTERS=4 # # # configurable kauth credential related resources # options KAUTH_CRED_PRIMES_COUNT=7 # options KAUTH_CRED_PRIMES_COUNT=3 # options KAUTH_CRED_PRIMES="{97, 241, 397, 743, 1499, 3989, 7499}" # options KAUTH_CRED_PRIMES="{5, 17, 97}" # # # configurable options for minumum number of buffers for kernel memory # options CONFIG_MIN_NBUF=256 # options CONFIG_MIN_NBUF=128 # options CONFIG_MIN_NBUF=80 # options CONFIG_MIN_NBUF=64 # options CONFIG_MIN_NIOBUF=128 # options CONFIG_MIN_NIOBUF=64 # options CONFIG_MIN_NIOBUF=32 # # # set maximum space used for packet buffers # options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # # # set maximum space used for packet buffers # options CONFIG_USESOCKTHRESHOLD=1 # options CONFIG_USESOCKTHRESHOLD=0 # # # Configure size of TCP hash table # options CONFIG_TCBHASHSIZE=4096 # options CONFIG_TCBHASHSIZE=128 # # # configurable async IO options # CONFIG_AIO_MAX - system wide limit of async IO requests. # CONFIG_AIO_PROCESS_MAX - process limit of async IO requests. # CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created. # options CONFIG_AIO_MAX=360 # options CONFIG_AIO_MAX=180 # options CONFIG_AIO_MAX=90 # options CONFIG_AIO_MAX=45 # options CONFIG_AIO_MAX=20 # options CONFIG_AIO_MAX=10 # options CONFIG_AIO_PROCESS_MAX=64 # options CONFIG_AIO_PROCESS_MAX=32 # options CONFIG_AIO_PROCESS_MAX=16 # options CONFIG_AIO_PROCESS_MAX=12 # options CONFIG_AIO_PROCESS_MAX=8 # options CONFIG_AIO_PROCESS_MAX=4 # options CONFIG_AIO_THREAD_COUNT=16 # options CONFIG_AIO_THREAD_COUNT=8 # options CONFIG_AIO_THREAD_COUNT=4 # options CONFIG_AIO_THREAD_COUNT=3 # options CONFIG_AIO_THREAD_COUNT=2 # # # configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in # sync with osfmk/conf/MASTER until we fix the config system...) todo XXX # options CONFIG_THREAD_MAX=2560 # options CONFIG_THREAD_MAX=1536 # options CONFIG_THREAD_MAX=1024 # options CONFIG_MAXVIFS=32 # options CONFIG_MAXVIFS=16 # options CONFIG_MAXVIFS=2 # options CONFIG_MFCTBLSIZ=256 # options CONFIG_MFCTBLSIZ=128 # options CONFIG_MFCTBLSIZ=16 # # # configurable kernel - use these options to strip strings from panic # and printf calls. # no_panic_str - saves around 50K of kernel footprint. # no_printf_str - saves around 45K of kernel footprint. # options CONFIG_NO_PANIC_STRINGS # options CONFIG_NO_PRINTF_STRINGS # options CONFIG_NO_KPRINTF_STRINGS # # # configurable kernel - general switch to say we are building for an # embedded device # options CONFIG_EMBEDDED # # only execute signed code. Hang this off config_embedded since there's # nothing more appropriate right now # options CONFIG_ENFORCE_SIGNED_CODE # # support dynamic signing of code # options CONFIG_DYNAMIC_CODE_SIGNING # # # code decryption... used on embedded for app protection # must be set in all the bsd/conf and osfmk/conf MASTER files # options CONFIG_CODE_DECRYPTION # # # User Content Protection, used on embedded # options CONFIG_PROTECT # # # Ethernet (ARP) # pseudo-device ether # # # Network loopback device # pseudo-device loop # # # UCB pseudo terminal service # pseudo-device pty 512 init pty_init # pseudo-device pty 256 init pty_init # pseudo-device pty 128 init pty_init # pseudo-device pty 48 init pty_init # pseudo-device pty 16 init pty_init # pseudo-device pty 8 init pty_init # # # Cloning pseudo terminal service # pseudo-device ptmx 1 init ptmx_init # # vnode device # pseudo-device vndevice 16 init vndevice_init # pseudo-device vndevice 8 init vndevice_init # pseudo-device vndevice 4 init vndevice_init # pseudo-device vndevice 3 init vndevice_init # pseudo-device vndevice 2 init vndevice_init # # # memory device pseudo-device mdevdevice 1 init mdevinit # # # packet filter device # pseudo-device bpfilter 4 init bpf_init # # # fsevents device pseudo-device fsevents 1 init fsevents_init # # # shim to "linux" mach disk drivers (mach drivers must also be turned on) # # now using iokit disk shim, this is code is obsolete #pseudo-device diskshim pseudo-device random 1 init random_init pseudo-device dtrace 1 init dtrace_init # pseudo-device helper 1 init helper_init # pseudo-device lockstat 1 init lockstat_init # pseudo-device sdt 1 init sdt_init # pseudo-device systrace 1 init systrace_init # pseudo-device fbt 1 init fbt_init # pseudo-device profile_prvd 1 init profile_init #