1.\" $NetBSD: options.4,v 1.184 2002/10/17 07:48:12 jdc Exp $ 2.\" 3.\" Copyright (c) 1996 4.\" Perry E. Metzger. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgment: 16.\" This product includes software developed for the NetBSD Project 17.\" by Perry E. Metzger. 18.\" 4. The name of the author may not be used to endorse or promote products 19.\" derived from this software without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31.\" 32.\" 33.Dd September 29, 2002 34.Os 35.Dt OPTIONS 4 36.Sh NAME 37.Nm options 38.Nd Miscellaneous kernel configuration options 39.Sh SYNOPSIS 40.Cd options ... 41.Sh DESCRIPTION 42This manual page describes a number of miscellaneous kernel 43configuration options that may be specified in a kernel config 44file. 45See 46.Xr config 8 47for information on how to configure and build kernels. 48.Em Note : 49Options are passed to the compile process as -D flags to the C 50compiler. 51.Ss Compatibility Options 52.Bl -ohang 53.It Cd options COMPAT_09 54Enable binary compatibility with 55.Nx 0.9 . 56This enables support for 5716-bit user, group, and process ids (following revisions support 5832-bit identifiers), 59It also allows the use of the deprecated 60.Xr getdomainname 3 , 61.Xr setdomainname 3 , 62and 63.Xr uname 3 64syscalls. 65This option also allows using numeric filesystem identifiers rather 66than strings. 67Post 68.Nx 0.9 69versions use string identifiers. 70.It Cd options COMPAT_10 71Enable binary compatibility with 72.Nx 1.0 . 73This option allows the use of the filesystem name of 74.Dq ufs 75as an alias for 76.Dq ffs . 77The name 78.Dq ffs 79should be used post 1.0 in 80.Pa /etc/fstab 81and other files. 82It also adds old syscalls for the 83.At V 84shared memory interface. 85This was changed post 1.0 to work on 64-bit architectures. 86This option also enables 87.Dq sgtty 88compatibility, without which programs using the old interface produce 89an 90.Dq inappropriate ioctl 91error, and 92.Pa /dev/io 93only works when this option is set in the kernel, 94see 95.Xr io 4 96on ports that support it. 97.It Cd options COMPAT_11 98Enable binary compatibility with 99.Nx 1.1 . 100This allows binaries running on the i386 port to gain direct access to 101the io ports by opening 102.Pa /dev/io 103read/write. 104This functionality was replaced by 105.Xr i386_iopl 2 106post 1.1. 107On the 108.Tn Atari 109port, the location of the disk label was moved after 1.1. 110When the 111.Em COMPAT_11 112option is set, the kernel will read (pre) 1.1 style disk labels as a 113last resort. 114When a disklabel is re-written, the old style label will be replaced 115with a post 1.1 style label. 116This also enables 117.Em EXEC_ELF_NOTELESS 118option. 119.It Cd options COMPAT_12 120Enable binary compatibility with 121.Nx 1.2 . 122This allows the use of old syscalls for 123.Fn reboot 124and 125.Fn swapon . 126The syscall numbers were changed post 1.2 to add functionality to the 127.Xr reboot 2 128syscall, and the new 129.Xr swapctl 2 130interface was introduced. 131This also enables 132.Em EXEC_ELF_NOTELESS 133option. 134.It Cd options COMPAT_13 135Enable binary compatibility with 136.Nx 1.3 . 137This allows the use of old syscalls for 138.Fn sigaltstack , 139and also enables the old 140.Xr swapctl 2 141command 142.Dv SWAP_STATS 143(now called 144.Dv SWAP_OSTATS ) , 145which does not include the 146.Fa se_path 147member of 148.Va struct swapent . 149.It Cd options COMPAT_14 150Enable binary compatibility with 151.Nx 1.4 . 152This allows some old 153.Xr ioctl 2 154on 155.Xr wscons 4 156to be performed, and allows the 157.Dv NFSSVC_BIOD 158mode of the 159.Xr nfssvc 2 160system call to be used for compatibility with the deprecated nfsiod program. 161.It Cd options COMPAT_43 162Enables compatibility with 163.Bx 4.3 . 164This adds an old syscall for 165.Xr lseek 2 . 166It also adds the ioctls for 167.Dv TIOCGETP 168and 169.Dv TIOCSETP . 170The return values for 171.Xr getpid 2 , 172.Xr getgid 2 , 173and 174.Xr getuid 2 175syscalls are modified as well, to return the parent's pid and 176uid as well as the current process's. 177It also enables the deprecated 178.Dv NTTYDISC 179terminal line discipline. 180It also provides backwards compatibility with 181.Dq old 182SIOC[GS]IF{ADDR,DSTADDR,BRDADDR,NETMASK} interface ioctls, including 183binary compatibility with code written before the introduction of the 184sa_len field in sockaddrs. 185It also enables 186support for some older pre 187.Bx 4.4 188socket calls. 189.It Cd options COMPAT_SVR4 190On those architectures that support it, this enables binary 191compatibility with 192.At V.4 193applications built for the same architecture. 194This currently includes the i386, m68k and sparc port. 195.It Cd options COMPAT_LINUX 196On those architectures that support it, this enables binary 197compatibility with Linux ELF and 198.Xr a.out 5 199applications built for the same architecture. 200This currently includes the alpha, i386, powerpc, and m68k 201ports. 202There is also a minimal support for running Linux binaries on Mips 203ports, but it is experimental at the moment. 204.It Cd options COMPAT_SUNOS 205On those architectures that support it, this enables binary 206compatibility with 207.Tn SunOS 4.1 208applications built for the same architecture. 209This currently includes the sparc, sparc64 and most or all m68k ports. 210Note that the sparc64 requires the 211.Em COMPAT_NETBSD32 212option for 64-bit kernels, in addition to this option. 213.It Cd options COMPAT_ULTRIX 214On those architectures that support it, this enables binary 215compatibility with 216.Tn Ultrix 217applications built for the same architecture. 218This currently is limited to the pmax. 219The functionality of this option is unknown. 220.It Cd options COMPAT_FREEBSD 221On those architectures that support it, this enables binary 222compatibility with 223.Fx 224applications built for the same architecture. 225At the moment this is limited to the i386 port. 226.It Cd options COMPAT_HPUX 227On those architectures that support it, this enables binary 228compatibility with 229.Tn HP/UX 230applications built for the same architecture. 231This is limited to the hp300 port, and has some known bugs. 232A limited set of programs do work. 233.It Cd options COMPAT_IBCS2 234On those architectures that support it, this enables binary 235compatibility with iBCS2 or SVR3 applications built for the same architecture. 236This is currently limited to the i386 and vax ports. 237.It Cd options COMPAT_IRIX 238On those architectures that support it, this enables binary 239compatibility with IRIX o32 binaries built for the same architecture. 240This feature is experimental, and it is currently limited to 241the sgimips port of 242.Nx . 243.It Cd options COMPAT_OSF1 244On those architectures that support it, this enables binary 245compatibility with 246.Tn Digital 247.Ux 248.Po 249formerly 250.Tn OSF/1 251.Pc 252applications built for the same architecture. 253This is currently limited to the alpha port. 254.It Cd options COMPAT_NOMID 255Enable compatibility with 256.Xr a.out 5 257executables that lack a machine ID. 258This includes 259.Nx 0.8 Ns 's 260ZMAGIC format, and 386BSD and BSDI's 261QMAGIC, NMAGIC, and OMAGIC 262.Xr a.out 5 263formats. 264.It Cd options COMPAT_NETBSD32 265On those architectures that support it, this enables binary 266compatibility with 32-bit applications built for the same architecture. 267This is currently limited to the sparc64 port, and only applicable for 26864-bit kernels. 269.It Cd options COMPAT_SVR4_32 270On those architectures that support it, this enables binary 271compatibility with 32-bit SVR4 applications built for the same architecture. 272This is currently limited to the sparc64 port, and only applicable for 27364-bit kernels. 274.It Cd options COMPAT_AOUT_M68K 275On m68k architectures which have switched to ELF, 276this enable binary compatibility with 277.Nx Ns Tn /m68k 278.Xr a.out 5 279executables on 280.Nx Ns Tn /m68k 281ELF kernel. 282This handles alignment incompatibility of m68k ABI between 283a.out and ELF which causes the structure padding differences. 284Currently only some system calls which use 285.Va struct stat 286are adjusted and some binaries which use 287.Xr sysctl 3 288to retrieve network details would not work properly. 289.It Cd options EXEC_ELF_NOTELESS 290Run unidentified ELF binaries as 291.Nx 292binaries. 293This might be needed for very old 294.Nx 295ELF binaries on some archs. 296These old binaries didn't contain an appropriate 297.Li .note.netbsd.ident 298section, and thus can't be identified by the kernel as 299.Nx 300binaries otherwise. 301Beware - if this option is on, the kernel would run 302.Em any 303unknown ELF binaries as if they were 304.Nx 305binaries. 306.El 307.Ss Debugging Options 308.Bl -ohang 309.It Cd options DDB 310Compiles in a kernel debugger for diagnosing kernel problems. 311See 312.Xr ddb 4 313for details. 314.Em NOTE : 315not available on all architectures. 316.It Cd options DDB_FROMCONSOLE=integer 317If set to non-zero, DDB may be entered by sending a break on a serial 318console or by a special key sequence on a graphics console. 319A value of "0" ignores console breaks or key sequences, 320It not explicitly specified, the default value is "1". 321Note that this sets the value of the 322.Em ddb.fromconsole 323.Xr sysctl 3 324variable which may be changed at run time -- see 325.Xr sysctl 8 326for details. 327.It Cd options DDB_HISTORY_SIZE=integer 328If this is non-zero, enable history editing in the kernel debugger 329and set the size of the history to this value. 330.It Cd options DDB_ONPANIC 331If set to non-zero, DDB will be entered upon kernel panic. 332The default if not specified is "1". 333Note that this sets the value of the 334.Em ddb.onpanic 335.Xr sysctl 3 336variable which may be changed at run time -- see 337.Xr sysctl 8 338for details. 339.It Cd options DDB_BREAK_CHAR=integer 340This option overrides the using break to enter the kernel debugger 341on the serial console. 342The value given will is the ascii value to be used instead. 343This is currently only supported by the com driver. 344.It Cd options KGDB 345Compiles in a remote kernel debugger stub for diagnosing kernel problems 346using the 347.Dq remote target 348feature of gdb. 349See 350.Xr gdb 1 351for details. 352.Em NOTE : 353not available on all architectures. 354.It Cd options KGDB_DEV 355Device number 356.Po 357as a 358.Dv dev_t 359.Pc 360of kgdb device. 361.It Cd options KGDB_DEVADDR 362Memory address of kgdb device. 363.It Cd options KGDB_DEVMODE 364Permissions of kgdb device. 365.It Cd options KGDB_DEVNAME 366Device name of kgdb device. 367.It Cd options KGDB_DEVRATE 368Baud rate of kgdb device. 369.It Cd makeoptions DEBUG="-g" 370The -g flag causes 371.Pa netbsd.gdb 372to be built in addition to 373.Pa netbsd . 374.Pa netbsd.gdb 375is useful for debugging kernel crash dumps with gdb. 376The command 377.Dl gdb -k 378invokes gdb in kernel debugger mode. 379See 380.Xr gdb 1 381for details. 382This also turns on 383.Em options DEBUG 384(which see). 385.It Cd options DEBUG 386Turns on miscellaneous kernel debugging. 387Since options are turned into preprocessor defines (see above), 388.Em options DEBUG 389is equivalent to doing a 390.Em #define DEBUG 391throughout the kernel. 392Much of the kernel has 393.Em #ifdef DEBUG 394conditionalized debugging code. 395Note that many parts of the kernel (typically device drivers) include their own 396.Em #ifdef XXX_DEBUG 397conditionals instead. 398This option also turns on certain other options, 399which may decrease system performance. 400.It Cd options DIAGNOSTIC 401Adds code to the kernel that does internal consistency checks. 402This code will cause the kernel to panic if corruption of internal data 403structures is detected. 404These checks can decrease performance up to 15%. 405.It Cd options KSTACK_CHECK_MAGIC 406Check kernel stack usage and panic if stack overflow is detected. 407This check is performance sensitive because it scans stack on each context 408switch. 409.It Cd options KTRACE 410Add hooks for the system call tracing facility, which allows users to 411watch the system call invocation behavior of processes. 412See 413.Xr ktrace 1 414for details. 415.It Cd options MSGBUFSIZE=integer 416This option sets the size of the kernel message buffer. 417This buffer holds the kernel output of 418.Fn printf 419when not (yet) read by 420.Xr syslogd 8 . 421This is particularly useful when the system has crashed and you wish to lookup 422the kernel output from just before the crash. 423Also, since the autoconfig output becomes more and more verbose, 424it sometimes happens that the message buffer overflows before 425.Xr syslogd 8 426was able to read it. 427Note that not all systems are capable of obtaining a variable sized message 428buffer. 429There are also some systems on which memory contents are not preserved 430across reboots. 431.It Cd options MALLOCLOG 432Enables an event log for 433.Xr malloc 9 . 434Useful for tracking down 435.Dq Data modified on freelist 436and 437.Dq multiple free 438problems. 439.It Cd options MALLOCLOGSIZE=integer 440Defines the number of entries in the malloc log. 441Default is 100000 entries. 442.It Cd options SYSTRACE 443Add hooks for the system call policy facility. 444See 445.Xr systrace 1 446for details. 447.It Cd options UVMHIST 448Enables the UVM history logs, which create in-memory traces of 449various UVM activities. 450These logs can be displayed be calling 451.Fn uvmhist_dump 452or 453.Fn uvm_hist 454with appropriate arguments from DDB. 455See the kernel source file sys/uvm/uvm_stat.c for details. 456.It Cd options UVMHIST_PRINT 457Prints the UVM history logs on the system console as entries are added. 458Note that the output is 459.Em extremely 460voluminous, so this option is really only useful for debugging 461the very earliest parts of kernel initialization. 462.El 463.Ss File Systems 464.Bl -ohang 465.It Cd file-system FFS 466Includes code implementing the Berkeley Fast File System 467.Em ( FFS ) . 468Most machines need this if they are not running diskless. 469.It Cd file-system EXT2FS 470Includes code implementing the Second Extended File System 471.Em ( EXT2FS ) 472, revision 0 and revision 1 with the 473.Em filetype 474and 475.Em sparse_super 476options. 477This is the most commonly used file system on the Linux operating system, 478and is provided here for compatibility. 479Some of the specific features of 480.Em EXT2FS 481like the "behavior on errors" are not implemented. 482This file system can't be used with UID or GID greater than 65535. 483See 484.Xr mount_ext2fs 8 485for details. 486.It Cd file-system LFS 487.Em [EXPERIMENTAL] 488Include the Log-structured File System 489.Em ( LFS ) . 490See 491.Xr mount_lfs 8 492and 493.Xr newfs_lfs 8 494for details. 495.It Cd file-system MFS 496Include the Memory File System 497.Em ( MFS ) . 498This file system stores files in swappable memory, and produces 499notable performance improvements when it is used as the file store 500for 501.Pa /tmp 502and similar file systems. 503See 504.Xr mount_mfs 8 505for details. 506.It Cd file-system NFS 507Include the client side of the Network File System 508.Pq Tn NFS 509remote file sharing protocol. 510Although the bulk of the code implementing 511.Tn NFS 512is kernel based, several user level daemons are needed for it to work. 513See 514.Xr mount_nfs 8 515for details. 516.It Cd file-system CD9660 517Includes code for the 518.Tn ISO 5199660 + Rock Ridge file system, which is the standard file system on many 520.Tn CD-ROM 521discs. 522Useful primarily if you have a 523.Tn CD-ROM 524drive. 525See 526.Xr mount_cd9660 8 527for details. 528.It Cd file-system MSDOSFS 529Includes the 530.Tn MS-DOS 531FAT file system, which is reportedly still used 532by unfortunate people who have not heard about 533.Nx . 534Also implements the 535.Tn Windows 95 536extensions to the same, which permit the use of longer, mixed case 537file names. 538See 539.Xr mount_msdos 8 540and 541.Xr fsck_msdos 8 542for details. 543.It Cd file-system NTFS 544.Em [EXPERIMENTAL] 545Includes code for the 546.Tn Microsoft Windows NT 547file system. 548See 549.Xr mount_ntfs 8 550for details. 551.It Cd file-system FDESC 552Includes code for a file system, conventionally mounted on 553.Pa /dev/fd , 554which permits access to the per-process file descriptor space via 555special files in the file system. 556See 557.Xr mount_fdesc 8 558for details. 559Note that this facility is redundant, and thus unneeded on most 560.Nx 561systems, since the 562.Xr fd 4 563pseudodevice driver already provides identical functionality. 564On most 565.Nx 566systems, instances of 567.Xr fd 4 568are mknoded under 569.Pa /dev/fd/ 570and on 571.Pa /dev/stdin , 572.Pa /dev/stdout , 573and 574.Pa /dev/stderr . 575.It Cd file-system KERNFS 576Includes code which permits the mounting of a special file system 577(normally mounted on 578.Pa /kern ) 579in which files representing various kernel variables and parameters 580may be found. 581See 582.Xr mount_kernfs 8 583for details. 584.It Cd file-system NULLFS 585Includes code for a loopback file system. 586This permits portions of the file hierarchy to be re-mounted in other places. 587The code really exists to provide an example of a stackable file system layer. 588See 589.Xr mount_null 8 590for details. 591.It Cd file-system OVERLAY 592Includes code for a file system filter. 593This permits the overlay file system to intercept all access to an underlying 594file system. 595This file system is intended to serve as an example of a stacking file 596system which has a need to interpose itself between an underlying file 597system and all other access. 598See 599.Xr mount_overlay 8 600for details. 601.It Cd file-system PORTAL 602.Em [EXPERIMENTAL] 603Includes the portal filesystem. 604This permits interesting tricks like opening 605.Tn TCP 606sockets by opening files in the file system. 607The portal file system is conventionally mounted on 608.Pa /p 609and is partially implemented by a special daemon. 610See 611.Xr mount_portal 8 612for details. 613.It Cd file-system PROCFS 614Includes code for a special file system (conventionally mounted on 615.Pa /proc ) 616in which the process space becomes visible in the file system. 617Among 618other things, the memory spaces of processes running on the system are 619visible as files, and signals may be sent to processes by writing to 620.Pa ctl 621files in the procfs namespace. 622See 623.Xr mount_procfs 8 624for details. 625.It Cd file-system UMAPFS 626Includes a loopback file system in which user and group ids may be 627remapped -- this can be useful when mounting alien file systems with 628different uids and gids than the local system. 629See 630.Xr mount_umap 8 631for details. 632.It Cd file-system UNION 633.Em [EXPERIMENTAL] 634Includes code for the union file system, which permits directories to 635be mounted on top of each other in such a way that both file systems 636remain visible -- this permits tricks like allowing writing (and the 637deleting of files) on a read-only file system like a 638.Tn CD-ROM 639by mounting a local writable file system on top of the read-only file system. 640See 641.Xr mount_union 8 642for details. 643.It Cd file-system CODA 644.Em [EXPERIMENTAL] 645Includes code for the Coda file system. 646Coda is a distributed file system like NFS and AFS. 647It is freely available, like NFS, but it functions much like AFS in being a 648.Dq stateful 649file system. 650Both Coda and AFS cache files on your local machine to improve performance. 651Then Coda goes a step further than AFS by letting you access the cached 652files when there is no available network, viz. disconnected laptops and 653network outages. 654In Coda, both the client and server are outside the kernel which makes 655them easier to experiment with. 656Coda is available for several UNIX and non-UNIX platforms. 657See http://www.coda.cs.cmu.edu for more details. 658NOTE: You also need to enable the pseudo-device, vcoda, for the Coda 659filesystem to work. 660.El 661.Ss File System Options 662.Bl -ohang 663.It Cd options NFSSERVER 664Include the server side of the 665.Em NFS 666(Network File System) remote file sharing protocol. 667Although the bulk of the code implementing 668.Em NFS 669is kernel based, several user level daemons are needed for it to 670work. 671See 672.Xr mountd 8 673and 674.Xr nfsd 8 675for details. 676.It Cd options QUOTA 677Enables kernel support for file system quotas. 678See 679.Xr quotaon 8 , 680.Xr edquota 8 , 681and 682.Xr quota 1 683for details. 684Note that quotas only work on 685.Dq ffs 686file systems, although 687.Xr rpc.rquotad 8 688permits them to be accessed over 689.Em NFS . 690.It Cd options FFS_EI 691Enable ``Endian-Independent'' FFS support. 692This allows a system to mount an FFS filesystem created for another 693architecture, at a small performance cost for all FFS filesystems. 694See also 695.Xr newfs 8 , 696.Xr fsck_ffs 8 , 697.Xr dumpfs 8 698for filesystem byte order status and manipulation. 699.It Cd options NVNODE=integer 700This option sets the size of the cache used by the name-to-inode translation 701routines, (a.k.a. the 702.Fn namei 703cache, though called by many other names in the kernel source). 704By default, this cache has 705.Dv NPROC 706(set as 20 + 16 * MAXUSERS) * (80 + NPROC / 8) entries. 707A reasonable way to derive a value of 708.Dv NVNODE , 709should you notice a large number of namei cache misses with a tool such as 710.Xr systat 1 , 711is to examine your system's current computed value with 712.Xr sysctl 8 , 713(which calls this parameter "kern.maxvnodes") and to increase this value 714until either the namei cache hit rate improves or it is determined that 715your system does not benefit substantially from an increase in the size of 716the namei cache. 717.It Cd options NAMECACHE_ENTER_REVERSE 718Causes the namei cache to always enter a reverse mapping (vnode -\*[Gt] name) 719as well as a normal one. 720Normally, this is already done for directory vnodes, to speed up the getcwd 721operation. 722This option will cause longer hash chains in the reverse cache, and thus 723slow down getcwd somewhat. 724However, it does make vnode -\*[Gt] path translations possible in some cases. 725For now, only useful if strict /proc/#/maps emulation for Linux binaries is 726required. 727.It Cd options EXT2FS_SYSTEM_FLAGS 728This option changes the behavior of the APPEND and IMMUTABLE flags 729for a file on an 730.Em EXT2FS 731filesystem. 732Without this option, the superuser or owner of the file can 733set and clear them. 734With this option, only the superuser can set them, and 735they can't be cleared if the securelevel is greater than 0. 736See also 737.Xr chflags 1 . 738.It Cd options NFS_BOOT_BOOTP 739Enable use of the BOOTP protocol (RFC 951, 1048) to get configuration 740information if NFS is used to mount the root file system. 741See 742.Xr diskless 8 743for details. 744.It Cd options NFS_BOOT_DHCP 745Same as 746.Dq NFS_BOOT_BOOTP , 747but use the DHCP extensions to the 748BOOTP protocol (RFC 1541). 749.It Cd options NFS_BOOT_BOOTP_REQFILE 750Specifies the string sent in the bp_file field of the BOOTP / DHCP 751request packet. 752.It Cd options NFS_BOOT_BOOTPARAM 753Enable use of the BOOTPARAM protocol, consisting of RARP and 754BOOTPARAM RPC, to get configuration information if NFS 755is used to mount the root file system. 756See 757.Xr diskless 8 758for details. 759.It Cd options NFS_BOOT_RWSIZE=value 760Set the initial NFS read and write sizes for diskless-boot requests. 761The normal default is 8Kbytes. 762This option provides a way to lower the value (e.g., to 1024 bytes) 763as a workaround for buggy network interface cards or boot proms. 764Once booted, the read and write request sizes can be increased by 765remounting the filesystem. 766See 767.Xr mount_nfs 8 768for details. 769.It Cd options NFS_V2_ONLY 770Reduce the size of the NFS client code by omitting code that's only required 771for NFSv3 and NQNFS support, leaving only that code required to use NFSv2 772servers. 773.El 774.Ss Miscellaneous Options 775.Bl -ohang 776.It Cd options LKM 777Enable loadable kernel modules. 778See 779.Xr lkm 4 780for details. 781.Em NOTE : 782not available on all architectures. 783.It Cd options INSECURE 784Hardwires the kernel security level at -1. 785This means that the system 786always runs in secure level 0 mode, even when running multiuser. 787See the manual page for 788.Xr init 8 789for details on the implications of this. 790The kernel secure level may manipulated by the superuser by altering the 791.Em kern.securelevel 792.Xr sysctl 3 793variable (the secure level may only be lowered by a call from process ID 1, 794i.e. 795.Xr init 8 ) . 796See also 797.Xr sysctl 8 798and 799.Xr sysctl 3 . 800.It Cd options UCONSOLE 801Normally, only the superuser can execute the 802.Dv TIOCCONS 803.Xr ioctl 2 , 804which redirects console output to a non-console tty. 805See 806.Xr tty 4 807for details. 808This option permits any user to execute the 809.Dv TIOCCONS 810.Xr ioctl 2 . 811This is useful on 812machines such as personal workstations which run 813.Xr X 7 814servers, where one would prefer to permit console output to be 815viewed in a window without requiring a suid root program to do it. 816.It Cd options MEMORY_DISK_HOOKS 817This option allows for some machine dependent functions to be called when 818the 819.Xr md 4 820.Tn RAM 821disk driver is configured. 822This can result in automatically loading a 823.Tn RAM 824disk from floppy on open (among other things). 825.It Cd options MEMORY_DISK_IS_ROOT 826Forces the 827.Xr md 4 828.Tn RAM 829disk to be the root device. 830This can only be overridden when 831the kernel is booted in the 'ask-for-root' mode. 832.It Cd options MEMORY_DISK_ROOT_SIZE=integer 833Allocates the given number of 512 byte blocks as memory for the 834.Xr md 4 835.Tn RAM 836disk, to be populated with 837.Xr mdsetimage 8 . 838.It Cd options VNODE_OP_NOINLINE 839Do not inline the 840.Fn VOP_* 841calls in the kernel. 842On i386 GENERIC, this saves 36k of kernel text. 843Useful for install media kernels, small memory systems and embedded systems. 844.It Cd options MALLOC_NOINLINE 845Time critical fixed size memory allocation is performed with 846.Fn MALLOC 847and 848.Fn FREE . 849Normally these expand to inline code, but with 850.Em MALLOC_NOINLINE 851these call the normal 852.Fn malloc 853and 854.Fn free 855functions. 856Useful for install media kernels, small memory systems and embedded systems. 857.It Cd options HZ=integer 858On ports that support it, set the system clock frequency (see 859.Xr hz 9 ) 860to the supplied value. 861Handle with care. 862.It Cd options NTP 863Turns on in-kernel precision timekeeping support used by software 864implementing 865.Em NTP 866(Network Time Protocol, RFC1305). 867The 868.Em NTP 869option adds an in-kernel Phase-Locked Loop (PLL) for normal 870.Em NTP 871operation, and a Frequency-Locked Loop (FLL) for intermittently-connected 872operation. 873.Xr ntpd 8 874will employ a user-level PLL when kernel support is unavailable, 875but the in-kernel version has lower latency and more precision, and 876so typically keeps much better time. 877The interface to the kernel 878.Em NTP 879support is provided by the 880.Xr ntp_adjtime 2 881and 882.Xr ntp_gettime 2 883system calls, which are intended for use by 884.Xr ntpd 8 885and are enabled by the option. 886On systems with sub-microsecond resolution timers, or where (HZ / 100000) 887is not an integer, the 888.Em NTP 889option also enables extended-precision arithmetic to keep track of 890fractional clock ticks at NTP time-format precision. 891.It Cd options PPS_SYNC 892This option enables a kernel serial line discipline for receiving time 893phase signals from an external reference clock such as a radio clock. 894(The 895.Em NTP 896option (which see) must be on if the 897.Em PPS_SYNC 898option is used.) 899Some reference clocks generate a Pulse Per Second (PPS) signal in 900phase with their time source. 901The 902.Em PPS 903line discipline receives this signal on either the data leads 904or the DCD control lead of a serial port. 905.Em NTP 906uses the PPS signal to discipline the local clock oscillator to a high 907degree of precision (typically less than 50 microseconds in time and 9080.1 ppm in accuracy). 909.Em PPS 910can also generate a serial output pulse when the system receives a PPS 911interrupt. 912This can be used to measure the system interrupt latency and thus calibrate 913.Em NTP 914to account for it. 915Using 916.Em PPS 917usually requires a 918gadget box 919to convert from TTL to RS-232 signal levels. 920The gadget box and PPS are described in more detail in the HTML documentation 921for 922.Xr ntpd 8 923in 924.Pa /usr/share/doc/html/ntp . 925.It Cd options SETUIDSCRIPTS 926Allows scripts with the setuid bit set to execute as the effective 927user rather than the real user, just like binary executables. 928.Pp 929.Em NOTE : 930Using this option will also enable 931.Em options FDSCRIPTS 932.It Cd options FDSCRIPTS 933Allows execution of scripts with the execute bit set, but not the 934read bit, by opening the file and passing the file descriptor to 935the shell, rather than the filename. 936.Pp 937.Em NOTE : 938Execute only (non-readable) scripts will have 939.Va argv[0] 940set to 941.Pa /dev/fd/* . 942What this option allows as far as security is 943concerned, is the ability to safely ensure that the correct script 944is run by the interpreter, as it is passed as an already open file. 945.It Cd options PUCCN 946Enables treating serial ports found on PCI boards 947.Xr puc 4 948as potential console devices. 949The method for choosing such a console device is port dependent. 950.It Cd options RTC_OFFSET=integer 951The kernel (and typically the hardware battery backed-up clock on 952those machines that have one) keeps time in 953.Em UTC 954(Universal Coordinated Time, once known as 955.Em GMT , 956or Greenwich Mean Time) 957and not in the time of the local time zone. 958The 959.Em RTC_OFFSET 960option is used on some ports (such as the i386) to tell the kernel 961that the hardware clock is offset from 962.Em UTC 963by the specified number of minutes. 964This is typically used when a machine boots several operating 965systems and one of them wants the hardware clock to run in the 966local time zone and not in 967.Em UTC , 968e.g. 969.Em RTC_OFFSET=300 970means 971the hardware clock is set to US Eastern Time (300 minutes behind 972.Em UTC ) , 973and not 974.Em UTC . 975(Note: 976.Em RTC_OFFSET 977is used to initialize a kernel variable named 978.Va rtc_offset 979which is the source actually used to determine the clock offset, and 980which may be accessed via the kern.rtc_offset sysctl variable. 981See 982.Xr sysctl 8 983and 984.Xr sysctl 3 985for details. 986Since the kernel clock is initialized from the hardware clock very 987early in the boot process, it is not possible to meaningfully change 988.Va rtc_offset 989in system initialization scripts. 990Changing this value currently may only be done at kernel compile 991time or by patching the kernel and rebooting). 992.Pp 993.Em NOTE : 994Unfortunately, in many cases where the hardware clock 995is kept in local time, it is adjusted for Daylight Savings 996Time; this means that attempting to use 997.Em RTC_OFFSET 998to let 999.Nx 1000coexist with such an operating system, like Windows, 1001would necessitate changing 1002.Em RTC_OFFSET 1003twice a year. 1004As such, this solution is imperfect. 1005.It Cd options KMEMSTATS 1006The kernel memory allocator, 1007.Xr malloc 9 , 1008will keep statistics on its performance if this option is enabled. 1009Unfortunately, this option therefore essentially disables the 1010.Fn MALLOC 1011and 1012.Fn FREE 1013forms of the memory allocator, which are used to enhance the performance 1014of certain critical sections of code in the kernel. 1015This option therefore can lead to a significant decrease in the 1016performance of certain code in the kernel if enabled. 1017Examples of such code include the 1018.Fn namei 1019routine, the 1020.Xr ccd 4 1021driver, 1022the 1023.Xr ncr 4 1024driver, 1025and much of the networking code. 1026.It Cd options MAXUPRC=integer 1027Sets the soft 1028.Dv RLIMIT_NPROC 1029resource limit, which specifies the maximum number of simultaneous 1030processes a user is permitted to run, for process 0; 1031this value is inherited by its child processes. 1032It defaults to 1033.Em CHILD_MAX , 1034which is currently defined to be 160. 1035Setting 1036.Em MAXUPRC 1037to a value less than 1038.Em CHILD_MAX 1039is not permitted, as this would result in a violation of the semantics of 1040.St -p1003.1-90 . 1041.It Cd options DEFCORENAME=string 1042Sets the default value of the 1043.Em kern.defcorename 1044sysctl variable, otherwise it is set to 1045.Nm %n.core . 1046See 1047.Xr sysctl 8 1048and 1049.Xr sysctl 3 1050for details. 1051.It Cd options RASOPS_CLIPPING 1052Enables clipping within the 1053.Nm rasops 1054raster-console output system. 1055.Em NOTE : 1056only available on architectures that use 1057.Nm rasops 1058for console output. 1059.It Cd options RASOPS_SMALL 1060Removes optimized character writing code from the 1061.Nm rasops 1062raster-console output system. 1063.Em NOTE : 1064only available on architectures that use 1065.Nm rasops 1066for console output. 1067.It Cd options INCLUDE_CONFIG_FILE 1068Embeds the kernel config file used to define the kernel in the kernel 1069binary itself. 1070The embedded data also includes any files directly included by the config 1071file itself, e.g. 1072.Pa GENERIC.local 1073or 1074.Pa std.$MACHINE . 1075The embedded config file can be extracted from the resulting kernel by 1076the following command: 1077.Bd -literal -offset indent 1078strings netbsd | sed -n 's/^_CFG_//p' | unvis 1079.Ed 1080.It Cd options INCLUDE_JUST_CONFIG 1081Similar to the above option, but includes just the actual config file, 1082not any included files. 1083.It Cd options PIPE_SOCKETPAIR 1084Use slower, but smaller socketpair(2)-based pipe implementation instead 1085of default faster, but bigger one. 1086Primarily useful for installation kernels. 1087.It Cd options USERCONF 1088Compiles in the in-kernel device configuration manager. 1089See 1090.Xr userconf 4 1091for details. 1092.It Cd options PERFCTRS 1093Compiles in kernel support for CPU performance-monitoring counters. 1094See 1095.Xr pmc 1 1096for details. 1097.Em NOTE : 1098not available on all architectures. 1099.El 1100.Ss Networking Options 1101.Bl -ohang 1102.It Cd options GATEWAY 1103Enables 1104.Em IPFORWARDING 1105(which see) 1106and (on most ports) increases the size of 1107.Em NMBCLUSTERS 1108(which see). 1109In general, 1110.Em GATEWAY 1111is used to indicate that a system should act as a router, and 1112.Em IPFORWARDING 1113is not invoked directly. 1114(Note that 1115.Em GATEWAY 1116has no impact on protocols other than 1117.Tn IP , 1118such as 1119.Tn CLNP 1120or 1121.Tn XNS ) . 1122.Em GATEWAY 1123option also compiles IPv4 fast forwarding code into the kernel. 1124.It Cd options IPFORWARDING=value 1125If 1126.Em value 1127is 1 this enables IP routing behavior. 1128If 1129.Em value 1130is 0 (the default), it disables it. 1131The 1132.Em GATEWAY 1133option sets this to 1 automatically. 1134With this option enabled, the machine will forward IP datagrams destined 1135for other machines between its interfaces. 1136Note that even without this option, the kernel will 1137still forward some packets (such as source routed packets) -- removing 1138.Em GATEWAY 1139and 1140.Em IPFORWARDING 1141is insufficient to stop all routing through a bastion host on a 1142firewall -- source routing is controlled independently. 1143To turn off source routing, use 1144.Em options IPFORWSRCRT=0 1145(which see). 1146Note that IP forwarding may be turned on and off independently of the 1147setting of the 1148.Em IPFORWARDING 1149option through the use of the 1150.Em net.inet.ip.forwarding 1151sysctl variable. 1152If 1153.Em net.inet.ip.forwarding 1154is 1, IP forwarding is on. 1155See 1156.Xr sysctl 8 1157and 1158.Xr sysctl 3 1159for details. 1160.It Cd options IPFORWSRCRT=value 1161If 1162.Em value 1163is set to zero, source routing of IP datagrams is turned off. 1164If 1165.Em value 1166is set to one (the default) or the option is absent, source routed IP 1167datagrams are forwarded by the machine. 1168Note that source routing of IP packets may be turned on and off 1169independently of the setting of the 1170.Em IPFORWSRCRT 1171option through the use of the 1172.Em net.inet.ip.forwsrcrt 1173sysctl variable. 1174If 1175.Em net.inet.ip.forwsrcrt 1176is 1, forwarding of source routed IP datagrams is on. 1177See 1178.Xr sysctl 8 1179and 1180.Xr sysctl 3 1181for details. 1182.It Cd options IFA_STATS 1183Tells the kernel to maintain per-address statistics on bytes sent 1184and received over (currently) internet and appletalk addresses. 1185.\"This can be a fairly expensive operation, so you probably want to 1186.\"keep this disabled. 1187The option is not recommended as it degrades system stability. 1188.It Cd options MROUTING 1189Includes support for IP multicast routers. 1190You certainly want 1191.Em INET 1192with this. 1193Multicast routing is controlled by the 1194.Xr mrouted 8 1195daemon. 1196.It Cd options INET 1197Includes support for the 1198.Tn TCP/IP 1199protocol stack. 1200You almost certainly want this. 1201See 1202.Xr inet 4 1203for details. 1204This option is currently required. 1205.It Cd options INET6 1206Includes support for the 1207.Tn IPv6 1208protocol stack. 1209See 1210.Xr inet6 4 1211for details. 1212Unlike 1213.Em INET , 1214.Em INET6 1215enables multicast routing code as well. 1216This option requires 1217.Em INET 1218at this moment, but it should not. 1219.It Cd options ND6_DEBUG 1220The option sets the default value of net.inet6.icmp6.nd6_debug to 1, 1221for debugging IPv6 neighbor discovery protocol handling. 1222See 1223.Xr sysctl 3 1224for details. 1225.It Cd options IPSEC 1226Includes support for the 1227.Tn IPsec 1228protocol. 1229See 1230.Xr ipsec 4 1231for details. 1232.Em IPSEC 1233will enable 1234secret key management part, 1235policy management part, 1236.Tn AH 1237and 1238.Tn IPComp . 1239Kernel binary will not be subject to export control in most of countries, 1240even if compiled with 1241.Em IPSEC . 1242For example, it should be okay to export it from within the United States 1243to the outside. 1244.Em INET6 1245and 1246.Em IPSEC 1247are orthogonal so you can get IPv4-only kernel with IPsec support, 1248IPv4/v6 dual support kernel without IPsec, and so forth. 1249This option requires 1250.Em INET 1251at this moment, but it should not. 1252.It Cd options IPSEC_DEBUG 1253Enables debugging code in 1254.Tn IPsec 1255stack. 1256This option assumes 1257.Em IPSEC . 1258.It Cd options IPSEC_ESP 1259Includes support for 1260.Tn IPsec 1261.Tn ESP 1262protocol. 1263See 1264.Xr ipsec 4 1265for details. 1266.Em IPSEC_ESP 1267will enable source code that is subject to export control in some countries 1268.Pq including the United States , 1269and compiled kernel binary will be subject to certain restriction. 1270This option assumes 1271.Em IPSEC . 1272.It Cd options SUBNETSARELOCAL 1273Sets default value for net.inet.ip.subnetsarelocal variable, which 1274controls whether non-directly-connected subnets of connected networks 1275are considered "local" for purposes of choosing the MSS for a TCP 1276connection. 1277This is mostly present for historic reasons and completely irrelevant if 1278you enable Path MTU discovery. 1279.It Cd options HOSTZEROBROADCAST 1280Sets default value for net.inet.ip.hostzerobroadcast variable, which 1281controls whether the zeroth host address of each connected subnet is 1282also considered a broadcast address. 1283Default value is "1", for compatibility with old systems; if this is 1284set to zero on all hosts on a subnet, you should be able to fit an extra 1285host per subnet on the 1286".0" address. 1287.It Cd options MCLSHIFT=value 1288This option is the base-2 logarithm of the size of mbuf clusters. 1289The 1290.Bx 1291networking stack keeps network packets in a linked 1292list, or chain, of kernel buffer objects called mbufs. 1293The system provides larger mbuf clusters as an optimization for 1294large packets, instead of using long chains for large packets. 1295The mbuf cluster size, 1296or 1297.Em MCLBYTES , 1298must be a power of two, and is computed as two raised to the power 1299.Em MCLSHIFT . 1300On systems with Ethernet network adaptors, 1301.Em MCLSHIFT 1302is often set to 11, giving 2048-byte mbuf clusters, large enough to 1303hold a 1500-byte 1304.Tn Ethernet 1305frame in a single cluster. 1306Systems with network interfaces supporting larger frame sizes like 1307.Tn ATM , 1308.Tn FDDI , 1309or 1310.Tn HIPPI 1311may perform better with 1312.Em MCLSHIFT 1313set to 12 or 13, giving mbuf cluster sizes of 4096 and 8192 bytes, 1314respectively. 1315.It Cd options NS 1316Include support for the 1317.Tn Xerox 1318.Tn XNS 1319protocol stack. 1320See 1321.Xr ns 4 1322for details. 1323.It Cd options ISO,TPIP 1324Include support for the ubiquitous 1325.Tn OSI 1326protocol stack. 1327See 1328.Xr iso 4 1329for details. 1330This option assumes 1331.Em INET . 1332.It Cd options EON 1333Include support for tunneling 1334.Tn OSI 1335protocols over 1336.Tn IP . 1337Known to be broken, or at least very fragile, and undocumented. 1338.It Cd options CCITT,LLC,HDLC 1339Include support for the 1340.Tn CCITT 1341(nee 1342.Tn ITU-TSS ) 1343.Tn X.25 1344protocol stack. 1345The state of this code is currently unknown, and probably contains bugs. 1346This option assumes 1347.Em INET . 1348.It Cd options NETATALK 1349Include support for the 1350.Tn AppleTalk 1351protocol stack. 1352The kernel provides provision for the 1353.Em Datagram Delivery Protocol 1354(DDP), providing SOCK_DGRAM support and 1355.Tn AppleTalk 1356routing. 1357This stack is used by the 1358.Em NETATALK 1359package, which adds support for 1360.Tn AppleTalk 1361server services via user libraries and applications. 1362.It Cd options IPNOPRIVPORTS 1363Normally, only root can bind a socket descriptor to a so-called 1364.Dq privileged 1365.Tn TCP 1366port, that is, a port number in the range 0-1023. 1367This option eliminates those checks from the kernel. 1368This can be useful if there is a desire to allow daemons without 1369privileges to bind those ports, e.g. on firewalls. 1370The security tradeoffs in doing this are subtle. 1371This option should only be used by experts. 1372.It Cd options TCP_COMPAT_42 1373.Tn TCP 1374bug compatibility with 1375.Bx 4.2 . 1376In 1377.Bx 4.2 , 1378.Tn TCP 1379sequence numbers were 32-bit signed values. 1380Modern implementations of TCP use unsigned values. 1381This option clamps the initial sequence number to start in 1382the range 2^31 rather than the full unsigned range of 2^32. 1383Also, under 1384.Bx 4.2 , 1385keepalive packets must contain at least one byte or else 1386the remote end would not respond. 1387.It Cd options TCP_DEBUG 1388Record the last 1389.Em TCP_NDEBUG 1390TCP packets with SO_DEBUG set, and decode to the console if 1391.Em tcpconsdebug 1392is set. 1393.It Cd options TCP_NDEBUG 1394Number of packets to record for 1395.Em TCP_DEBUG . 1396Defaults to 100. 1397.It Cd options PFIL_HOOKS 1398This option turns on the packet filter interface hooks. 1399See 1400.Xr pfil 9 1401for details. 1402This option assumes 1403.Em INET . 1404.It Cd options IPFILTER_LOG 1405This option, in conjunction with 1406.Em pseudo-device ipfilter , 1407enables logging of IP packets using ip-filter. 1408.It Cd options IPFILTER_DEFAULT_BLOCK 1409This option sets the default policy of ip-filter. 1410If it is set, ip-filter will block packets by default. 1411.El 1412.Ss System V IPC Options 1413.Bl -ohang 1414.It Cd options SYSVMSG 1415Includes support for 1416.At V 1417style message queues. 1418See 1419.Xr msgctl 2 , 1420.Xr msgget 2 , 1421.Xr msgrcv 2 , 1422.Xr msgsnd 2 . 1423.It Cd options SYSVSEM 1424Includes support for 1425.At V 1426style semaphores. 1427See 1428.Xr semctl 2 , 1429.Xr semget 2 , 1430.Xr semop 2 . 1431.It Cd options SEMMNI=value 1432Sets the number of 1433.At V 1434style semaphore identifiers. 1435The GENERIC config file for your port will have the default. 1436.It Cd options SEMMNS=value 1437Sets the number of 1438.At V 1439style semaphores in the system. 1440The GENERIC config file for your port will have the default. 1441.It Cd options SEMUME=value 1442Sets the maximum number of undo entries per process for 1443.At V 1444style semaphores. 1445The GENERIC config file for your port will have the default. 1446.It Cd options SEMMNU=value 1447Sets the number of undo structures in the system for 1448.At V 1449style semaphores. 1450The GENERIC config file for your port will have the default. 1451.It Cd options SYSVSHM 1452Includes support for 1453.At V 1454style shared memory. 1455See 1456.Xr shmat 2 , 1457.Xr shmctl 2 , 1458.Xr shmdt 2 , 1459.Xr shmget 2 . 1460.It Cd options SHMMAXPGS=value 1461Sets the maximum number of 1462.At V 1463style shared memory pages that are available through the 1464.Xr shmget 2 1465system call. 1466Default value is 1024 on most ports. 1467See 1468.Pa /usr/include/machine/vmparam.h 1469for the default. 1470.El 1471.Ss VM Related Options 1472.Bl -ohang 1473.It Cd options NMBCLUSTERS=value 1474The number of mbuf clusters the kernel supports. 1475Mbuf clusters are MCLBYTES in size (usually 2k). 1476This is used to compute the size of the kernel VM map 1477.Em mb_map , 1478which maps mbuf clusters. 1479Default on most ports is 1024 (2048 with 1480.Dq options GATEWAY 1481). 1482See 1483.Pa /usr/include/machine/param.h 1484for exact default information. 1485Increase this value if you get 1486.Dq mclpool limit reached 1487messages. 1488.It Cd options NKMEMPAGES=value 1489.It Cd options NKMEMPAGES_MIN=value 1490.It Cd options NKMEMPAGES_MAX=value 1491Size of kernel VM map 1492.Em kmem_map , 1493in PAGE_SIZE-sized chunks (the VM page size; this value may be read 1494from the 1495.Xr sysctl 8 1496variable 1497.Em hw.pagesize 1498). 1499This VM map is used to map the kernel malloc arena. 1500The kernel attempts to auto-size this map based on the amount of 1501physical memory in the system. 1502Platform-specific code may place bounds on this computed size, 1503which may be viewed with the 1504.Xr sysctl 8 1505variable 1506.Em vm.nkmempages . 1507See 1508.Pa /usr/include/machine/param.h 1509for the default upper and lower bounds. 1510The related options 1511.Sq NKMEMPAGES_MIN 1512and 1513.Sq NKMEMPAGES_MAX 1514allow the bounds to be overridden in the kernel configuration file. 1515These options are provided in the event the computed value is 1516insufficient resulting in an 1517.Dq out of space in kmem_map 1518panic. 1519.It Cd options BUFCACHE=value 1520Size of the buffer cache as a percentage of total available 1521.Tn RAM . 1522Ignored if BUFPAGES is also specified. 1523.It Cd options NBUF=value 1524.It Cd options BUFPAGES=value 1525These options set the number of pages available for the buffer cache. 1526Their default value is a machine dependent value, often calculated as 1527between 5% and 10% of total available 1528.Tn RAM . 1529.It Cd options MAXTSIZ=bytes 1530Sets the maximum size limit of a process' text segment. 1531See 1532.Pa /usr/include/machine/vmparam.h 1533for the port-specific default. 1534.It Cd options DFLDSIZ=bytes 1535Sets the default size limit of a process' data segment, the value that 1536will be returned as the soft limit for 1537.Dv RLIMIT_DATA 1538(as returned by 1539.Xr getrlimit 2 ) . 1540See 1541.Pa /usr/include/machine/vmparam.h 1542for the port-specific default. 1543.It Cd options MAXDSIZ=bytes 1544Sets the maximum size limit of a process' data segment, the value that 1545will be returned as the hard limit for 1546.Dv RLIMIT_DATA 1547(as returned by 1548.Xr getrlimit 2 ) . 1549See 1550.Pa /usr/include/machine/vmparam.h 1551for the port-specific default. 1552.It Cd options DFLSSIZ=bytes 1553Sets the default size limit of a process' stack segment, the value that 1554will be returned as the soft limit for 1555.Dv RLIMIT_STACK 1556(as returned by 1557.Xr getrlimit 2 ) . 1558See 1559.Pa /usr/include/machine/vmparam.h 1560for the port-specific default. 1561.It Cd options MAXSSIZ=bytes 1562Sets the maximum size limit of a process' stack segment, the value that 1563will be returned as the hard limit for 1564.Dv RLIMIT_STACK 1565(as returned by 1566.Xr getrlimit 2 ) . 1567See 1568.Pa /usr/include/machine/vmparam.h 1569for the port-specific default. 1570.El 1571.Ss amiga-specific Options 1572.Bl -ohang 1573.It Cd options BB060STUPIDROM 1574When the bootloader (which passes 1575.Tn AmigaOS 1576.Tn ROM 1577information) claims we have a 68060 1578.Tn CPU 1579without 1580.Tn FPU , 1581go look into the Processor Configuration Register (PCR) to find out. 1582You need this with 1583.Tn Amiga 1584.Tn ROM Ns s 1585up to (at least) V40.xxx (OS3.1), 1586when you boot via the bootblocks and don't have a DraCo. 1587.It Cd options IOBZCLOCK=frequency 1588The IOBlix boards come with two different serial master clocks: older ones 1589use 24 MHz, newer ones use 22.1184 MHz. 1590The driver normally assumes the latter. 1591If your board uses 24 MHz, you can recompile your kernel with 1592options IOBZCLOCK=24000000 1593or patch the kernel variable 1594.Tn iobzclock 1595to the same value. 1596.It Cd options LIMITMEM=value 1597If there, limit the part of the first memory bank used by 1598.Nx 1599to value megabytes. 1600Default is unlimited. 1601.It Cd options NKPTADD=addvalue 1602.It Cd options NKPTADDSHIFT=shiftvalue 1603The 1604.Tn CPU 1605specific 1606.Tn MMU 1607table for the kernel is pre-allocated at kernel startup time. 1608Part of it is scaled with 1609.Va maxproc , 1610to have enough room to hold the user program 1611.Tn MMU 1612tables; the second part is a fixed amount for the kernel itself. 1613.Pp 1614The third part accounts for the size of the file buffer cache. 1615Its size is either 1616.Dv NKPTADD 1617pages (if defined) or memory size in bytes divided by two to 1618the power of 1619.Dv NKPTADDSHIFT . 1620The default is undefined 1621.Dv NKPTADD 1622and 1623.Dv NKPTADDSHIFT=24 , 1624allowing for 16 buffers per megabyte of main memory (while 1625a GENERIC kernel allocates about half of that). 1626When you get "can't get KPT page" panics, you should increase 1627.Dv NKPTADD 1628(if defined), or decrease 1629.Dv NKPTADDSHIFT 1630by one. 1631.It Cd options P5PPC68KBOARD 1632Add special support for Phase5 mixed 68k+PPC boards. 1633Currently, this only affects rebooting from 1634.Nx 1635and is only needed on 68040+PPC, not on 163668060+PPC; without this, affected machines will hang after 1637.Nx 1638has shut 1639down and will only restart after a keyboard reset or a power cycle. 1640.El 1641.Ss arm32-specific Options 1642.Bl -ohang 1643.It Cd options FRENCH_KEYBOARD 1644Include translation for French keyboards when using 1645.Xr pccons 4 1646on a Shark. 1647.It Cd options FINNISH_KEYBOARD 1648Include translation for Finnish keyboards when using 1649.Xr pccons 4 1650on a Shark. 1651.It Cd options GERMAN_KEYBOARD 1652Include translation for German keyboards when using 1653.Xr pccons 4 1654on a Shark. 1655.It Cd options NORWEGIAN_KEYBOARD 1656Include translation for French keyboards when using 1657.Xr pccons 4 1658on a Shark. 1659.El 1660.Ss atari-specific Options 1661.Bl -ohang 1662.It Cd options DISKLABEL_AHDI 1663Include support for AHDI (native Atari) disklabels. 1664.It Cd options DISKLABEL_NBDA 1665Include support for 1666.Nx Ns Tn /atari 1667labels. 1668If you don't set this option, it will be set automatically. 1669.Nx Ns Tn /atari 1670will not work without it. 1671.It Cd options FALCON_SCSI 1672Include support for the 5380-SCSI configuration as found on the Falcon. 1673.It Cd options RELOC_KERNEL 1674If set, the kernel will relocate itself to TT-RAM, if possible. 1675This will give you a slightly faster system. 1676.Em Beware 1677that on some TT030 systems, 1678the system will frequently dump with MMU-faults with this option enabled. 1679.It Cd options SERCONSOLE 1680Allow the modem1-port to act as the system-console. 1681A carrier should be active on modem1 during system boot to active 1682the console functionality. 1683.It Cd options TT_SCSI 1684Include support for the 5380-SCSI configuration as found on the TT030 1685and Hades. 1686.El 1687.Ss i386-specific Options 1688.Bl -ohang 1689.It Cd options I386_CPU,I486_CPU,I586_CPU,I686_CPU 1690Include support for a particular class of 1691.Tn CPU 1692.Po 1693.Tn i386 , 1694.Tn i486 , 1695.Tn Pentium , 1696or 1697.Tn Pentium Pro 1698.Pc . 1699If the appropriate class for your 1700.Tn CPU 1701is not configured, the kernel will use the highest class available 1702that will work. 1703In general, using the correct 1704.Tn CPU 1705class will result in the best performance. 1706At least one of these options must be present. 1707.It Cd options CPURESET_DELAY=value 1708specifies the time (in millisecond) to wait before doing a hardware reset 1709in the last phase of a reboot. 1710This gives the user a chance to see error messages from the shutdown 1711operations (like NFS unmounts, buffer cache flush, etc ...). 1712Setting this to 0 will disable the delay. 1713Default is 2 seconds. 1714.It Cd options MATH_EMULATE 1715Include the floating point emulator. 1716This is useful only for 1717.Tn CPU Ns s 1718that lack an 1719internal Floating Point Unit 1720.Pq Tn FPU 1721or co-processor. 1722.It Cd options VM86 1723Include support for virtual 8086 mode, used by 1724.Tn DOS 1725emulators and X servers to run BIOS code, e.g. for some VESA routines. 1726.It Cd options USER_LDT 1727Include i386-specific system calls for modifying the local descriptor table, 1728used by Windows emulators. 1729.It Cd options REALBASEMEM=integer 1730Overrides the base memory size passed in from the boot block. 1731(Value given in kilobytes.) 1732Use this option only if the boot block reports the size incorrectly. 1733(Note that some 1734.Tn BIOS Ns es 1735put the extended 1736.Tn BIOS 1737data area at the top of base memory, and therefore report a smaller 1738base memory size to prevent programs overwriting it. 1739This is correct behavior, and you should not use the 1740.Em REALBASEMEM 1741option to access this memory). 1742.It Cd options REALEXTMEM=integer 1743Overrides the extended memory size passed in from the boot block. 1744(Value given in kilobytes. 1745Extended memory does not include the first megabyte.) 1746Use this option only if the boot block reports the size incorrectly. 1747.It Cd options FRENCH_KBD,FINNISH_KBD,GERMAN_KBD,NORWEGIAN_KBD 1748Select a non-US keyboard layout for the 1749.Em pccons 1750console driver. 1751.It Cd options CYRIX_CACHE_WORKS 1752Relevant only to the Cyrix 486DLC cpu. 1753This option is used to turn on the cache in hold-flush mode. 1754It is not turned on by default because it is known to have problems in 1755certain motherboard implementations. 1756.It Cd options CYRIX_CACHE_REALLY_WORKS 1757Relevant only to the Cyrix 486DLC cpu. 1758This option is used to turn on the cache in write-back mode. 1759It is not turned on by default because it is known to have problems in 1760certain motherboard implementations. 1761In order for this option to take effect, option 1762.Em CYRIX_CACHE_WORKS 1763must also be specified. 1764.It Cd options PCIBIOS 1765Enable support for initializing the 1766.Tn PCI 1767bus using information from the 1768.Tn BIOS . 1769See 1770.Xr pcibios 4 1771for details. 1772.It Cd options KSTACK_CHECK_DR0 1773Detect kernel stack overflow using DR0 register. 1774This option uses DR0 register exclusively so you can't use DR0 register for 1775other purpose (e.g. hardware breakpoint) if you turn this on. 1776.El 1777.Ss isa-specific Options 1778Options specific to 1779.Xr isa 4 1780busses. 1781.Bl -ohang 1782.It Cd options PCIC_ISA_ALLOC_IOBASE=address, PCIC_ISA_ALLOC_IOSIZE=size 1783Control the section of IO bus space used for PCMCIA bus space mapping. 1784Ideally the probed defaults are satisfactory, however in practice 1785that is not always the case. 1786See 1787.Xr pcmcia 4 1788for details. 1789.It Cd options PCIC_ISA_INTR_ALLOC_MASK=mask 1790Controls the allowable interrupts that may be used for 1791.Tn PCMCIA 1792devices. 1793This mask is a logical-or of power-of-2s of allowable interrupts: 1794.Bd -literal -offset 04n 1795.Em "IRQ Val IRQ Val IRQ Val IRQ Val" 1796 0 0x0001 4 0x0010 8 0x0100 12 0x1000 1797 1 0x0002 5 0x0020 9 0x0200 13 0x2000 1798 2 0x0004 6 0x0040 10 0x0400 14 0x4000 1799 3 0x0008 7 0x0080 11 0x0800 15 0x8000 1800.Ed 1801.El 1802.Ss m68k-specific Options 1803.Bl -ohang 1804.It Cd options FPU_EMULATE 1805Include support for MC68881/MC68882 emulator. 1806.It Cd options FPSP 1807Include support for 68040 floating point. 1808.It Cd options M68020,M68030,M68040,M68060 1809Include support for a specific 1810.Tn CPU , 1811at least one (the one you are using) should be specified. 1812.It Cd options M060SP 1813Include software support for 68060. 1814This provides emulation of unimplemented 1815integer instructions as well as emulation of unimplemented floating point 1816instructions and data types and software support for floating point traps. 1817.El 1818.Ss sparc-specific Options 1819.Bl -ohang 1820.It Cd options AUDIO_DEBUG 1821Enable simple event debugging of the logging of the 1822.Xr audio 4 1823device. 1824.It Cd options BLINK 1825Enable blinking of LED. 1826Blink rate is full cycle every N seconds for 1827N \*[Lt] then current load average. 1828See 1829.Xr getloadavg 3 . 1830.\" .It Cd options COLORFONT_CACHE 1831.\" this is totally fucked up.. what does this do? 1832.It Cd options COUNT_SW_LEFTOVERS 1833Count how many times the sw SCSI device has left 3, 2, 1 and 0 in the 1834sw_3_leftover, sw_2_leftover, sw_1_leftover, and sw_0_leftover 1835variables accessible from 1836.Xr ddb 4 . 1837See 1838.Xr sw 4 . 1839.It Cd options DEBUG_ALIGN 1840Adds debugging messages calls when user-requested alignment fault 1841handling happens. 1842.It Cd options DEBUG_EMUL 1843Adds debugging messages calls for emulated floating point and 1844alignment fixing operations. 1845.It Cd options DEBUG_SVR4 1846Prints registers messages calls for emulated SVR4 getcontext and 1847setcontext operations. 1848See 1849.Em options COMPAT_SVR4 . 1850.It Cd options EXTREME_DEBUG 1851Adds debugging functions callable from 1852.Xr ddb 4 . 1853The debug_pagetables, test_region and print_fe_map 1854functions print information about page tables for the SUN4M 1855platforms only. 1856.It Cd options EXTREME_EXTREME_DEBUG 1857Adds extra info to 1858.Em options EXTREME_DEBUG . 1859.It Cd options FPU_CONTEXT 1860Make 1861.Em options COMPAT_SVR4 1862getcontext and setcontext include floating point registers. 1863.It Cd options MAGMA_DEBUG 1864Adds debugging messages to the 1865.Xr magma 4 1866device. 1867.It Cd options RASTERCONS_FULLSCREEN 1868Use the entire screen for the console. 1869.It Cd options RASTERCONS_SMALLFONT 1870Use the Fixed font on the console, instead of the normal font. 1871.It Cd options SUN4 1872Support sun4 class machines. 1873.It Cd options SUN4C 1874Support sun4c class machines. 1875.It Cd options SUN4M 1876Support sun4m class machines. 1877.It Cd options SUN4_MMU3L 1878.\" XXX ??? 1879Enable support for sun4 3-level MMU machines. 1880.It Cd options V9 1881Enable SPARC V9 assembler in 1882.Xr ddb 4 . 1883.El 1884.Ss sparc64-specific Options 1885.Bl -ohang 1886.It Cd options AUDIO_DEBUG 1887Enable simple event debugging of the logging of the 1888.Xr audio 4 1889device. 1890.It Cd options BLINK 1891Enable blinking of LED. 1892Blink rate is full cycle every N seconds for 1893N \*[Lt] then current load average. 1894See 1895.Xr getloadavg 3 . 1896.El 1897.Ss x68k-specific Options 1898.Bl -ohang 1899.It Cd options EXTENDED_MEMORY 1900Include support for extended memory e.g. TS-6BE16 and 060turbo on-board. 1901.It Cd options JUPITER 1902Include support for Jupiter-X MPU accelerator 1903.It Cd options ZSCONSOLE,ZSCN_SPEED=value 1904Use the built-in serial port as the system-console. 1905Speed is specified in bps, defaults to 9600. 1906.It Cd options ITE_KERNEL_ATTR=value 1907Set the kernel message attribute for ITE. 1908Value, an integer, is a logical or of the following values: 1909.Bl -tag -width 4n -compact -offset indent 1910.It 1 1911color inversed 1912.It 2 1913underlined 1914.It 4 1915bolded 1916.El 1917.El 1918.\" The following requests should be uncommented and used where appropriate. 1919.\" .Sh FILES 1920.\" .Sh EXAMPLES 1921.Sh SEE ALSO 1922.Xr gdb 1 , 1923.Xr ktrace 1 , 1924.Xr pmc 1 , 1925.Xr quota 1 , 1926.Xr gettimeofday 2 , 1927.Xr i386_iopl 2 , 1928.Xr msgctl 2 , 1929.Xr msgget 2 , 1930.Xr msgrcv 2 , 1931.Xr msgsnd 2 , 1932.Xr ntp_adjtime 2 , 1933.Xr ntp_gettime 2 , 1934.Xr semctl 2 , 1935.Xr semget 2 , 1936.Xr semop 2 , 1937.Xr shmat 2 , 1938.Xr shmctl 2 , 1939.Xr shmdt 2 , 1940.Xr shmget 2 , 1941.Xr sysctl 3 , 1942.Xr apm 4 , 1943.Xr ddb 4 , 1944.Xr inet 4 , 1945.Xr iso 4 , 1946.Xr lkm 4 , 1947.Xr md 4 , 1948.Xr ns 4 , 1949.Xr pcibios 4 , 1950.Xr pcmcia 4 , 1951.Xr ppp 4 , 1952.Xr userconf 4 , 1953.Xr config 8 , 1954.Xr edquota 8 , 1955.Xr init 8 , 1956.Xr mdsetimage 8 , 1957.Xr mount_cd9660 8 , 1958.Xr mount_fdesc 8 , 1959.Xr mount_kernfs 8 , 1960.Xr mount_lfs 8 , 1961.Xr mount_mfs 8 , 1962.Xr mount_msdos 8 , 1963.Xr mount_nfs 8 , 1964.Xr mount_ntfs 8 , 1965.Xr mount_null 8 , 1966.Xr mount_portal 8 , 1967.Xr mount_procfs 8 , 1968.Xr mount_umap 8 , 1969.Xr mount_union 8 , 1970.Xr mrouted 8 , 1971.Xr newfs_lfs 8 , 1972.Xr ntpd 8 , 1973.Xr quotaon 8 , 1974.Xr rpc.rquotad 8 , 1975.Xr sysctl 8 1976.Sh HISTORY 1977The 1978.Nm 1979man page first appeared in 1980.Nx 1.3 . 1981.Sh BUGS 1982The 1983.Em INET 1984and the 1985.Em VNODEPAGER 1986options should not be required. 1987The 1988.Em EON 1989option should be a pseudo-device, and is also very fragile. 1990