1 .\" $NetBSD: options.4,v 1.381 2009/11/17 17:54:14 dyoung Exp $
4 .\" Perry E. Metzger. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
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.
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.
38 .Nd Miscellaneous kernel configuration options
42 .Cd [no] file-system ...
45 .Cd [no] makeoptions ...
48 .Cd [no] pseudo-device ...
50 This manual page describes a number of miscellaneous kernel
51 configuration options that may be specified in a kernel config
57 for information on how to configure and build kernels.
61 form removes a previously specified option.
63 The following keywords are recognized in a kernel configuration file:
65 .It Sy cinclude Qq Ar filename
66 Conditionally includes another kernel configuration file whose name is
68 which may be double-quoted and may be an explicit path or relative to
69 the kernel source directory.
70 Failure to open the named file is ignored.
71 .It Sy config Ar exec_name No root on Ar rootdev Oo type Ar fstype Oc \
72 Oo dumps on Ar dumpdev Oc
73 Defines a configuration whose kernel executable is named
77 with its root file system of type
81 and optionally specifying the location of kernel core dumps on the device
95 are optional and assumed to be wild carded if they are not specified.
96 .It Ar device_instance No at Ar attachment \
97 Oo Ar locators value Oo ... Oc Oc Oo flags Ar value Oc
98 Define an instance of the device driver
100 that attaches to the bus or device named
104 may require additional information on where the device can be found, such
105 as an address, channel, function, offset, and/or slot, referred to as
109 often may be a wild card,
111 Some device drivers have one or more
113 that can be adjusted to affect the way they operate.
114 .It Sy file-system Ar fs_name Op , Ar fs_name Op ...
115 Include support for the file-system
117 .It Sy ident Qq Ar string
118 Sets the kernel identification string to
120 .It Sy include Qq Ar filename
121 Functions the same as
123 except failure to open
125 produces a fatal error.
126 .It Sy options Ar option_name Op , Ar option_name=value Op ...
127 Specifies (or sets) the option, or comma-separated list of options,
129 Some options expect to be assigned a value, which may be an integer,
130 a double-quoted word, a bare word, or an empty string
132 Note that those are eventually handled by the C compiler, so the rules
133 of that language apply.
136 Options that are not defined by device definition files are passed to
137 the compile process as
139 flags to the C compiler.
140 .It Sy makeoptions Ar name=value
147 in the kernel Makefile.
148 .It Sy maxusers Ar integer
149 Set the maxusers variable in the kernel.
150 .It Sy no Ar keyword Ar name Op Ar arguments Op ...
154 file-system, makeoptions, options, and pseudo-device,
156 removes the file-system, makeoption, options, or pseudo-device,
158 This is useful when a kernel configuration file includes another which
159 has undesired options.
161 For example, a local configuration file that wanted the kitchen sink, but
162 not COMPAT_09 or bridging, might be:
163 .Bd -literal -offset indent
164 include "arch/i386/conf/GENERIC"
166 no pseudo-device bridge
168 .It Sy pseudo-device Ar name Op Ar N
169 Includes support for the pseudo-device
171 Some pseudo-devices can have multiple or
175 .Ss Compatibility Options
177 .It Cd options COMPAT_09
178 Enable binary compatibility with
180 This enables support for
181 16-bit user, group, and process IDs (following revisions support
183 It also allows the use of the deprecated
184 .Xr getdomainname 3 ,
185 .Xr setdomainname 3 ,
189 This option also allows using numeric file system identifiers rather
193 versions use string identifiers.
194 .It Cd options COMPAT_10
195 Enable binary compatibility with
197 This option allows the use of the file system name of
203 should be used post 1.0 in
206 It also adds old syscalls for the
208 shared memory interface.
209 This was changed post 1.0 to work on 64-bit architectures.
210 This option also enables
212 compatibility, without which programs using the old interface produce
214 .Dq inappropriate ioctl
217 only works when this option is set in the kernel,
220 on ports that support it.
221 .It Cd options COMPAT_11
222 Enable binary compatibility with
224 This allows binaries running on the i386 port to gain direct access to
225 the io ports by opening
228 This functionality was replaced by
233 port, the location of the disk label was moved after 1.1.
236 option is set, the kernel will read (pre) 1.1 style disk labels as a
238 When a disk label is re-written, the old style label will be replaced
239 with a post 1.1 style label.
240 This also enables the
241 .Em EXEC_ELF_NOTELESS
243 .It Cd options COMPAT_12
244 Enable binary compatibility with
246 This allows the use of old syscalls for
250 The syscall numbers were changed post 1.2 to add functionality to the
254 interface was introduced.
255 This also enables the
256 .Em EXEC_ELF_NOTELESS
258 .It Cd options COMPAT_13
259 Enable binary compatibility with
261 This allows the use of old syscalls for
263 and also enables the old
269 which does not include the
273 .It Cd options COMPAT_14
274 Enable binary compatibility with
280 to be performed, and allows the
284 system call to be used for compatibility with the deprecated nfsiod program.
285 .It Cd options COMPAT_15
286 Enable binary compatibility with
288 Since there were no API changes from
292 this option does nothing.
293 .It Cd options COMPAT_16
294 Enable binary compatibility with
296 This allows the use of old signal trampoline code which has been deprecated
299 .It Cd options COMPAT_20
300 Enable binary compatibility with
302 This allows the use of old syscalls for
308 which have been deprecated with the addition of the
315 .It Cd options COMPAT_30
316 Enable binary compatibility with
320 for details about the changes made after the
323 .It Cd options COMPAT_43
324 Enables compatibility with
326 This adds an old syscall for
328 It also adds the ioctls for
332 The return values for
337 syscalls are modified as well, to return the parent's PID and
338 UID as well as the current process's.
339 It also enables the deprecated
341 terminal line discipline.
342 It also provides backwards compatibility with
344 SIOC[GS]IF{ADDR,DSTADDR,BRDADDR,NETMASK} interface ioctls, including
345 binary compatibility with code written before the introduction of the
346 sa_len field in sockaddrs.
348 support for some older pre
351 .It Cd options COMPAT_BSDPTY
352 This option is currently on by default and enables the pty multiplexer
356 to find and use ptys named
361 Eventually this option will become optional as ptyfs based pseudo-ttys become
364 .It Cd options COMPAT_SVR4
365 On those architectures that support it, this enables binary
368 applications built for the same architecture.
369 This currently includes the i386, m68k, and sparc ports.
370 .It Cd options COMPAT_LINUX
371 On those architectures that support it, this enables binary
372 compatibility with Linux ELF and
374 applications built for the same architecture.
375 This currently includes the alpha, arm, i386, m68k, mips, powerpc and
377 .It Cd options COMPAT_LINUX32
378 On those 64 bit architectures that support it, this enables binary
379 compatibility with 32 bit Linux binaries.
380 For now this is limited to running i386 ELF Linux binaries on amd64.
381 .It Cd options COMPAT_SUNOS
382 On those architectures that support it, this enables binary
385 applications built for the same architecture.
386 This currently includes the sparc, sparc64 and most or all m68k ports.
387 Note that the sparc64 requires the
389 option for 64-bit kernels, in addition to this option.
390 .It Cd options COMPAT_ULTRIX
391 On those architectures that support it, this enables binary
394 applications built for the same architecture.
395 This currently is limited to the pmax.
396 The functionality of this option is unknown.
397 .It Cd options COMPAT_DARWIN
398 On those architectures that support it, this enables binary compatibility with
400 applications built for the same architecture.
401 This feature is highly experimental, it requires COMPAT_MACH and
402 EXEC_MACHO and it is currently limited to i386 and powerpc ports of
404 .It Cd options COMPAT_FREEBSD
405 On those architectures that support it, this enables binary
408 applications built for the same architecture.
409 At the moment this is limited to the i386 port.
410 .It Cd options COMPAT_IBCS2
411 On those architectures that support it, this enables binary
412 compatibility with iBCS2 or SVR3 applications built for the same architecture.
413 This is currently limited to the i386 and vax ports.
414 .It Cd options COMPAT_IRIX
415 On those architectures that support it, this enables binary
416 compatibility with IRIX o32 binaries built for the same architecture.
417 This feature is experimental, and it is currently limited to
419 .It Cd options COMPAT_MACH
420 On those architectures that support it, this enables the emulation of
421 Mach kernel traps for binaries built for the same architecture.
422 This feature is highly experimental and it is currently
423 limited to the i386 and powerpc ports of
425 .It Cd options COMPAT_OSF1
426 On those architectures that support it, this enables binary
434 applications built for the same architecture.
435 This is currently limited to the alpha port.
436 .It Cd options COMPAT_NOMID
437 Enable compatibility with
439 executables that lack a machine ID.
442 ZMAGIC format, and 386BSD and BSDI's
443 QMAGIC, NMAGIC, and OMAGIC
446 .It Cd options COMPAT_NETBSD32
447 On those architectures that support it, this enables binary
448 compatibility with 32-bit applications built for the same architecture.
449 This is currently limited to the amd64 and sparc64 ports, and only
450 applicable for 64-bit kernels.
451 .It Cd options COMPAT_SVR4_32
452 On those architectures that support it, this enables binary
453 compatibility with 32-bit SVR4 applications built for the same architecture.
454 This is currently limited to the sparc64 port, and only applicable for
456 .It Cd options COMPAT_AOUT_M68K
457 On m68k architectures which have switched to ELF,
458 this enables binary compatibility with
464 This handles alignment incompatibility of m68k ABI between
465 a.out and ELF which causes the structure padding differences.
466 Currently only some system calls which use
468 are adjusted and some binaries which use
470 to retrieve network details would not work properly.
471 .It Cd options EXEC_MACHO
472 On those architectures that support it, this adds support for running
474 This is currently limited to the i386 and powerpc ports of
476 .It Cd options EXEC_ELF_NOTELESS
477 Run unidentified ELF binaries as
480 This might be needed for very old
482 ELF binaries on some archs.
483 These old binaries didn't contain an appropriate
484 .Li .note.netbsd.ident
485 section, and thus can't be identified by the kernel as
488 Beware - if this option is on, the kernel would run
490 unknown ELF binaries as if they were
493 .It Cd options P1003_1B_SEMAPHORE
494 Includes kernel support for the standard C library
496 functions that implement semaphores as specified in
499 .Ss Debugging Options
502 Compiles in a kernel debugger for diagnosing kernel problems.
507 not available on all architectures.
508 .It Cd options DDB_FROMCONSOLE=integer
509 If set to non-zero, DDB may be entered by sending a break on a serial
510 console or by a special key sequence on a graphics console.
511 A value of "0" ignores console breaks or key sequences.
512 If not explicitly specified, the default value is "1".
513 Note that this sets the value of the
516 variable which may be changed at run time -- see
519 .It Cd options DDB_HISTORY_SIZE=integer
520 If this is non-zero, enable history editing in the kernel debugger
521 and set the size of the history to this value.
522 .It Cd options DDB_ONPANIC
523 The default if not specified is
525 - just enter into DDB.
529 attempt to print out a stack trace before entering into DDB.
532 the kernel will attempt to print out a stack trace
533 and reboot the system.
536 then neither a stack trace is printed or DDB entered -
537 it is as if DDB were not compiled into the kernel.
538 Note that this sets the value of the
541 variable which may be changed at run time -- see
544 .It Cd options DDB_COMMANDONENTER=string
545 This option specify commands which will be executed on each entry to DDB.
546 This sets the default value of the
547 .Em ddb.commandonenter
549 variable which may be changed at run time.
550 .It Cd options DDB_BREAK_CHAR=integer
551 This option overrides using break to enter the kernel debugger
552 on the serial console.
553 The value given is the ASCII value to be used instead.
554 This is currently only supported by the com driver.
555 .It Cd options DDB_VERBOSE_HELP
556 This option adds more verbose descriptions to the
560 Compiles in a remote kernel debugger stub for diagnosing kernel problems
568 not available on all architectures.
569 .It Cd options KGDB_DEV
576 .It Cd options KGDB_DEVADDR
577 Memory address of kgdb device.
578 .It Cd options KGDB_DEVMODE
579 Permissions of kgdb device.
580 .It Cd options KGDB_DEVNAME
581 Device name of kgdb device.
582 .It Cd options KGDB_DEVRATE
583 Baud rate of kgdb device.
584 .It Cd makeoptions DEBUG="-g"
589 to be built in addition to
592 is useful for debugging kernel crash dumps with gdb.
600 Turns on miscellaneous kernel debugging.
601 Since options are turned into preprocessor defines (see above),
603 is equivalent to doing a
605 throughout the kernel.
606 Much of the kernel has
608 conditionalized debugging code.
609 Note that many parts of the kernel (typically device drivers) include their own
611 conditionals instead.
612 This option also turns on certain other options,
613 which may decrease system performance.
614 .It Cd options DIAGNOSTIC
615 Adds code to the kernel that does internal consistency checks.
616 This code will cause the kernel to panic if corruption of internal data
617 structures is detected.
618 These checks can decrease performance up to 15%.
619 .It Cd options LOCKDEBUG
620 Adds code to the kernel to detect incorrect use of locking primitives
621 (mutex, rwlock, simplelock).
622 This code will cause the kernel to check for dead lock conditions.
623 It will also check for memory being freed to not contain initialised
627 to check lock chains etc. are also enabled.
628 These checks are very expensive and can decrease performance on
629 multi-processor machines by a factor of three.
630 .It Cd options KSTACK_CHECK_MAGIC
631 Check kernel stack usage and panic if stack overflow is detected.
632 This check is performance sensitive because it scans stack on each context
634 .It Cd options KTRACE
635 Add hooks for the system call tracing facility, which allows users to
636 watch the system call invocation behavior of processes.
640 .It Cd options MSGBUFSIZE=integer
641 This option sets the size of the kernel message buffer.
642 This buffer holds the kernel output of
644 when not (yet) read by
646 This is particularly useful when the system has crashed and you wish to lookup
647 the kernel output from just before the crash.
648 Also, since the autoconfig output becomes more and more verbose,
649 it sometimes happens that the message buffer overflows before
652 Note that not all systems are capable of obtaining a variable sized message
654 There are also some systems on which memory contents are not preserved
656 .It Cd options MALLOCLOG
657 Enables an event log for
659 Useful for tracking down
660 .Dq Data modified on freelist
664 .It Cd options MALLOCLOGSIZE=integer
665 Defines the number of entries in the malloc log.
666 Default is 100000 entries.
667 .It Cd options UVMHIST
668 Enables the UVM history logs, which create in-memory traces of
669 various UVM activities.
670 These logs can be displayed be calling
674 with appropriate arguments from DDB.
675 See the kernel source file sys/uvm/uvm_stat.c for details.
676 .It Cd options UVMHIST_PRINT
677 Prints the UVM history logs on the system console as entries are added.
678 Note that the output is
680 voluminous, so this option is really only useful for debugging
681 the very earliest parts of kernel initialization.
685 .It Cd file-system FFS
686 Includes code implementing the Berkeley Fast File System
688 Most machines need this if they are not running diskless.
689 .It Cd file-system EXT2FS
690 Includes code implementing the Second Extended File System
692 revision 0 and revision 1 with the
697 This is the most commonly used file system on the Linux operating system,
698 and is provided here for compatibility.
699 Some of the specific features of
701 like the "behavior on errors" are not implemented.
702 This file system can't be used with UID or GID greater than 65535.
706 .It Cd file-system LFS
708 Include the Log-structured File System
715 .It Cd file-system MFS
716 Include the Memory File System
718 This file system stores files in swappable memory, and produces
719 notable performance improvements when it is used as the file store
722 and similar file systems.
726 .It Cd file-system NFS
727 Include the client side of the Network File System
729 remote file sharing protocol.
730 Although the bulk of the code implementing
732 is kernel based, several user level daemons are needed for it to work.
736 .It Cd file-system CD9660
737 Includes code for the
739 9660 + Rock Ridge file system, which is the standard file system on many
742 Useful primarily if you have a
748 .It Cd file-system MSDOSFS
751 FAT file system, which is reportedly still used
752 by unfortunate people who have not heard about
756 extensions to the same, which permit the use of longer, mixed case
763 .It Cd file-system NTFS
765 Includes code for the
766 .Tn Microsoft Windows NT
771 .It Cd file-system FDESC
772 Includes code for a file system, conventionally mounted on
774 which permits access to the per-process file descriptor space via
775 special files in the file system.
779 Note that this facility is redundant, and thus unneeded on most
783 pseudo-device driver already provides identical functionality.
786 systems, instances of
795 .It Cd file-system KERNFS
796 Includes code which permits the mounting of a special file system
799 in which files representing various kernel variables and parameters
804 .It Cd file-system NULLFS
805 Includes code for a loopback file system.
806 This permits portions of the file hierarchy to be re-mounted in other places.
807 The code really exists to provide an example of a stackable file system layer.
811 .It Cd file-system OVERLAY
812 Includes code for a file system filter.
813 This permits the overlay file system to intercept all access to an underlying
815 This file system is intended to serve as an example of a stacking file
816 system which has a need to interpose itself between an underlying file
817 system and all other access.
821 .It Cd file-system PROCFS
822 Includes code for a special file system (conventionally mounted on
824 in which the process space becomes visible in the file system.
826 other things, the memory spaces of processes running on the system are
827 visible as files, and signals may be sent to processes by writing to
829 files in the procfs namespace.
833 .It Cd file-system UDF
835 Includes code for the UDF file system commonly found on CD and DVD
836 media but also more and more on USB sticks.
837 Useful primarily if you have a CD or a DVD drive, be it a read-only
838 or a rewritable device.
839 Currently only supports read-access.
843 .It Cd file-system UMAPFS
844 Includes a loopback file system in which user and group IDs may be
845 remapped -- this can be useful when mounting alien file systems with
846 different UIDs and GIDs than the local system.
850 .It Cd file-system UNION
852 Includes code for the union file system, which permits directories to
853 be mounted on top of each other in such a way that both file systems
854 remain visible -- this permits tricks like allowing writing (and the
855 deleting of files) on a read-only file system like a
857 by mounting a local writable file system on top of the read-only file system.
861 .It Cd file-system CODA
863 Includes code for the Coda file system.
864 Coda is a distributed file system like NFS and AFS.
865 It is freely available, like NFS, but it functions much like AFS in being a
868 Both Coda and AFS cache files on your local machine to improve performance.
869 Then Coda goes a step further than AFS by letting you access the cached
870 files when there is no available network, viz. disconnected laptops and
872 In Coda, both the client and server are outside the kernel which makes
873 them easier to experiment with.
874 Coda is available for several UNIX and non-UNIX platforms.
875 See http://www.coda.cs.cmu.edu for more details.
877 You also need to enable the pseudo-device, vcoda, for the Coda
879 .It Cd file-system SMBFS
881 Includes code for the SMB/CIFS file system.
886 You also need to enable the pseudo-device, nsmb, for the SMB
888 .It Cd file-system PTYFS
890 Includes code for a special file system (normally mounted on
892 in which pseudo-terminal slave devices become visible in the file system.
896 .It Cd file-system TMPFS
897 Includes code for the efficient memory file system, normally used over
902 .It Cd file-system PUFFS
904 Includes kernel support for the pass-to-userspace framework file system.
905 It can be used to implement file system functionality in userspace.
911 This option is required for sshfs:
914 .Ss File System Options
916 .It Cd options MAGICLINKS
917 Enables the expansion of special strings
922 when traversing symbolic links.
925 for a list of supported strings.
926 Note that this option only controls the enabling of this feature
927 by the kernel at boot-up.
928 This feature can still be manipulated with the
930 command regardless of the setting of this option.
931 .It Cd options NFSSERVER
932 Include the server side of the
934 (Network File System) remote file sharing protocol.
935 Although the bulk of the code implementing
937 is kernel based, several user level daemons are needed for it to
945 Enables kernel support for file system quotas.
952 Note that quotas only work on
954 file systems, although
956 permits them to be accessed over
958 .It Cd options FFS_EI
959 Enable ``Endian-Independent'' FFS support.
960 This allows a system to mount an FFS file system created for another
961 architecture, at a small performance cost for all FFS file systems.
966 for file system byte order status and manipulation.
967 .It Cd options FFS_NO_SNAPSHOT
969 .Dq file system snapshot
970 support in FFS file systems.
971 Maybe useful for install media kernels, small memory systems and
972 embedded systems which don't require the snapshot support.
975 .Dq Write Ahead Physical Block Logging file system journaling .
976 This provides rapid file system consistency checking after a system outage.
977 It also provides better general use performance over regular FFS.
980 .It Cd options NVNODE=integer
981 This option sets the size of the cache used by the name-to-inode translation
982 routines, (a.k.a. the
984 cache, though called by many other names in the kernel source).
985 By default, this cache has
987 (set as 20 + 16 * MAXUSERS) * (80 + NPROC / 8) entries.
988 A reasonable way to derive a value of
990 should you notice a large number of namei cache misses with a tool such as
992 is to examine your system's current computed value with
994 (which calls this parameter "kern.maxvnodes") and to increase this value
995 until either the namei cache hit rate improves or it is determined that
996 your system does not benefit substantially from an increase in the size of
998 .It Cd options NAMECACHE_ENTER_REVERSE
999 Causes the namei cache to always enter a reverse mapping (vnode -\*[Gt] name)
1000 as well as a normal one.
1001 Normally, this is already done for directory vnodes, to speed up the getcwd
1003 This option will cause longer hash chains in the reverse cache, and thus
1004 slow down getcwd somewhat.
1005 However, it does make vnode -\*[Gt] path translations possible in some cases.
1006 For now, only useful if strict /proc/#/maps emulation for Linux binaries is
1008 .It Cd options EXT2FS_SYSTEM_FLAGS
1009 This option changes the behavior of the APPEND and IMMUTABLE flags
1013 Without this option, the superuser or owner of the file can
1015 With this option, only the superuser can set them, and
1016 they can't be cleared if the securelevel is greater than 0.
1020 .Xr secmodel_securelevel 9 .
1021 .It Cd options NFS_BOOT_BOOTP
1022 Enable use of the BOOTP protocol (RFCs 951 and 1048) to get configuration
1023 information if NFS is used to mount the root file system.
1027 .It Cd options NFS_BOOT_DHCP
1029 .Dq NFS_BOOT_BOOTP ,
1030 but use the DHCP extensions to the
1031 BOOTP protocol (RFC 1541).
1032 .It Cd options NFS_BOOT_BOOTP_REQFILE
1033 Specifies the string sent in the bp_file field of the BOOTP / DHCP
1035 .It Cd options NFS_BOOT_BOOTPARAM
1036 Enable use of the BOOTPARAM protocol, consisting of RARP and
1037 BOOTPARAM RPC, to get configuration information if NFS
1038 is used to mount the root file system.
1042 .It Cd options NFS_BOOT_RWSIZE=value
1043 Set the initial NFS read and write sizes for diskless-boot requests.
1044 The normal default is 8Kbytes.
1045 This option provides a way to lower the value (e.g., to 1024 bytes)
1046 as a workaround for buggy network interface cards or boot PROMs.
1047 Once booted, the read and write request sizes can be increased by
1048 remounting the file system.
1052 .It Cd options NFS_V2_ONLY
1053 Reduce the size of the NFS client code by omitting code that's only required
1054 for NFSv3 and NQNFS support, leaving only that code required to use NFSv2
1056 .It Cd options UFS_DIRHASH
1057 Increase lookup performance by maintaining in-core hash tables
1058 for large directories.
1060 .Ss Buffer queue strategy options
1061 The following options enable alternative buffer queue strategies.
1063 .It Cd options BUFQ_READPRIO
1064 Enable experimental buffer queue strategy for disk I/O.
1065 In the default strategy, outstanding disk requests are ordered by
1066 sector number and sent to the disk, regardless of whether the
1067 operation is a read or write; this option gives priority to issuing
1068 read requests over write requests.
1069 Although requests may therefore be issued out of sector-order, causing
1070 more seeks and thus lower overall throughput, interactive system
1071 responsiveness under heavy disk I/O load may be improved, as processes
1072 blocking on disk reads are serviced sooner (file writes typically
1073 don't cause applications to block).
1074 The performance effect varies greatly depending on the hardware, drive
1075 firmware, file system configuration, workload, and desired performance
1077 Systems using drive write-cache (most modern IDE disks, by default)
1078 are unlikely to benefit and may well suffer; such disks acknowledge
1079 writes very quickly, and optimize them internally according to
1081 Giving these disks as many requests to work with as possible (the
1082 standard strategy) will typically produce the best results, especially
1083 if the drive has a large cache; the drive will silently complete
1084 writes from cache as it seeks for reads.
1085 Disks that support a large number of concurrent tagged requests (SCSI
1086 disks and many hardware RAID controllers) expose this internal
1087 scheduling with tagged responses, and don't block for reads; such
1088 disks may not see a noticeable difference with either strategy.
1089 However, if IDE disks are run with write-cache disabled for safety,
1090 writes are not acknowledged until actually completed, and only one
1091 request can be outstanding; a large number of small writes in one
1092 locality can keep the disk busy, starving reads elsewhere on the disk.
1093 Such systems are likely to see the most benefit from this option.
1094 Finally, the performance interaction of this option with ffs soft
1095 dependencies can be subtle, as that mechanism can drastically alter
1096 the workload for file system metadata writes.
1097 .It Cd options BUFQ_PRIOCSCAN
1098 Enable another buffer queue strategy for disk I/O, per-priority cyclical scan.
1099 .It Cd options NEW_BUFQ_STRATEGY
1103 .Ss Miscellaneous Options
1105 .It Cd options MEMORY_DISK_DYNAMIC
1106 This option makes the
1109 disk size dynamically sized.
1110 It is incompatible with
1112 .It Cd options MEMORY_DISK_HOOKS
1113 This option allows for some machine dependent functions to be called when
1117 disk driver is configured.
1118 This can result in automatically loading a
1120 disk from floppy on open (among other things).
1121 .It Cd options MEMORY_DISK_IS_ROOT
1125 disk to be the root device.
1126 This can only be overridden when
1127 the kernel is booted in the 'ask-for-root' mode.
1128 .It Cd options MEMORY_DISK_ROOT_SIZE=integer
1129 Allocates the given number of 512 byte blocks as memory for the
1132 disk, to be populated with
1134 .It Cd options MEMORY_DISK_SERVER=0
1135 Do not include the interface to a userland memory disk server process.
1136 Per default, this option is set to 1, including the support code.
1137 Useful for install media kernels.
1138 .It Cd options MEMORY_DISK_RBFLAGS=value
1139 This option sets the
1141 flags used when booting with a memory disk as root file system.
1142 Possible values include
1144 (boot in the usual fashion - default value), and
1146 (boot in single-user mode).
1147 .It Cd options MODULAR
1148 Enables the framework for kernel modules.
1149 .It Cd options VND_COMPRESSION
1152 driver to also handle compressed images.
1158 for more information.
1159 .It Cd options SPLDEBUG
1160 Help the kernel programmer find bugs related to the interrupt priority
1166 changes the current CPU's interrupt priority level to or from
1170 .Xr return_address 9
1171 for caveats about collecting backtraces.
1172 This feature is experimental, and it is only available on i386.
1174 .Pa sys/kern/subr_spldebug.c .
1175 .It Cd options TFTPROOT
1176 Download the root memory disk through TFTP at root mount time.
1177 This enables the use of a root
1179 disk without requiring it to be embedded in the kernel using
1183 disk name is obtained using DHCP's filename parameter.
1184 This option requires
1185 .Em MEMORY_DISK_HOOKS ,
1186 .Em MEMORY_DISK_DYNAMIC ,
1188 .Em MEMORY_DISK_IS_ROOT .
1189 It is incompatible with
1190 .Em MEMORY_DISK_ROOT_SIZE .
1191 .It Cd options MALLOC_NOINLINE
1192 Time critical fixed size memory allocation is performed with
1196 Normally these expand to inline code, but with
1198 these call the normal
1203 Useful for install media kernels, small memory systems and embedded systems.
1204 .It Cd options HZ=integer
1205 On ports that support it, set the system clock frequency (see
1207 to the supplied value.
1210 Turns on in-kernel precision timekeeping support used by software
1213 (Network Time Protocol, RFC 1305).
1216 option adds an in-kernel Phase-Locked Loop (PLL) for normal
1218 operation, and a Frequency-Locked Loop (FLL) for intermittently-connected
1221 will employ a user-level PLL when kernel support is unavailable,
1222 but the in-kernel version has lower latency and more precision, and
1223 so typically keeps much better time.
1224 The interface to the kernel
1226 support is provided by the
1230 system calls, which are intended for use by
1232 and are enabled by the option.
1233 On systems with sub-microsecond resolution timers, or where (HZ / 100000)
1234 is not an integer, the
1236 option also enables extended-precision arithmetic to keep track of
1237 fractional clock ticks at NTP time-format precision.
1238 .It Cd options PPS_SYNC
1239 This option enables a kernel serial line discipline for receiving time
1240 phase signals from an external reference clock such as a radio clock.
1243 option (which see) must be on if the
1246 Some reference clocks generate a Pulse Per Second (PPS) signal in
1247 phase with their time source.
1250 line discipline receives this signal on either the data leads
1251 or the DCD control lead of a serial port.
1253 uses the PPS signal to discipline the local clock oscillator to a high
1254 degree of precision (typically less than 50 microseconds in time and
1255 0.1 ppm in accuracy).
1257 can also generate a serial output pulse when the system receives a PPS
1259 This can be used to measure the system interrupt latency and thus calibrate
1266 to convert from TTL to RS-232 signal levels.
1267 The gadget box and PPS are described in more detail in the HTML documentation
1271 .Pa /usr/share/doc/html/ntp .
1272 .It Cd options SETUIDSCRIPTS
1273 Allows scripts with the setuid bit set to execute as the effective
1274 user rather than the real user, just like binary executables.
1277 Using this option will also enable
1278 .Em options FDSCRIPTS
1279 .It Cd options FDSCRIPTS
1280 Allows execution of scripts with the execute bit set, but not the
1281 read bit, by opening the file and passing the file descriptor to
1282 the shell, rather than the filename.
1285 Execute only (non-readable) scripts will have
1289 What this option allows as far as security is
1290 concerned, is the ability to safely ensure that the correct script
1291 is run by the interpreter, as it is passed as an already open file.
1292 .It Cd options PUCCN
1293 Enables treating serial ports found on PCI boards
1295 as potential console devices.
1296 The method for choosing such a console device is port dependent.
1297 .It Cd options RTC_OFFSET=integer
1298 The kernel (and typically the hardware battery backed-up clock on
1299 those machines that have one) keeps time in
1301 (Universal Coordinated Time, once known as
1303 or Greenwich Mean Time)
1304 and not in the time of the local time zone.
1307 option is used on some ports (such as the i386) to tell the kernel
1308 that the hardware clock is offset from
1310 by the specified number of minutes.
1311 This is typically used when a machine boots several operating
1312 systems and one of them wants the hardware clock to run in the
1313 local time zone and not in
1318 the hardware clock is set to US Eastern Time (300 minutes behind
1324 is used to initialize a kernel variable named
1326 which is the source actually used to determine the clock offset, and
1327 which may be accessed via the kern.rtc_offset sysctl variable.
1333 Since the kernel clock is initialized from the hardware clock very
1334 early in the boot process, it is not possible to meaningfully change
1336 in system initialization scripts.
1337 Changing this value currently may only be done at kernel compile
1338 time or by patching the kernel and rebooting).
1341 Unfortunately, in many cases where the hardware clock
1342 is kept in local time, it is adjusted for Daylight Savings
1343 Time; this means that attempting to use
1347 coexist with such an operating system, like Windows,
1348 would necessitate changing
1351 As such, this solution is imperfect.
1352 .It Cd options KMEMSTATS
1353 The kernel memory allocator,
1355 will keep statistics on its performance if this option is enabled.
1356 Unfortunately, this option therefore essentially disables the
1360 forms of the memory allocator, which are used to enhance the performance
1361 of certain critical sections of code in the kernel.
1362 This option therefore can lead to a significant decrease in the
1363 performance of certain code in the kernel if enabled.
1364 Examples of such code include the
1369 and much of the networking code.
1370 .It Cd options MAXUPRC=integer
1373 resource limit, which specifies the maximum number of simultaneous
1374 processes a user is permitted to run, for process 0;
1375 this value is inherited by its child processes.
1378 which is currently defined to be 160.
1381 to a value less than
1383 is not permitted, as this would result in a violation of the semantics of
1385 .It Cd options NOFILE=integer
1388 resource limit, which specifies the maximum number of open
1389 file descriptors for each process;
1390 this value is inherited by its child processes.
1393 which is currently defined to be 64.
1394 .It Cd options MAXFILES=integer
1395 Sets the default value of the
1397 sysctl variable, which indicates the maximum number of files that may
1398 be open in the system.
1399 .It Cd options DEFCORENAME=string
1400 Sets the default value of the
1401 .Em kern.defcorename
1402 sysctl variable, otherwise it is set to
1409 .It Cd options RASOPS_CLIPPING
1410 Enables clipping within the
1412 raster-console output system.
1414 only available on architectures that use
1417 .It Cd options RASOPS_SMALL
1418 Removes optimized character writing code from the
1420 raster-console output system.
1422 only available on architectures that use
1425 .It Cd options INCLUDE_CONFIG_FILE
1426 Embeds the kernel config file used to define the kernel in the kernel
1428 The embedded data also includes any files directly included by the config
1433 The embedded config file can be extracted from the resulting kernel with
1436 or by the following command:
1437 .Bd -literal -offset indent
1438 strings netbsd | sed -n 's/^_CFG_//p' | unvis
1440 .It Cd options INCLUDE_JUST_CONFIG
1441 Similar to the above option, but includes just the actual config file,
1442 not any included files.
1443 .It Cd options PIPE_SOCKETPAIR
1444 Use slower, but smaller socketpair(2)-based pipe implementation instead
1445 of default faster, but bigger one.
1446 Primarily useful for installation kernels.
1447 .It Cd options USERCONF
1448 Compiles in the in-kernel device configuration manager.
1452 .It Cd options PERFCTRS
1453 Compiles in kernel support for CPU performance-monitoring counters.
1458 not available on all architectures.
1459 .It Cd options SYSCALL_STATS
1460 Count the number of times each system call number is called.
1461 The values can be read through the sysctl interface and displayed using
1464 not yet available on all architectures.
1465 .It Cd options SYSCALL_TIMES
1466 Count the time spent (using
1468 in each system call.
1470 Using this option will also enable
1471 .Cd options SYSCALL_STATS .
1472 .It Cd options SYSCALL_TIMES_HASCOUNTER
1478 Useful for systems where the cycle counter doesn't run at a constant rate
1479 (e.g. Soekris boxes).
1480 .It Cd options XSERVER
1481 Compiles in kernel support for
1483 on architectures that still use (or can use) the legacy
1485 console drivers rather than
1487 These include bebox, i386, shark.
1488 .It Cd options XSERVER_DDB
1489 A supplement to XSERVER that adds support for entering
1493 .It Cd options FILEASSOC
1496 .It Cd options FILEASSOC_NHOOKS=integer
1497 Number of storage slots per file for
1500 .It Cd options I2C_SCAN
1501 Scan each i2c bus to determine which addresses respond.
1504 Using this option can access some devices in such a
1505 manner as to leave them in an unstable or unuseable state, and
1506 can prevent those devices from being properly matched and/or
1508 It can also lock up the entire i2c bus and even
1509 prevent a machine from completing the boot process.
1510 Don't use this option unless you know what you're doing and can
1511 accept all sorts of unforeseen consequences.
1513 .Ss Networking Options
1515 .It Cd options GATEWAY
1519 and (on most ports) increases the size of
1524 is used to indicate that a system should act as a router, and
1526 is not invoked directly.
1529 has no impact on protocols other than
1536 option also compiles IPv4 and IPv6 fast forwarding code into the kernel.
1537 .It Cd options ICMPPRINTFS
1540 option will enable debugging information to be printed about
1544 .It Cd options IPFORWARDING=value
1547 is 1 this enables IP routing behavior.
1550 is 0 (the default), it disables it.
1553 option sets this to 1 automatically.
1554 With this option enabled, the machine will forward IP datagrams destined
1555 for other machines between its interfaces.
1556 Note that even without this option, the kernel will
1557 still forward some packets (such as source routed packets) -- removing
1561 is insufficient to stop all routing through a bastion host on a
1562 firewall -- source routing is controlled independently.
1563 To turn off source routing, use
1564 .Em options IPFORWSRCRT=0
1566 Note that IP forwarding may be turned on and off independently of the
1569 option through the use of the
1570 .Em net.inet.ip.forwarding
1573 .Em net.inet.ip.forwarding
1574 is 1, IP forwarding is on.
1580 .It Cd options IPFORWSRCRT=value
1583 is set to zero, source routing of IP datagrams is turned off.
1586 is set to one (the default) or the option is absent, source routed IP
1587 datagrams are forwarded by the machine.
1588 Note that source routing of IP packets may be turned on and off
1589 independently of the setting of the
1591 option through the use of the
1592 .Em net.inet.ip.forwsrcrt
1595 .Em net.inet.ip.forwsrcrt
1596 is 1, forwarding of source routed IP datagrams is on.
1602 .It Cd options IFA_STATS
1603 Tells the kernel to maintain per-address statistics on bytes sent
1604 and received over (currently) Internet and AppleTalk addresses.
1605 .\"This can be a fairly expensive operation, so you probably want to
1606 .\"keep this disabled.
1607 The option is not recommended as it degrades system stability.
1608 .It Cd options IFQ_MAXLEN=value
1609 Increases the allowed size of the network interface packet queues.
1610 The default queue size is 50 packets, and you do not normally need
1612 .It Cd options IPSELSRC
1613 Includes support for source-address selection policies.
1616 .It Cd options MROUTING
1617 Includes support for IP multicast routers.
1621 Multicast routing is controlled by the
1627 Includes support for Protocol Independent Multicast (PIM) routing.
1633 Software using this can be found e.g. in
1634 .Pa pkgsrc/net/xorp .
1636 Includes support for the
1639 You almost certainly want this.
1643 .It Cd options INET6
1644 Includes support for the
1653 enables multicast routing code as well.
1654 This option requires
1656 at this moment, but it should not.
1657 .It Cd options ND6_DEBUG
1658 The option sets the default value of net.inet6.icmp6.nd6_debug to 1,
1659 for debugging IPv6 neighbor discovery protocol handling.
1663 .It Cd options IPSEC
1664 Includes support for the
1670 .It Cd options IPSEC_DEBUG
1671 Enables debugging code in
1677 .It Cd options IPSEC_ESP
1678 Includes support for
1685 .It Cd options IPSEC_NAT_T
1686 Includes support for
1688 Network Address Translator traversal (NAT-T), as described in RFCs 3947
1690 This feature might be patent-encumbered in some countries.
1692 Enabled ALTQ (Alternate Queueing).
1693 For simple rate-limiting, use
1695 to set up the interface transmission rate.
1696 To use queueing disciplines, their appropriate kernel options should also
1697 be defined (documented below).
1698 Queueing disciplines are managed by
1703 .It Cd options ALTQ_HFSC
1704 Include support for ALTQ-implemented HFSC (Hierarchical Fair Service Curve)
1706 HFSC supports both link-sharing and guaranteed real-time services.
1707 HFSC employs a service curve based QoS model, and its unique feature
1708 is an ability to decouple delay and bandwidth allocation.
1711 to use the RED queueing discipline on HFSC classes, or
1713 to use the RIO queueing discipline on HFSC classes.
1716 .It Cd options ALTQ_PRIQ
1717 Include support for ALTQ-implemented PRIQ (Priority Queueing).
1718 PRIQ implements a simple priority-based queueing discipline.
1719 A higher priority class is always served first.
1722 to use the RED queueing discipline on HFSC classes, or
1724 to use the RIO queueing discipline on HFSC classes.
1727 .It Cd options ALTQ_WFQ
1728 Include support for ALTQ-implemented WFQ (Weighted Fair Queueing).
1729 WFQ implements a weighted-round robin scheduler for a set of queues.
1730 A weight can be assigned to each queue to give a different proportion
1731 of the link capacity.
1732 A hash function is used to map a flow to one of a set of queues.
1735 .It Cd options ALTQ_FIFOQ
1736 Include support for ALTQ-implemented FIFO queueing.
1737 FIFOQ is a simple drop-tail FIFO (First In, First Out) queueing discipline.
1740 .It Cd options ALTQ_RIO
1741 Include support for ALTQ-implemented RIO (RED with In/Out).
1742 The original RIO has 2 sets of RED parameters; one for in-profile
1743 packets and the other for out-of-profile packets.
1744 At the ingress of the network, profile meters tag packets as IN or
1745 OUT based on contracted profiles for customers.
1746 Inside the network, IN packets receive preferential treatment by
1748 ALTQ/RIO has 3 drop precedence levels defined for the Assured Forwarding
1749 PHB of DiffServ (RFC 2597).
1752 .It Cd options ALTQ_BLUE
1753 Include support for ALTQ-implemented Blue buffer management.
1754 Blue is another active buffer management mechanism.
1757 .It Cd options ALTQ_FLOWVALVE
1758 Include support for ALTQ-implemented Flowvalve.
1759 Flowvalve is a simple implementation of a RED penalty box that identifies
1760 and punishes misbehaving flows.
1761 This option requires
1765 .It Cd options ALTQ_CDNR
1766 Include support for ALTQ-implemented CDNR (diffserv traffic conditioner)
1767 packet marking/manipulation.
1768 Traffic conditioners are components to meter, mark, or drop incoming
1769 packets according to some rules.
1770 As opposed to queueing disciplines, traffic conditioners handle incoming
1771 packets at an input interface.
1774 .It Cd options ALTQ_NOPCC
1775 Disables use of processor cycle counter to measure time in ALTQ.
1776 This option should be defined for a non-Pentium i386 CPU which does not
1777 have TSC, SMP (per-CPU counters are not in sync), or power management
1778 which affects processor cycle counter.
1781 .It Cd options ALTQ_IPSEC
1782 Include support for IPsec in IPv4 ALTQ.
1785 .It Cd options ALTQ_JOBS
1786 Include support for ALTQ-implemented JoBS (Joint Buffer Management
1790 .It Cd options ALTQ_AFMAP
1791 Include support for an undocumented ALTQ feature that is used to map an IP
1792 flow to an ATM VC (Virtual Circuit).
1795 .It Cd options ALTQ_LOCALQ
1796 Include support for ALTQ-implemented local queues.
1797 Its practical use is undefined.
1800 .It Cd options SUBNETSARELOCAL
1801 Sets default value for net.inet.ip.subnetsarelocal variable, which
1802 controls whether non-directly-connected subnets of connected networks
1803 are considered "local" for purposes of choosing the MSS for a TCP
1805 This is mostly present for historic reasons and completely irrelevant if
1806 you enable Path MTU discovery.
1807 .It Cd options HOSTZEROBROADCAST
1808 Sets default value for net.inet.ip.hostzerobroadcast variable, which
1809 controls whether the zeroth host address of each connected subnet is
1810 also considered a broadcast address.
1811 Default value is "1", for compatibility with old systems; if this is
1812 set to zero on all hosts on a subnet, you should be able to fit an extra
1813 host per subnet on the
1815 .It Cd options MCLSHIFT=value
1816 This option is the base-2 logarithm of the size of mbuf clusters.
1819 networking stack keeps network packets in a linked
1820 list, or chain, of kernel buffer objects called mbufs.
1821 The system provides larger mbuf clusters as an optimization for
1822 large packets, instead of using long chains for large packets.
1823 The mbuf cluster size,
1826 must be a power of two, and is computed as two raised to the power
1828 On systems with Ethernet network adapters,
1830 is often set to 11, giving 2048-byte mbuf clusters, large enough to
1833 frame in a single cluster.
1834 Systems with network interfaces supporting larger frame sizes like
1839 may perform better with
1841 set to 12 or 13, giving mbuf cluster sizes of 4096 and 8192 bytes,
1844 Include support for the
1851 .It Cd options ISO,TPIP
1852 Include support for the ubiquitous
1861 Include support for tunneling
1865 Known to be broken, or at least very fragile, and undocumented.
1866 .It Cd options NETATALK
1867 Include support for the
1870 The kernel provides provision for the
1871 .Em Datagram Delivery Protocol
1872 (DDP), providing SOCK_DGRAM support and
1875 This stack is used by the
1877 package, which adds support for
1879 server services via user libraries and applications.
1880 .It Cd options BLUETOOTH
1881 Include support for the
1887 .It Cd options IPNOPRIVPORTS
1888 Normally, only root can bind a socket descriptor to a so-called
1891 port, that is, a port number in the range 0-1023.
1892 This option eliminates those checks from the kernel.
1893 This can be useful if there is a desire to allow daemons without
1894 privileges to bind those ports, e.g., on firewalls.
1895 The security tradeoffs in doing this are subtle.
1896 This option should only be used by experts.
1897 .It Cd options TCP_COMPAT_42
1899 bug compatibility with
1904 sequence numbers were 32-bit signed values.
1905 Modern implementations of TCP use unsigned values.
1906 This option clamps the initial sequence number to start in
1907 the range 2^31 rather than the full unsigned range of 2^32.
1910 keepalive packets must contain at least one byte or else
1911 the remote end would not respond.
1912 .It Cd options TCP_DEBUG
1915 TCP packets with SO_DEBUG set, and decode to the console if
1918 .It Cd options TCP_NDEBUG
1919 Number of packets to record for
1922 .It Cd options TCP_SENDSPACE=value
1923 .It Cd options TCP_RECVSPACE=value
1924 These options set the max TCP window size to other sizes than the default.
1925 The TCP window sizes can be altered via
1928 .It Cd options TCP_INIT_WIN=value
1929 This option sets the initial TCP window size for non-local connections,
1930 which is used when the transmission starts.
1931 The default size is 1, but if the machine should act more aggressively,
1932 the initial size can be set to some other value.
1933 The initial TCP window size can be set via
1936 .It Cd options PFIL_HOOKS
1937 This option turns on the packet filter interface hooks.
1943 .It Cd options IPFILTER_LOG
1944 This option, in conjunction with
1945 .Em pseudo-device ipfilter ,
1946 enables logging of IP packets using ip-filter.
1947 .It Cd options IPFILTER_DEFAULT_BLOCK
1948 This option sets the default policy of ip-filter.
1949 If it is set, ip-filter will block packets by default.
1950 .It Cd options BRIDGE_IPF
1953 devices to use the IP and/or IPv6 filtering hooks, forming
1954 a link-layer filter that uses protocol-layer rules.
1955 This option assumes the presence of
1956 .Em pseudo-device ipfilter .
1957 .It Cd options MBUFTRACE
1958 This option can help track down mbuf leaks.
1959 When enabled, mbufs are tagged with the devices and protocols using them,
1960 which slightly decreases network performance.
1961 This additional information can be viewed with
1963 .Dl Ic netstat Fl mssv
1964 Not all devices or protocols support this option.
1966 .Ss Sysctl Related Options
1968 .It Cd options SYSCTL_DISALLOW_CREATE
1969 Disallows the creation or deletion of nodes from the sysctl tree, as
1970 well as the assigning of descriptions to nodes that lack them, by any
1972 These operations are still available to kernel sub-systems, including
1973 loadable kernel modules.
1974 .It Cd options SYSCTL_DISALLOW_KWRITE
1975 Prevents processes from adding nodes to the sysctl tree that make
1976 existing kernel memory areas writable.
1977 Sections of kernel memory can still be read and new nodes that own
1978 their own data may still be writable.
1979 .It Cd options SYSCTL_DEBUG_SETUP
1980 Causes the SYSCTL_SETUP routines to print a brief message when they
1982 This is merely meant as an aid in determining the order in which
1983 sections of the tree are created.
1984 .It Cd options SYSCTL_DEBUG_CREATE
1985 Prints a message each time
1987 the function that adds nodes to the tree, is called.
1988 .It Cd options SYSCTL_INCLUDE_DESCR
1989 Causes the kernel to include short, human readable descriptions for
1990 nodes in the sysctl tree.
1991 The descriptions can be retrieved programmatically (see
1993 or by the sysctl binary itself (see
1995 The descriptions are meant to give an indication of the purpose and/or
1996 effects of a given node's value, not replace the documentation for the
1997 given subsystem as a whole.
1999 .Ss System V IPC Options
2001 .It Cd options SYSVMSG
2002 Includes support for
2004 style message queues.
2010 .It Cd options SYSVSEM
2011 Includes support for
2018 .It Cd options SEMMNI=value
2021 style semaphore identifiers.
2022 The GENERIC config file for your port will have the default.
2023 .It Cd options SEMMNS=value
2026 style semaphores in the system.
2027 The GENERIC config file for your port will have the default.
2028 .It Cd options SEMUME=value
2029 Sets the maximum number of undo entries per process for
2032 The GENERIC config file for your port will have the default.
2033 .It Cd options SEMMNU=value
2034 Sets the number of undo structures in the system for
2037 The GENERIC config file for your port will have the default.
2038 .It Cd options SYSVSHM
2039 Includes support for
2041 style shared memory.
2047 .It Cd options SHMMAXPGS=value
2048 Sets the maximum number of
2050 style shared memory pages that are available through the
2053 Default value is 1024 on most ports.
2055 .Pa /usr/include/machine/vmparam.h
2058 .Ss VM Related Options
2060 .It Cd options NMBCLUSTERS=value
2061 The number of mbuf clusters the kernel supports.
2062 Mbuf clusters are MCLBYTES in size (usually 2k).
2063 This is used to compute the size of the kernel VM map
2065 which maps mbuf clusters.
2066 Default on most ports is 1024 (2048 with
2070 .Pa /usr/include/machine/param.h
2071 for exact default information.
2072 Increase this value if you get
2073 .Dq mclpool limit reached
2075 .It Cd options NKMEMPAGES=value
2076 .It Cd options NKMEMPAGES_MIN=value
2077 .It Cd options NKMEMPAGES_MAX=value
2078 Size of kernel VM map
2080 in PAGE_SIZE-sized chunks (the VM page size; this value may be read
2086 This VM map is used to map the kernel malloc arena.
2087 The kernel attempts to auto-size this map based on the amount of
2088 physical memory in the system.
2089 Platform-specific code may place bounds on this computed size,
2090 which may be viewed with the
2095 .Pa /usr/include/machine/param.h
2096 for the default upper and lower bounds.
2101 allow the bounds to be overridden in the kernel configuration file.
2102 These options are provided in the event the computed value is
2103 insufficient resulting in an
2104 .Dq out of space in kmem_map
2106 .It Cd options SB_MAX=value
2107 Sets the max size in bytes that a socket buffer is allowed to occupy.
2108 The default is 256k, but sometimes it needs to be increased, for example
2109 when using large TCP windows.
2110 This option can be changed via
2113 .It Cd options SOMAXKVA=value
2114 Sets the maximum size of kernel virtual memory that the socket buffers
2116 The default is 16MB, but in situations where for example large TCP
2117 windows are used this value must also be increased.
2118 This option can be changed via
2121 .It Cd options BUFCACHE=value
2122 Size of the buffer cache as a percentage of total available
2124 Ignored if BUFPAGES is also specified.
2125 .It Cd options NBUF=value
2126 Sets the number of buffer headers available, i.e., the number of
2127 open files that may have a buffer cache entry.
2129 requires MAXBSIZE (machine dependent, but usually 65536) bytes.
2130 The default value is machine dependent, but is usually equal to the
2132 If an architecture dependent VM_MAX_KERNEL_BUF constant is defined
2133 then NBUF may be reduced at run time so that the storage allocated
2134 for buffer headers doesn't exceed that limit.
2135 .It Cd options BUFPAGES=value
2136 These options set the number of pages available for the buffer cache.
2137 Their default value is a machine dependent value, often calculated as
2138 between 5% and 10% of total available
2140 .It Cd options MAXTSIZ=bytes
2141 Sets the maximum size limit of a process' text segment.
2143 .Pa /usr/include/machine/vmparam.h
2144 for the port-specific default.
2145 .It Cd options DFLDSIZ=bytes
2146 Sets the default size limit of a process' data segment, the value that
2147 will be returned as the soft limit for
2152 .Pa /usr/include/machine/vmparam.h
2153 for the port-specific default.
2154 .It Cd options MAXDSIZ=bytes
2155 Sets the maximum size limit of a process' data segment, the value that
2156 will be returned as the hard limit for
2161 .Pa /usr/include/machine/vmparam.h
2162 for the port-specific default.
2163 .It Cd options DFLSSIZ=bytes
2164 Sets the default size limit of a process' stack segment, the value that
2165 will be returned as the soft limit for
2170 .Pa /usr/include/machine/vmparam.h
2171 for the port-specific default.
2172 .It Cd options MAXSSIZ=bytes
2173 Sets the maximum size limit of a process' stack segment, the value that
2174 will be returned as the hard limit for
2179 .Pa /usr/include/machine/vmparam.h
2180 for the port-specific default.
2181 .It Cd options DUMP_ON_PANIC=integer
2183 If set to zero, the kernel will not dump to the dump device when
2184 it panics, though dumps can still be forced via
2189 Note that this sets the value of the
2190 .Em kern.dump_on_panic
2192 variable which may be changed at run time -- see
2195 .It Cd options USE_TOPDOWN_VM
2196 User space memory allocations (as made by
2198 will be arranged in a
2200 fashion instead of the traditional
2201 .Dq upwards from MAXDSIZ \&+ vm_daddr
2203 This includes the placement of
2205 Arranging memory in this manner allows either (or both of) the heap or
2207 allocated space to grow larger than traditionally possible.
2208 This option is not available on all ports, but is instead expected to be
2209 offered on a port-by-port basis, after which some ports will commit to
2210 using it by default.
2212 .Pa /usr/include/uvm/uvm_param.h
2213 for some implementation details, and
2214 .Pa /usr/include/machine/vmparam.h
2215 for port specific details including availability.
2216 .It Cd options VMSWAP
2217 Enable paging device/file support.
2218 This option is on by default.
2219 .It Cd options PDPOLICY_CLOCKPRO
2220 Use CLOCK-Pro, an alternative page replace policy.
2222 .Ss Security Options
2224 .It Cd options INSECURE
2225 Hardwires the kernel security level at \-1.
2226 This means that the system
2227 always runs in secure level \-1 mode, even when running multiuser.
2228 See the manual page for
2230 for details on the implications of this.
2231 The kernel secure level may manipulated by the superuser by altering the
2232 .Em kern.securelevel
2234 variable (the secure level may only be lowered by a call from process ID 1,
2238 .Xr secmodel_securelevel 9 ,
2242 .It Cd options VERIFIED_EXEC_FP_MD5
2243 Enables support for MD5 hashes in Veriexec.
2244 .It Cd options VERIFIED_EXEC_FP_SHA1
2245 Enables support for SHA1 hashes in Veriexec.
2246 .It Cd options VERIFIED_EXEC_FP_RMD160
2247 Enables support for RMD160 hashes in Veriexec.
2248 .It Cd options VERIFIED_EXEC_FP_SHA256
2249 Enables support for SHA256 hashes in Veriexec.
2250 .It Cd options VERIFIED_EXEC_FP_SHA384
2251 Enables support for SHA384 hashes in Veriexec.
2252 .It Cd options VERIFIED_EXEC_FP_SHA512
2253 Enables support for SHA512 hashes in Veriexec.
2254 .It Cd options PAX_MPROTECT=value
2255 Enables PaX MPROTECT,
2257 restrictions from the PaX project.
2261 is the default value for the
2265 If 0, PaX MPROTECT will be enabled only if explicitly set on programs
2268 If 1, PaX MPROTECT will be enabled for all programs.
2269 Programs can be exempted using
2275 .It Cd options PAX_SEGVGUARD=value
2276 Enables PaX Segvguard.
2280 is the default value for the
2284 If 0, PaX Segvguard will be enabled only if explicitly set on programs
2287 If 1, PaX Segvguard will be enabled to all programs, and exemption can
2294 .It Cd options PAX_ASLR=value
2299 is the default value for the
2303 If 0, PaX ASLR will be enabled only if explicitly set on programs
2306 If 1, PaX ASLR will be enabled to all programs, and exemption can
2314 .Ss amiga-specific Options
2316 .It Cd options BB060STUPIDROM
2317 When the bootloader (which passes
2320 information) claims we have a 68060
2324 go look into the Processor Configuration Register (PCR) to find out.
2328 up to (at least) V40.xxx (OS3.1),
2329 when you boot via the bootblocks and don't have a DraCo.
2330 .It Cd options IOBZCLOCK=frequency
2331 The IOBlix boards come with two different serial master clocks: older ones
2332 use 24 MHz, newer ones use 22.1184 MHz.
2333 The driver normally assumes the latter.
2334 If your board uses 24 MHz, you can recompile your kernel with
2335 options IOBZCLOCK=24000000
2336 or patch the kernel variable
2339 .It Cd options LIMITMEM=value
2340 If there, limit the part of the first memory bank used by
2343 Default is unlimited.
2344 .It Cd options NKPTADD=addvalue
2345 .It Cd options NKPTADDSHIFT=shiftvalue
2350 table for the kernel is pre-allocated at kernel startup time.
2351 Part of it is scaled with
2353 to have enough room to hold the user program
2355 tables; the second part is a fixed amount for the kernel itself.
2357 The third part accounts for the size of the file buffer cache.
2360 pages (if defined) or memory size in bytes divided by two to
2363 The default is undefined
2366 .Dv NKPTADDSHIFT=24 ,
2367 allowing for 16 buffers per megabyte of main memory (while
2368 a GENERIC kernel allocates about half of that).
2369 When you get "can't get KPT page" panics, you should increase
2371 (if defined), or decrease
2374 .It Cd options P5PPC68KBOARD
2375 Add special support for Phase5 mixed 68k+PPC boards.
2376 Currently, this only affects rebooting from
2378 and is only needed on 68040+PPC, not on
2379 68060+PPC; without this, affected machines will hang after
2382 down and will only restart after a keyboard reset or a power cycle.
2384 .Ss arm32-specific Options
2386 .It Cd options FRENCH_KBD
2387 Include translation for French keyboards when using
2390 .It Cd options FINNISH_KBD
2391 Include translation for Finnish keyboards when using
2394 .It Cd options GERMAN_KBD
2395 Include translation for German keyboards when using
2398 .It Cd options NORWEGIAN_KBD
2399 Include translation for French keyboards when using
2403 .Ss amd64-specific Options
2405 .It Cd options ENHANCED_SPEEDSTEP
2406 Include support for the
2407 .Tn Enhanced SpeedStep Technology
2410 .It Cd options EST_FREQ_USERWRITE
2411 Allow any user to change the frequency of an
2412 .Tn Enhanced SpeedStep Technology
2415 .It Cd options INTEL_ONDEMAND_CLOCKMOD
2416 This enables the On Demand Clock Modulation by software
2419 supporting the Thermal Monitor feature (TM).
2420 You can select the duty cycle with
2423 .Em machdep.clockmod
2425 .It Cd options POWERNOW_K8
2426 Include support for AMD Athlon 64 PowerNow! and Cool`n'Quiet
2427 Technology, used to change the CPU voltage and frequency
2430 .Ss atari-specific Options
2432 .It Cd options DISKLABEL_AHDI
2433 Include support for AHDI (native Atari) disklabels.
2434 .It Cd options DISKLABEL_NBDA
2438 If you don't set this option, it will be set automatically.
2440 will not work without it.
2441 .It Cd options FALCON_SCSI
2442 Include support for the 5380-SCSI configuration as found on the Falcon.
2443 .It Cd options RELOC_KERNEL
2444 If set, the kernel will relocate itself to TT-RAM, if possible.
2445 This will give you a slightly faster system.
2447 that on some TT030 systems,
2448 the system will frequently dump with MMU-faults with this option enabled.
2449 .It Cd options SERCONSOLE
2450 Allow the modem1-port to act as the system-console.
2451 A carrier should be active on modem1 during system boot to active
2452 the console functionality.
2453 .It Cd options TT_SCSI
2454 Include support for the 5380-SCSI configuration as found on the TT030
2457 .Ss i386-specific Options
2459 .It Cd options ENHANCED_SPEEDSTEP
2460 Include support for the
2461 .Tn Enhanced SpeedStep Technology
2464 .It Cd options EST_FREQ_USERWRITE
2465 Allow any user to change the frequency of an
2466 .Tn Enhanced SpeedStep Technology
2469 .It Cd options INTEL_ONDEMAND_CLOCKMOD
2470 This enables the On Demand Clock Modulation by software
2473 supporting the Thermal Monitor feature (TM).
2474 You can select the duty cycle with
2477 .Em machdep.clockmod
2479 .It Cd options POWERNOW_K7
2480 Include support for the AMD
2481 .Tn PowerNow! Technology
2482 present in AMD Athlon Mobile processors.
2483 .It Cd options VIA_PADLOCK
2484 Include support for the
2486 encryption instructions of the
2487 .Tn VIA PadLock Security engine ,
2488 which is attached as a provider to the opencrypto framework.
2489 .It Cd options CPURESET_DELAY=value
2490 Specifies the time (in millisecond) to wait before doing a hardware reset
2491 in the last phase of a reboot.
2492 This gives the user a chance to see error messages from the shutdown
2493 operations (like NFS unmounts, buffer cache flush, etc ...).
2494 Setting this to 0 will disable the delay.
2495 Default is 2 seconds.
2497 Include support for virtual 8086 mode, used by
2499 emulators and X servers to run BIOS code, e.g., for some VESA routines.
2500 .It Cd options USER_LDT
2501 Include i386-specific system calls for modifying the local descriptor table,
2502 used by Windows emulators.
2503 .It Cd options REALBASEMEM=integer
2504 Overrides the base memory size passed in from the boot block.
2505 (Value given in kilobytes.)
2506 Use this option only if the boot block reports the size incorrectly.
2511 data area at the top of base memory, and therefore report a smaller
2512 base memory size to prevent programs overwriting it.
2513 This is correct behavior, and you should not use the
2515 option to access this memory).
2516 .It Cd options REALEXTMEM=integer
2517 Overrides the extended memory size passed in from the boot block.
2518 (Value given in kilobytes.
2519 Extended memory does not include the first megabyte.)
2520 Use this option only if the boot block reports the size incorrectly.
2521 .It Cd options FRENCH_KBD,FINNISH_KBD,GERMAN_KBD,NORWEGIAN_KBD
2522 Select a non-US keyboard layout for the
2525 .It Cd options CYRIX_CACHE_WORKS
2526 Relevant only to the Cyrix 486DLC CPU.
2527 This option is used to turn on the cache in hold-flush mode.
2528 It is not turned on by default because it is known to have problems in
2529 certain motherboard implementations.
2530 .It Cd options CYRIX_CACHE_REALLY_WORKS
2531 Relevant only to the Cyrix 486DLC CPU.
2532 This option is used to turn on the cache in write-back mode.
2533 It is not turned on by default because it is known to have problems in
2534 certain motherboard implementations.
2535 In order for this option to take effect, option
2536 .Em CYRIX_CACHE_WORKS
2537 must also be specified.
2538 .It Cd options PCIBIOS
2539 Enable support for initializing the
2541 bus using information from the
2546 .It Cd options KSTACK_CHECK_DR0
2547 Detect kernel stack overflow using DR0 register.
2548 This option uses DR0 register exclusively so you can't use DR0 register for
2549 other purpose (e.g., hardware breakpoint) if you turn this on.
2551 Include support for accessing MTRR registers from user-space.
2553 .Xr i386_get_mtrr 2 .
2554 .It Cd options BEEP_ONHALT
2555 Make the system speaker emit several beeps when it is completely safe to
2556 power down the computer after a
2562 .It Cd options BEEP_ONHALT_COUNT=times
2563 Number of times to beep the speaker when
2564 .Cd options BEEP_ONHALT
2567 .It Cd options BEEP_ONHALT_PITCH=hz
2568 The tone frequency used when
2569 .Cd options BEEP_ONHALT
2572 .It Cd options BEEP_ONHALT_PERIOD=msecs
2573 The duration of each beep when
2574 .Cd options BEEP_ONHALT
2575 is enabled, in milliseconds.
2577 .It Cd options MULTIBOOT
2578 Makes the kernel Multiboot-compliant, allowing it to be booted through
2579 a Multiboot-compliant boot manager such as GRUB.
2582 for more information.
2584 .Ss isa-specific Options
2589 .It Cd options PCIC_ISA_ALLOC_IOBASE=address, PCIC_ISA_ALLOC_IOSIZE=size
2590 Control the section of IO bus space used for PCMCIA bus space mapping.
2591 Ideally the probed defaults are satisfactory, however in practice
2592 that is not always the case.
2596 .It Cd options PCIC_ISA_INTR_ALLOC_MASK=mask
2597 Controls the allowable interrupts that may be used for
2600 This mask is a logical-or of power-of-2s of allowable interrupts:
2601 .Bd -literal -offset 04n
2602 .Em "IRQ Val IRQ Val IRQ Val IRQ Val"
2603 0 0x0001 4 0x0010 8 0x0100 12 0x1000
2604 1 0x0002 5 0x0020 9 0x0200 13 0x2000
2605 2 0x0004 6 0x0040 10 0x0400 14 0x4000
2606 3 0x0008 7 0x0080 11 0x0800 15 0x8000
2608 .It Cd options PCKBC_CNATTACH_SELFTEST
2609 Perform a self test of the keyboard controller before attaching it as a
2611 This might be necessary on machines where we boot on cold iron, and
2612 pckbc refuses to talk until we request a self test.
2613 Currently only the netwinder port uses it.
2614 .It Cd options PCKBD_CNATTACH_MAY_FAIL
2615 If this option is set the PS/2 keyboard will not be used as the console
2616 if it cannot be found during boot.
2617 This allows other keyboards, like USB, to be the console keyboard.
2618 .It Cd options PCKBD_LAYOUT=layout
2619 Sets the default keyboard layout, see
2622 .Ss m68k-specific Options
2624 .It Cd options FPU_EMULATE
2625 Include support for MC68881/MC68882 emulator.
2627 Include support for 68040 floating point.
2628 .It Cd options M68020,M68030,M68040,M68060
2629 Include support for a specific
2631 at least one (the one you are using) should be specified.
2632 .It Cd options M060SP
2633 Include software support for 68060.
2634 This provides emulation of unimplemented
2635 integer instructions as well as emulation of unimplemented floating point
2636 instructions and data types and software support for floating point traps.
2638 .Ss powerpc-specific Options (OEA Only)
2640 .It Cd options PMAP_MEMLIMIT=value
2641 Limit the amount of memory seen by the kernel to
2644 .It Cd options PTEGCOUNT=value
2645 Specify the size of the page table as
2648 Normally, one PTEG is allocated per physical page frame.
2650 .Ss sparc-specific Options
2652 .It Cd options AUDIO_DEBUG
2653 Enable simple event debugging of the logging of the
2656 .It Cd options BLINK
2657 Enable blinking of LED.
2658 Blink rate is full cycle every N seconds for
2659 N \*[Lt] then current load average.
2662 .\" .It Cd options COLORFONT_CACHE
2663 .\" What does this do?
2664 .It Cd options COUNT_SW_LEFTOVERS
2665 Count how many times the sw SCSI device has left 3, 2, 1 and 0 in the
2666 sw_3_leftover, sw_2_leftover, sw_1_leftover, and sw_0_leftover
2667 variables accessible from
2671 .It Cd options DEBUG_ALIGN
2672 Adds debugging messages calls when user-requested alignment fault
2674 .It Cd options DEBUG_EMUL
2675 Adds debugging messages calls for emulated floating point and
2676 alignment fixing operations.
2677 .It Cd options DEBUG_SVR4
2678 Prints registers messages calls for emulated SVR4 getcontext and
2679 setcontext operations.
2681 .Em options COMPAT_SVR4 .
2682 .It Cd options EXTREME_DEBUG
2683 Adds debugging functions callable from
2685 The debug_pagetables, test_region and print_fe_map
2686 functions print information about page tables for the SUN4M
2688 .It Cd options EXTREME_EXTREME_DEBUG
2690 .Em options EXTREME_DEBUG .
2691 .It Cd options FPU_CONTEXT
2693 .Em options COMPAT_SVR4
2694 getcontext and setcontext include floating point registers.
2695 .It Cd options MAGMA_DEBUG
2696 Adds debugging messages to the
2699 .It Cd options RASTERCONS_FULLSCREEN
2700 Use the entire screen for the console.
2701 .It Cd options RASTERCONS_SMALLFONT
2702 Use the Fixed font on the console, instead of the normal font.
2704 Support sun4 class machines.
2705 .It Cd options SUN4C
2706 Support sun4c class machines.
2707 .It Cd options SUN4M
2708 Support sun4m class machines.
2709 .It Cd options SUN4_MMU3L
2711 Enable support for sun4 3-level MMU machines.
2713 Enable SPARC V9 assembler in
2716 .Ss sparc64-specific Options
2718 .It Cd options AUDIO_DEBUG
2719 Enable simple event debugging of the logging of the
2722 .It Cd options BLINK
2723 Enable blinking of LED.
2724 Blink rate is full cycle every N seconds for
2725 N \*[Lt] then current load average.
2729 .Ss x68k-specific Options
2731 .It Cd options EXTENDED_MEMORY
2732 Include support for extended memory, e.g., TS-6BE16 and 060turbo on-board.
2733 .It Cd options JUPITER
2734 Include support for Jupiter-X MPU accelerator
2735 .It Cd options ZSCONSOLE,ZSCN_SPEED=value
2736 Use the built-in serial port as the system-console.
2737 Speed is specified in bps, defaults to 9600.
2738 .It Cd options ITE_KERNEL_ATTR=value
2739 Set the kernel message attribute for ITE.
2740 Value, an integer, is a logical or of the following values:
2741 .Bl -tag -width 4n -compact -offset indent
2750 .\" The following requests should be uncommented and used where appropriate.
2760 .Xr gettimeofday 2 ,
2761 .Xr i386_get_mtrr 2 ,
2794 .Xr mount_cd9660 8 ,
2796 .Xr mount_kernfs 8 ,
2803 .Xr mount_portal 8 ,
2804 .Xr mount_procfs 8 ,
2818 man page first appeared in
2823 option should be a pseudo-device, and is also very fragile.