xref: /netbsd-src/share/man/man4/options.4 (revision 5b84b3983f71fd20a534cfa5d1556623a8aaa717)
1.\"	$NetBSD: options.4,v 1.288 2005/08/19 12:28:37 christos 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 August 19, 2005
34.Os
35.Dt OPTIONS 4
36.Sh NAME
37.Nm options
38.Nd Miscellaneous kernel configuration options
39.Sh SYNOPSIS
40.Cd cinclude ...
41.Cd config ...
42.Cd [no] file-system ...
43.Cd ident ...
44.Cd include ...
45.Cd [no] makeoptions ...
46.Cd maxusers ...
47.Cd [no] options ...
48.Cd [no] pseudo-device ...
49.Sh DESCRIPTION
50This manual page describes a number of miscellaneous kernel
51configuration options that may be specified in a kernel config
52file.
53See
54.Xr config 1
55for information on how to configure and build kernels.
56.Pp
57The
58.Ar no
59form removes a previously specified option.
60.Ss Keywords
61The following keywords are recognized in a kernel configuration file:
62.Bl -ohang
63.It Sy cinclude Xo
64.Qq Ar filename
65.Xc
66Conditionally includes another kernel configuration file whose name is
67.Ar filename ,
68which may be double-quoted and may be an explicit path or relative to
69the kernel source directory.
70Failure to open the named file is ignored.
71.It Sy config Xo
72.Ar exec_name
73.No root on
74.Ar rootdev
75.Op type Ar fstype
76.Op dumps on Ar dumpdev
77.Xc
78Defines a configuration whose kernel executable is named
79.Ar exec_name ,
80normally
81.Dq netbsd ,
82with its root file system of type
83.Ar fstype
84on the device
85.Ar rootdev ,
86and optionally specifying the location of kernel core dumps on the device
87.Ar dumpdev .
88.Ar dev
89or
90.Ar dumpdev
91and
92.Ar fstype
93may be specified as
94.Dq \&? ,
95which is a wild card.
96The root
97.Ar fstype
98and
99.Ar dumpdev
100are optional and assumed to be wild carded if they are not specified.
101.It Ar device_instance Xo
102at
103.Ar attachment
104.Op Ar locators value Op ...
105.Op flags Ar value
106.Xc
107Define an instance of the device driver
108.Ar device_instance
109that attaches to the bus or device named
110.Ar attachment .
111An
112.Ar attachment
113may require additional information on where the device can be found, such
114as an address, channel, function, offset, and/or slot, referred to as
115.Ar locators ,
116whose
117.Ar value
118often may be a wild card,
119.Dq \&? .
120Some device drivers have one or more
121.Ar flags
122that can be adjusted to affect the way they operate.
123.It Sy file-system Xo
124.Ar fs_name Op , Ar fs_name Op ...
125.Xc
126Include support for the file-system
127.Ar fs_name .
128.It Sy ident Xo
129.Qq Ar string
130.Xc
131Sets the kernel identification string to
132.Ar string .
133.It Sy include Xo
134.Qq Ar filename
135.Xc
136Functions the same as
137.Ar cinclude ,
138except failure to open
139.Ar filename
140produces a fatal error.
141.It Sy options Xo
142.Ar option_name Op , Ar option_name=value Op ...
143.Xc
144Specifies (or sets) the option, or comma-separated list of options,
145.Ar option_name .
146Some options expect to be assigned a value, which may be an integer,
147a double-quoted word, a bare word, or an empty string
148.Pq Qq .
149.Pp
150.Em Note :
151Options that are not defined by device definition files are passed to
152the compile process as
153.Fl D
154flags to the C compiler.
155.It Sy makeoptions Xo
156.Ar name=value
157.Xc
158Defines a
159.Xr make 1
160macro
161.Ar name
162with the value
163.Ar value
164in the kernel Makefile.
165.It Sy maxusers Xo
166.Ar integer
167.Xc
168Set the maxusers variable in the kernel.
169.It Sy no Xo
170.Ar keyword Ar name Op Ar arguments Op ...
171.Xc
172For the
173.Xr config 1
174.Ar keywords
175file-system, makeoptions, options, and pseudo-device,
176.Ar no
177removes the file-system, makeoption, options, or pseudo-device,
178.Ar name .
179This is useful when a kernel configuration file includes another which
180has undesired options.
181.Pp
182For example, a local configuration file that wanted the kitchen sink, but
183not COMPAT_09 or bridging, might be:
184.Bd -literal -offset indent
185include "arch/i386/conf/GENERIC"
186no options COMPAT_09
187no pseudo-device bridge
188.Ed
189.It Sy pseudo-device Xo
190.Ar name
191.Op Ar N
192.Xc
193Includes support for the pseudo-device
194.Ar name .
195Some pseudo-devices can have multiple or
196.Ar N
197instances.
198.El
199.Ss Compatibility Options
200.Bl -ohang
201.It Cd options COMPAT_09
202Enable binary compatibility with
203.Nx 0.9 .
204This enables support for
20516-bit user, group, and process IDs (following revisions support
20632-bit identifiers).
207It also allows the use of the deprecated
208.Xr getdomainname 3 ,
209.Xr setdomainname 3 ,
210and
211.Xr uname 3
212syscalls.
213This option also allows using numeric file system identifiers rather
214than strings.
215Post
216.Nx 0.9
217versions use string identifiers.
218.It Cd options COMPAT_10
219Enable binary compatibility with
220.Nx 1.0 .
221This option allows the use of the file system name of
222.Dq ufs
223as an alias for
224.Dq ffs .
225The name
226.Dq ffs
227should be used post 1.0 in
228.Pa /etc/fstab
229and other files.
230It also adds old syscalls for the
231.At V
232shared memory interface.
233This was changed post 1.0 to work on 64-bit architectures.
234This option also enables
235.Dq sgtty
236compatibility, without which programs using the old interface produce
237an
238.Dq inappropriate ioctl
239error, and
240.Pa /dev/io
241only works when this option is set in the kernel,
242see
243.Xr io 4
244on ports that support it.
245.It Cd options COMPAT_11
246Enable binary compatibility with
247.Nx 1.1 .
248This allows binaries running on the i386 port to gain direct access to
249the io ports by opening
250.Pa /dev/io
251read/write.
252This functionality was replaced by
253.Xr i386_iopl 2
254post 1.1.
255On the
256.Tn Atari
257port, the location of the disk label was moved after 1.1.
258When the
259.Em COMPAT_11
260option is set, the kernel will read (pre) 1.1 style disk labels as a
261last resort.
262When a disklabel is re-written, the old style label will be replaced
263with a post 1.1 style label.
264This also enables the
265.Em EXEC_ELF_NOTELESS
266option.
267.It Cd options COMPAT_12
268Enable binary compatibility with
269.Nx 1.2 .
270This allows the use of old syscalls for
271.Fn reboot
272and
273.Fn swapon .
274The syscall numbers were changed post 1.2 to add functionality to the
275.Xr reboot 2
276syscall, and the new
277.Xr swapctl 2
278interface was introduced.
279This also enables the
280.Em EXEC_ELF_NOTELESS
281option.
282.It Cd options COMPAT_13
283Enable binary compatibility with
284.Nx 1.3 .
285This allows the use of old syscalls for
286.Fn sigaltstack ,
287and also enables the old
288.Xr swapctl 2
289command
290.Dv SWAP_STATS
291(now called
292.Dv SWAP_OSTATS ) ,
293which does not include the
294.Fa se_path
295member of
296.Va struct swapent .
297.It Cd options COMPAT_14
298Enable binary compatibility with
299.Nx 1.4 .
300This allows some old
301.Xr ioctl 2
302on
303.Xr wscons 4
304to be performed, and allows the
305.Dv NFSSVC_BIOD
306mode of the
307.Xr nfssvc 2
308system call to be used for compatibility with the deprecated nfsiod program.
309.It Cd options COMPAT_16
310Enable binary compatibility with
311.Nx 1.6 .
312This allows the use of old signal trampoline code which has been deprecated
313with the addition of
314.Xr siginfo 2 .
315.It Cd options COMPAT_20
316Enable binary compatibility with
317.Nx 2.0 .
318This allows the use of old syscalls for
319.Fn statfs
320and
321.Fn fstatfs ,
322which has been deprecated with the addition of the
323.Xr statvfs 2
324family of system calls.
325.It Cd options COMPAT_43
326Enables compatibility with
327.Bx 4.3 .
328This adds an old syscall for
329.Xr lseek 2 .
330It also adds the ioctls for
331.Dv TIOCGETP
332and
333.Dv TIOCSETP .
334The return values for
335.Xr getpid 2 ,
336.Xr getgid 2 ,
337and
338.Xr getuid 2
339syscalls are modified as well, to return the parent's PID and
340UID as well as the current process's.
341It also enables the deprecated
342.Dv NTTYDISC
343terminal line discipline.
344It also provides backwards compatibility with
345.Dq old
346SIOC[GS]IF{ADDR,DSTADDR,BRDADDR,NETMASK} interface ioctls, including
347binary compatibility with code written before the introduction of the
348sa_len field in sockaddrs.
349It also enables
350support for some older pre
351.Bx 4.4
352socket calls.
353.It Cd options COMPAT_BSDPTY
354This option is currenty on by default and enables the pty multiplexor
355.Xr ptm 4
356and
357.Xr ptmx 4
358to find and use ptys named
359.Pa /dev/ptyXX
360(master) and
361.Pa /dev/ttyXX
362(slave).
363Eventually this option will become optional as ptyfs based pseudo-ttys become
364the default, see
365.Xr mount_ptyfs 8 .
366.It Cd options COMPAT_SVR4
367On those architectures that support it, this enables binary
368compatibility with
369.At V.4
370applications built for the same architecture.
371This currently includes the i386, m68k, and sparc ports.
372.It Cd options COMPAT_LINUX
373On those architectures that support it, this enables binary
374compatibility with Linux ELF and
375.Xr a.out 5
376applications built for the same architecture.
377This currently includes the alpha, arm, i386, m68k, mips, and powerpc
378ports.
379.It Cd options COMPAT_SUNOS
380On those architectures that support it, this enables binary
381compatibility with
382.Tn SunOS 4.1
383applications built for the same architecture.
384This currently includes the sparc, sparc64 and most or all m68k ports.
385Note that the sparc64 requires the
386.Em COMPAT_NETBSD32
387option for 64-bit kernels, in addition to this option.
388.It Cd options COMPAT_ULTRIX
389On those architectures that support it, this enables binary
390compatibility with
391.Tn ULTRIX
392applications built for the same architecture.
393This currently is limited to the pmax.
394The functionality of this option is unknown.
395.It Cd options COMPAT_DARWIN
396On those architectures that support it, this enables binary compatibility with
397.Tn Darwin
398applications built for the same architecture.
399This feature is highly experimental, it requires COMPAT_MACH and
400EXEC_MACHO and it is currently limited to i386 and powerpc ports of
401.Nx .
402.It Cd options COMPAT_FREEBSD
403On those architectures that support it, this enables binary
404compatibility with
405.Fx
406applications built for the same architecture.
407At the moment this is limited to the i386 port.
408.It Cd options COMPAT_HPUX
409On those architectures that support it, this enables binary
410compatibility with
411.Tn HP/UX
412applications built for the same architecture.
413This is limited to the hp300 port, and has some known bugs.
414A limited set of programs do work.
415.It Cd options COMPAT_IBCS2
416On those architectures that support it, this enables binary
417compatibility with iBCS2 or SVR3 applications built for the same architecture.
418This is currently limited to the i386 and vax ports.
419.It Cd options COMPAT_IRIX
420On those architectures that support it, this enables binary
421compatibility with IRIX o32 binaries built for the same architecture.
422This feature is experimental, and it is currently limited to
423the sgimips port.
424.It Cd options COMPAT_MACH
425On those architectures that support it, this enables the emulation of
426Mach kernel traps for binaries built for the same architecture.
427This feature is highly experimental and it is currently
428limited to the i386 and powerpc ports of
429.Nx .
430.It Cd options COMPAT_OSF1
431On those architectures that support it, this enables binary
432compatibility with
433.Tn Digital
434.Ux
435.Po
436formerly
437.Tn OSF/1
438.Pc
439applications built for the same architecture.
440This is currently limited to the alpha port.
441.It Cd options COMPAT_NOMID
442Enable compatibility with
443.Xr a.out 5
444executables that lack a machine ID.
445This includes
446.Nx 0.8 Ns 's
447ZMAGIC format, and 386BSD and BSDI's
448QMAGIC, NMAGIC, and OMAGIC
449.Xr a.out 5
450formats.
451.It Cd options COMPAT_NETBSD32
452On those architectures that support it, this enables binary
453compatibility with 32-bit applications built for the same architecture.
454This is currently limited to the amd64 and sparc64 ports, and only
455applicable for 64-bit kernels.
456.It Cd options COMPAT_SVR4_32
457On those architectures that support it, this enables binary
458compatibility with 32-bit SVR4 applications built for the same architecture.
459This is currently limited to the sparc64 port, and only applicable for
46064-bit kernels.
461.It Cd options COMPAT_AOUT_M68K
462On m68k architectures which have switched to ELF,
463this enables binary compatibility with
464.Nx Ns Tn /m68k
465.Xr a.out 5
466executables on
467.Nx Ns Tn /m68k
468ELF kernels.
469This handles alignment incompatibility of m68k ABI between
470a.out and ELF which causes the structure padding differences.
471Currently only some system calls which use
472.Va struct stat
473are adjusted and some binaries which use
474.Xr sysctl 3
475to retrieve network details would not work properly.
476.It Cd options EXEC_MACHO
477On those architectures that support it, this adds support for running
478Mach-O executables.
479This is currently limited to the i386 and powerpc ports of
480.Nx .
481.It Cd options EXEC_ELF_NOTELESS
482Run unidentified ELF binaries as
483.Nx
484binaries.
485This might be needed for very old
486.Nx
487ELF binaries on some archs.
488These old binaries didn't contain an appropriate
489.Li .note.netbsd.ident
490section, and thus can't be identified by the kernel as
491.Nx
492binaries otherwise.
493Beware - if this option is on, the kernel would run
494.Em any
495unknown ELF binaries as if they were
496.Nx
497binaries.
498.It Cd options P1003_1B_SEMAPHORE
499Includes kernel support for the standard C library
500.Pq libc
501functions that implement semaphores as specified in
502.St -p1003.1-96 .
503.El
504.Ss Debugging Options
505.Bl -ohang
506.It Cd options DDB
507Compiles in a kernel debugger for diagnosing kernel problems.
508See
509.Xr ddb 4
510for details.
511.Em NOTE :
512not available on all architectures.
513.It Cd options DDB_FROMCONSOLE=integer
514If set to non-zero, DDB may be entered by sending a break on a serial
515console or by a special key sequence on a graphics console.
516A value of "0" ignores console breaks or key sequences.
517If not explicitly specified, the default value is "1".
518Note that this sets the value of the
519.Em ddb.fromconsole
520.Xr sysctl 3
521variable which may be changed at run time -- see
522.Xr sysctl 8
523for details.
524.It Cd options DDB_HISTORY_SIZE=integer
525If this is non-zero, enable history editing in the kernel debugger
526and set the size of the history to this value.
527.It Cd options DDB_ONPANIC
528If set to non-zero, DDB will be entered upon kernel panic.
529The default if not specified is "1".
530Note that this sets the value of the
531.Em ddb.onpanic
532.Xr sysctl 3
533variable which may be changed at run time -- see
534.Xr sysctl 8
535for details.
536.It Cd options DDB_BREAK_CHAR=integer
537This option overrides using break to enter the kernel debugger
538on the serial console.
539The value given is the ascii value to be used instead.
540This is currently only supported by the com driver.
541.It Cd options KGDB
542Compiles in a remote kernel debugger stub for diagnosing kernel problems
543using the
544.Dq remote target
545feature of gdb.
546See
547.Xr gdb 1
548for details.
549.Em NOTE :
550not available on all architectures.
551.It Cd options KGDB_DEV
552Device number
553.Po
554as a
555.Dv dev_t
556.Pc
557of kgdb device.
558.It Cd options KGDB_DEVADDR
559Memory address of kgdb device.
560.It Cd options KGDB_DEVMODE
561Permissions of kgdb device.
562.It Cd options KGDB_DEVNAME
563Device name of kgdb device.
564.It Cd options KGDB_DEVRATE
565Baud rate of kgdb device.
566.It Cd makeoptions DEBUG="-g"
567The
568.Fl g
569flag causes
570.Pa netbsd.gdb
571to be built in addition to
572.Pa netbsd .
573.Pa netbsd.gdb
574is useful for debugging kernel crash dumps with gdb.
575See
576.Xr gdb 1
577for details.
578This also turns on
579.Em options DEBUG
580(which see).
581.It Cd options DEBUG
582Turns on miscellaneous kernel debugging.
583Since options are turned into preprocessor defines (see above),
584.Em options DEBUG
585is equivalent to doing a
586.Em #define DEBUG
587throughout the kernel.
588Much of the kernel has
589.Em #ifdef DEBUG
590conditionalized debugging code.
591Note that many parts of the kernel (typically device drivers) include their own
592.Em #ifdef XXX_DEBUG
593conditionals instead.
594This option also turns on certain other options,
595which may decrease system performance.
596.It Cd options DIAGNOSTIC
597Adds code to the kernel that does internal consistency checks.
598This code will cause the kernel to panic if corruption of internal data
599structures is detected.
600These checks can decrease performance up to 15%.
601.It Cd options KSTACK_CHECK_MAGIC
602Check kernel stack usage and panic if stack overflow is detected.
603This check is performance sensitive because it scans stack on each context
604switch.
605.It Cd options KTRACE
606Add hooks for the system call tracing facility, which allows users to
607watch the system call invocation behavior of processes.
608See
609.Xr ktrace 1
610for details.
611.It Cd options MSGBUFSIZE=integer
612This option sets the size of the kernel message buffer.
613This buffer holds the kernel output of
614.Fn printf
615when not (yet) read by
616.Xr syslogd 8 .
617This is particularly useful when the system has crashed and you wish to lookup
618the kernel output from just before the crash.
619Also, since the autoconfig output becomes more and more verbose,
620it sometimes happens that the message buffer overflows before
621.Xr syslogd 8
622was able to read it.
623Note that not all systems are capable of obtaining a variable sized message
624buffer.
625There are also some systems on which memory contents are not preserved
626across reboots.
627.It Cd options MALLOCLOG
628Enables an event log for
629.Xr malloc 9 .
630Useful for tracking down
631.Dq Data modified on freelist
632and
633.Dq multiple free
634problems.
635.It Cd options MALLOCLOGSIZE=integer
636Defines the number of entries in the malloc log.
637Default is 100000 entries.
638.It Cd options SYSTRACE
639Add hooks for the system call policy facility.
640See
641.Xr systrace 1
642for details.
643.It Cd options UVMHIST
644Enables the UVM history logs, which create in-memory traces of
645various UVM activities.
646These logs can be displayed be calling
647.Fn uvmhist_dump
648or
649.Fn uvm_hist
650with appropriate arguments from DDB.
651See the kernel source file sys/uvm/uvm_stat.c for details.
652.It Cd options UVMHIST_PRINT
653Prints the UVM history logs on the system console as entries are added.
654Note that the output is
655.Em extremely
656voluminous, so this option is really only useful for debugging
657the very earliest parts of kernel initialization.
658.El
659.Ss File Systems
660.Bl -ohang
661.It Cd file-system FFS
662Includes code implementing the Berkeley Fast File System
663.Em ( FFS ) .
664Most machines need this if they are not running diskless.
665.It Cd file-system EXT2FS
666Includes code implementing the Second Extended File System
667.Em ( EXT2FS ) ,
668revision 0 and revision 1 with the
669.Em filetype
670and
671.Em sparse_super
672options.
673This is the most commonly used file system on the Linux operating system,
674and is provided here for compatibility.
675Some of the specific features of
676.Em EXT2FS
677like the "behavior on errors" are not implemented.
678This file system can't be used with UID or GID greater than 65535.
679See
680.Xr mount_ext2fs 8
681for details.
682.It Cd file-system LFS
683.Bq Em EXPERIMENTAL
684Include the Log-structured File System
685.Em ( LFS ) .
686See
687.Xr mount_lfs 8
688and
689.Xr newfs_lfs 8
690for details.
691.It Cd file-system MFS
692Include the Memory File System
693.Em ( MFS ) .
694This file system stores files in swappable memory, and produces
695notable performance improvements when it is used as the file store
696for
697.Pa /tmp
698and similar file systems.
699See
700.Xr mount_mfs 8
701for details.
702.It Cd file-system NFS
703Include the client side of the Network File System
704.Pq Tn NFS
705remote file sharing protocol.
706Although the bulk of the code implementing
707.Tn NFS
708is kernel based, several user level daemons are needed for it to work.
709See
710.Xr mount_nfs 8
711for details.
712.It Cd file-system CD9660
713Includes code for the
714.Tn ISO
7159660 + Rock Ridge file system, which is the standard file system on many
716.Tn CD-ROM
717discs.
718Useful primarily if you have a
719.Tn CD-ROM
720drive.
721See
722.Xr mount_cd9660 8
723for details.
724.It Cd file-system MSDOSFS
725Includes the
726.Tn MS-DOS
727FAT file system, which is reportedly still used
728by unfortunate people who have not heard about
729.Nx .
730Also implements the
731.Tn Windows 95
732extensions to the same, which permit the use of longer, mixed case
733file names.
734See
735.Xr mount_msdos 8
736and
737.Xr fsck_msdos 8
738for details.
739.It Cd file-system NTFS
740.Bq Em EXPERIMENTAL
741Includes code for the
742.Tn Microsoft Windows NT
743file system.
744See
745.Xr mount_ntfs 8
746for details.
747.It Cd file-system FDESC
748Includes code for a file system, conventionally mounted on
749.Pa /dev/fd ,
750which permits access to the per-process file descriptor space via
751special files in the file system.
752See
753.Xr mount_fdesc 8
754for details.
755Note that this facility is redundant, and thus unneeded on most
756.Nx
757systems, since the
758.Xr fd 4
759pseudo-device driver already provides identical functionality.
760On most
761.Nx
762systems, instances of
763.Xr fd 4
764are mknoded under
765.Pa /dev/fd/
766and on
767.Pa /dev/stdin ,
768.Pa /dev/stdout ,
769and
770.Pa /dev/stderr .
771.It Cd file-system KERNFS
772Includes code which permits the mounting of a special file system
773(normally mounted on
774.Pa /kern )
775in which files representing various kernel variables and parameters
776may be found.
777See
778.Xr mount_kernfs 8
779for details.
780.It Cd file-system NULLFS
781Includes code for a loopback file system.
782This permits portions of the file hierarchy to be re-mounted in other places.
783The code really exists to provide an example of a stackable file system layer.
784See
785.Xr mount_null 8
786for details.
787.It Cd file-system OVERLAY
788Includes code for a file system filter.
789This permits the overlay file system to intercept all access to an underlying
790file system.
791This file system is intended to serve as an example of a stacking file
792system which has a need to interpose itself between an underlying file
793system and all other access.
794See
795.Xr mount_overlay 8
796for details.
797.It Cd file-system PORTAL
798.Bq Em EXPERIMENTAL
799Includes the portal file system.
800This permits interesting tricks like opening
801.Tn TCP
802sockets by opening files in the file system.
803The portal file system is conventionally mounted on
804.Pa /p
805and is partially implemented by a special daemon.
806See
807.Xr mount_portal 8
808for details.
809.It Cd file-system PROCFS
810Includes code for a special file system (conventionally mounted on
811.Pa /proc )
812in which the process space becomes visible in the file system.
813Among
814other things, the memory spaces of processes running on the system are
815visible as files, and signals may be sent to processes by writing to
816.Pa ctl
817files in the procfs namespace.
818See
819.Xr mount_procfs 8
820for details.
821.It Cd file-system UMAPFS
822Includes a loopback file system in which user and group IDs may be
823remapped -- this can be useful when mounting alien file systems with
824different UIDs and GIDs than the local system.
825See
826.Xr mount_umap 8
827for details.
828.It Cd file-system UNION
829.Bq Em EXPERIMENTAL
830Includes code for the union file system, which permits directories to
831be mounted on top of each other in such a way that both file systems
832remain visible -- this permits tricks like allowing writing (and the
833deleting of files) on a read-only file system like a
834.Tn CD-ROM
835by mounting a local writable file system on top of the read-only file system.
836See
837.Xr mount_union 8
838for details.
839.It Cd file-system CODA
840.Bq Em EXPERIMENTAL
841Includes code for the Coda file system.
842Coda is a distributed file system like NFS and AFS.
843It is freely available, like NFS, but it functions much like AFS in being a
844.Dq stateful
845file system.
846Both Coda and AFS cache files on your local machine to improve performance.
847Then Coda goes a step further than AFS by letting you access the cached
848files when there is no available network, viz. disconnected laptops and
849network outages.
850In Coda, both the client and server are outside the kernel which makes
851them easier to experiment with.
852Coda is available for several UNIX and non-UNIX platforms.
853See http://www.coda.cs.cmu.edu for more details.
854.Em NOTE :
855You also need to enable the pseudo-device, vcoda, for the Coda
856file system to work.
857.It Cd file-system SMBFS
858.Bq Em EXPERIMENTAL
859Includes code for the SMB/CIFS file system.
860See
861.Xr mount_smbfs 8
862for details.
863.Em NOTE :
864You also need to enable the pseudo-device, nsmb, for the SMB
865file system to work.
866.It Cd file-system PTYFS
867.Bq Em EXPERIMENTAL
868Includes code for a special file system (normally mounted on
869.Pa /dev/pts )
870in which pseudo-terminal slave devices become visible in the file system.
871See
872.Xr mount_ptyfs 8
873for details.
874.El
875.Ss File System Options
876.Bl -ohang
877.It Cd options ROOTFS_MAGICLINKS
878Enables the expansion of special strings
879.Po
880beginning with
881.Dq @
882.Pc
883when traversing symbolic links on the root file system.
884See
885.Xr symlink 7
886for a list of supported strings.
887Note that this option only controls the enabling of this feature when
888the root file system is first mounted by the kernel at boot-up.
889This feature can still be manipulated with the
890.Xr mount 8
891command regardless of the setting of this option.
892.It Cd options NFSSERVER
893Include the server side of the
894.Em NFS
895(Network File System) remote file sharing protocol.
896Although the bulk of the code implementing
897.Em NFS
898is kernel based, several user level daemons are needed for it to
899work.
900See
901.Xr mountd 8
902and
903.Xr nfsd 8
904for details.
905.It Cd options QUOTA
906Enables kernel support for file system quotas.
907See
908.Xr quotaon 8 ,
909.Xr edquota 8 ,
910and
911.Xr quota 1
912for details.
913Note that quotas only work on
914.Dq ffs
915file systems, although
916.Xr rpc.rquotad 8
917permits them to be accessed over
918.Em NFS .
919.It Cd options FFS_EI
920Enable ``Endian-Independent'' FFS support.
921This allows a system to mount an FFS file system created for another
922architecture, at a small performance cost for all FFS file systems.
923See also
924.Xr newfs 8 ,
925.Xr fsck_ffs 8 ,
926.Xr dumpfs 8
927for file system byte order status and manipulation.
928.It Cd options NVNODE=integer
929This option sets the size of the cache used by the name-to-inode translation
930routines, (a.k.a. the
931.Fn namei
932cache, though called by many other names in the kernel source).
933By default, this cache has
934.Dv NPROC
935(set as 20 + 16 * MAXUSERS) * (80 + NPROC / 8) entries.
936A reasonable way to derive a value of
937.Dv NVNODE ,
938should you notice a large number of namei cache misses with a tool such as
939.Xr systat 1 ,
940is to examine your system's current computed value with
941.Xr sysctl 8 ,
942(which calls this parameter "kern.maxvnodes") and to increase this value
943until either the namei cache hit rate improves or it is determined that
944your system does not benefit substantially from an increase in the size of
945the namei cache.
946.It Cd options NAMECACHE_ENTER_REVERSE
947Causes the namei cache to always enter a reverse mapping (vnode -\*[Gt] name)
948as well as a normal one.
949Normally, this is already done for directory vnodes, to speed up the getcwd
950operation.
951This option will cause longer hash chains in the reverse cache, and thus
952slow down getcwd somewhat.
953However, it does make vnode -\*[Gt] path translations possible in some cases.
954For now, only useful if strict /proc/#/maps emulation for Linux binaries is
955required.
956.It Cd options EXT2FS_SYSTEM_FLAGS
957This option changes the behavior of the APPEND and IMMUTABLE flags
958for a file on an
959.Em EXT2FS
960file system.
961Without this option, the superuser or owner of the file can
962set and clear them.
963With this option, only the superuser can set them, and
964they can't be cleared if the securelevel is greater than 0.
965See also
966.Xr chflags 1 .
967.It Cd options NFS_BOOT_BOOTP
968Enable use of the BOOTP protocol (RFCs 951 and 1048) to get configuration
969information if NFS is used to mount the root file system.
970See
971.Xr diskless 8
972for details.
973.It Cd options NFS_BOOT_DHCP
974Same as
975.Dq NFS_BOOT_BOOTP ,
976but use the DHCP extensions to the
977BOOTP protocol (RFC 1541).
978.It Cd options NFS_BOOT_BOOTP_REQFILE
979Specifies the string sent in the bp_file field of the BOOTP / DHCP
980request packet.
981.It Cd options NFS_BOOT_BOOTPARAM
982Enable use of the BOOTPARAM protocol, consisting of RARP and
983BOOTPARAM RPC, to get configuration information if NFS
984is used to mount the root file system.
985See
986.Xr diskless 8
987for details.
988.It Cd options NFS_BOOT_RWSIZE=value
989Set the initial NFS read and write sizes for diskless-boot requests.
990The normal default is 8Kbytes.
991This option provides a way to lower the value (e.g., to 1024 bytes)
992as a workaround for buggy network interface cards or boot PROMs.
993Once booted, the read and write request sizes can be increased by
994remounting the file system.
995See
996.Xr mount_nfs 8
997for details.
998.It Cd options NFS_V2_ONLY
999Reduce the size of the NFS client code by omitting code that's only required
1000for NFSv3 and NQNFS support, leaving only that code required to use NFSv2
1001servers.
1002.It Cd options SOFTDEP
1003Enable kernel support for soft-dependencies in FFS filesystems.
1004Softdep improves write performance by aggregating and properly
1005ordering disk metadata writes, achieving near-asynchronous write
1006performance while maintaining the filesystem consistency of
1007synchronous writes.
1008Soft-dependencies are enabled on a per-mount basis.
1009See
1010.Xr mount 8
1011for details.
1012.It Cd options UFS_DIRHASH
1013Increase lookup performance by maintaining in-core hash tables
1014for large directories.
1015.El
1016.Ss Buffer queue strategy options
1017The following options enable alternative buffer queue strategies.
1018.Bl -ohang
1019.It Cd options BUFQ_READPRIO
1020Enable experimental buffer queue strategy for disk I/O.
1021In the default strategy, outstanding disk requests are ordered by
1022sector number and sent to the disk, regardless of whether the
1023operation is a read or write; this option gives priority to issuing
1024read requests over write requests.
1025Although requests may therefore be issued out of sector-order, causing
1026more seeks and thus lower overall throughput, interactive system
1027responsiveness under heavy disk I/O load may be improved, as processes
1028blocking on disk reads are serviced sooner (file writes typically
1029don't cause applications to block).
1030The performance effect varies greatly depending on the hardware, drive
1031firmware, filesystem configuration, workload, and desired performance
1032trade-off.
1033Systems using drive write-cache (most modern IDE disks, by default)
1034are unlikely to benefit and may well suffer; such disks acknowledge
1035writes very quickly, and optimise them internally according to
1036physical layout.
1037Giving these disks as many requests to work with as possible (the
1038standard strategy) will typically produce the best results, especially
1039if the drive has a large cache; the drive will silently complete
1040writes from cache as it seeks for reads.
1041Disks that support a large number of concurrent tagged requests (SCSI
1042disks and many hardware RAID controllers) expose this internal
1043scheduling with tagged responses, and don't block for reads; such
1044disks may not see a noticable difference with either strategy.
1045However, if IDE disks are run with write-cache disabled for safety,
1046writes are not acknowledged until actually completed, and only one
1047request can be outstanding; a large number of small writes in one
1048locality can keep the disk busy, starving reads elsewhere on the disk.
1049Such systems are likely to see the most benefit from this option.
1050Finally, the performance interaction of this option with ffs soft
1051dependencies can be subtle, as that mechanism can drastically alter
1052the workload for filesystem metadata writes.
1053.It Cd options BUFQ_PRIOCSCAN
1054Enable another experimental buffer queue strategy for disk I/O,
1055Per-priority cyclical scan.
1056.It Cd options NEW_BUFQ_STRATEGY
1057Synonym of
1058.Em BUFQ_READPRIO .
1059.El
1060.Ss Miscellaneous Options
1061.Bl -ohang
1062.It Cd options LKM
1063Enable loadable kernel modules.
1064See
1065.Xr lkm 4
1066for details.
1067.Em NOTE :
1068not available on all architectures.
1069.It Cd options INSECURE
1070Hardwires the kernel security level at -1.
1071This means that the system
1072always runs in secure level 0 mode, even when running multiuser.
1073See the manual page for
1074.Xr init 8
1075for details on the implications of this.
1076The kernel secure level may manipulated by the superuser by altering the
1077.Em kern.securelevel
1078.Xr sysctl 3
1079variable (the secure level may only be lowered by a call from process ID 1,
1080i.e.
1081.Xr init 8 ) .
1082See also
1083.Xr sysctl 8
1084and
1085.Xr sysctl 3 .
1086.It Cd options MEMORY_DISK_DYNAMIC
1087This options makes the
1088.Xr md 4
1089.Tn RAM
1090disk size dynamically sized.
1091.It Cd options MEMORY_DISK_HOOKS
1092This option allows for some machine dependent functions to be called when
1093the
1094.Xr md 4
1095.Tn RAM
1096disk driver is configured.
1097This can result in automatically loading a
1098.Tn RAM
1099disk from floppy on open (among other things).
1100.It Cd options MEMORY_DISK_IS_ROOT
1101Forces the
1102.Xr md 4
1103.Tn RAM
1104disk to be the root device.
1105This can only be overridden when
1106the kernel is booted in the 'ask-for-root' mode.
1107.It Cd options MEMORY_DISK_ROOT_SIZE=integer
1108Allocates the given number of 512 byte blocks as memory for the
1109.Xr md 4
1110.Tn RAM
1111disk, to be populated with
1112.Xr mdsetimage 8 .
1113.It Cd options MEMORY_DISK_SERVER=0
1114Do not include the interface to a userland memory disk server process.
1115Per default, this options is set to 1, including the support code.
1116Useful for install media kernels.
1117.It Cd options VNODE_OP_NOINLINE
1118Do not inline the
1119.Fn VOP_*
1120calls in the kernel.
1121On i386 GENERIC, this saves 36k of kernel text.
1122Useful for install media kernels, small memory systems and embedded systems.
1123.It Cd options VND_COMPRESSION
1124Enables the
1125.Xr vnd 4
1126driver to also handle compressed images. See
1127.Xr vndcompress 1 ,
1128.Xr vnd 4
1129and
1130.Xr vnconfig 8
1131for more information.
1132.It Cd options MALLOC_NOINLINE
1133Time critical fixed size memory allocation is performed with
1134.Fn MALLOC
1135and
1136.Fn FREE .
1137Normally these expand to inline code, but with
1138.Em MALLOC_NOINLINE
1139these call the normal
1140.Fn malloc
1141and
1142.Fn free
1143functions.
1144Useful for install media kernels, small memory systems and embedded systems.
1145.It Cd options HZ=integer
1146On ports that support it, set the system clock frequency (see
1147.Xr hz 9 )
1148to the supplied value.
1149Handle with care.
1150.It Cd options NTP
1151Turns on in-kernel precision timekeeping support used by software
1152implementing
1153.Em NTP
1154(Network Time Protocol, RFC 1305).
1155The
1156.Em NTP
1157option adds an in-kernel Phase-Locked Loop (PLL) for normal
1158.Em NTP
1159operation, and a Frequency-Locked Loop (FLL) for intermittently-connected
1160operation.
1161.Xr ntpd 8
1162will employ a user-level PLL when kernel support is unavailable,
1163but the in-kernel version has lower latency and more precision, and
1164so typically keeps much better time.
1165The interface to the kernel
1166.Em NTP
1167support is provided by the
1168.Xr ntp_adjtime 2
1169and
1170.Xr ntp_gettime 2
1171system calls, which are intended for use by
1172.Xr ntpd 8
1173and are enabled by the option.
1174On systems with sub-microsecond resolution timers, or where (HZ / 100000)
1175is not an integer, the
1176.Em NTP
1177option also enables extended-precision arithmetic to keep track of
1178fractional clock ticks at NTP time-format precision.
1179.It Cd options PPS_SYNC
1180This option enables a kernel serial line discipline for receiving time
1181phase signals from an external reference clock such as a radio clock.
1182(The
1183.Em NTP
1184option (which see) must be on if the
1185.Em PPS_SYNC
1186option is used.)
1187Some reference clocks generate a Pulse Per Second (PPS) signal in
1188phase with their time source.
1189The
1190.Em PPS
1191line discipline receives this signal on either the data leads
1192or the DCD control lead of a serial port.
1193.Em NTP
1194uses the PPS signal to discipline the local clock oscillator to a high
1195degree of precision (typically less than 50 microseconds in time and
11960.1 ppm in accuracy).
1197.Em PPS
1198can also generate a serial output pulse when the system receives a PPS
1199interrupt.
1200This can be used to measure the system interrupt latency and thus calibrate
1201.Em NTP
1202to account for it.
1203Using
1204.Em PPS
1205usually requires a
1206gadget box
1207to convert from TTL to RS-232 signal levels.
1208The gadget box and PPS are described in more detail in the HTML documentation
1209for
1210.Xr ntpd 8
1211in
1212.Pa /usr/share/doc/html/ntp .
1213.It Cd options NO_TSC_TIME
1214Don't use TSC microtime, even if available (i386 only).
1215Improves time behavior under VMware.
1216.It Cd options SETUIDSCRIPTS
1217Allows scripts with the setuid bit set to execute as the effective
1218user rather than the real user, just like binary executables.
1219.Pp
1220.Em NOTE :
1221Using this option will also enable
1222.Em options FDSCRIPTS
1223.It Cd options FDSCRIPTS
1224Allows execution of scripts with the execute bit set, but not the
1225read bit, by opening the file and passing the file descriptor to
1226the shell, rather than the filename.
1227.Pp
1228.Em NOTE :
1229Execute only (non-readable) scripts will have
1230.Va argv[0]
1231set to
1232.Pa /dev/fd/* .
1233What this option allows as far as security is
1234concerned, is the ability to safely ensure that the correct script
1235is run by the interpreter, as it is passed as an already open file.
1236.It Cd options PUCCN
1237Enables treating serial ports found on PCI boards
1238.Xr puc 4
1239as potential console devices.
1240The method for choosing such a console device is port dependent.
1241.It Cd options RTC_OFFSET=integer
1242The kernel (and typically the hardware battery backed-up clock on
1243those machines that have one) keeps time in
1244.Em UTC
1245(Universal Coordinated Time, once known as
1246.Em GMT ,
1247or Greenwich Mean Time)
1248and not in the time of the local time zone.
1249The
1250.Em RTC_OFFSET
1251option is used on some ports (such as the i386) to tell the kernel
1252that the hardware clock is offset from
1253.Em UTC
1254by the specified number of minutes.
1255This is typically used when a machine boots several operating
1256systems and one of them wants the hardware clock to run in the
1257local time zone and not in
1258.Em UTC ,
1259e.g.
1260.Em RTC_OFFSET=300
1261means
1262the hardware clock is set to US Eastern Time (300 minutes behind
1263.Em UTC ) ,
1264and not
1265.Em UTC .
1266(Note:
1267.Em RTC_OFFSET
1268is used to initialize a kernel variable named
1269.Va rtc_offset
1270which is the source actually used to determine the clock offset, and
1271which may be accessed via the kern.rtc_offset sysctl variable.
1272See
1273.Xr sysctl 8
1274and
1275.Xr sysctl 3
1276for details.
1277Since the kernel clock is initialized from the hardware clock very
1278early in the boot process, it is not possible to meaningfully change
1279.Va rtc_offset
1280in system initialization scripts.
1281Changing this value currently may only be done at kernel compile
1282time or by patching the kernel and rebooting).
1283.Pp
1284.Em NOTE :
1285Unfortunately, in many cases where the hardware clock
1286is kept in local time, it is adjusted for Daylight Savings
1287Time; this means that attempting to use
1288.Em RTC_OFFSET
1289to let
1290.Nx
1291coexist with such an operating system, like Windows,
1292would necessitate changing
1293.Em RTC_OFFSET
1294twice a year.
1295As such, this solution is imperfect.
1296.It Cd options KMEMSTATS
1297The kernel memory allocator,
1298.Xr malloc 9 ,
1299will keep statistics on its performance if this option is enabled.
1300Unfortunately, this option therefore essentially disables the
1301.Fn MALLOC
1302and
1303.Fn FREE
1304forms of the memory allocator, which are used to enhance the performance
1305of certain critical sections of code in the kernel.
1306This option therefore can lead to a significant decrease in the
1307performance of certain code in the kernel if enabled.
1308Examples of such code include the
1309.Fn namei
1310routine, the
1311.Xr ccd 4
1312driver,
1313and much of the networking code.
1314.It Cd options MAXUPRC=integer
1315Sets the soft
1316.Dv RLIMIT_NPROC
1317resource limit, which specifies the maximum number of simultaneous
1318processes a user is permitted to run, for process 0;
1319this value is inherited by its child processes.
1320It defaults to
1321.Em CHILD_MAX ,
1322which is currently defined to be 160.
1323Setting
1324.Em MAXUPRC
1325to a value less than
1326.Em CHILD_MAX
1327is not permitted, as this would result in a violation of the semantics of
1328.St -p1003.1-90 .
1329.It Cd options NOFILE=integer
1330Sets the soft
1331.Dv RLIMIT_NOFILE
1332resource limit, which specifies the maximum number of open
1333file descriptors for each process;
1334this value is inherited by its child processes.
1335It defaults to
1336.Em OPEN_MAX ,
1337which is currently defined to be 64.
1338.It Cd options MAXFILES=integer
1339Sets the default value of the
1340.Em kern.maxfiles
1341sysctl variable, which indicates the maximum number of files that may
1342be open in the system.
1343.It Cd options DEFCORENAME=string
1344Sets the default value of the
1345.Em kern.defcorename
1346sysctl variable, otherwise it is set to
1347.Nm %n.core .
1348See
1349.Xr sysctl 8
1350and
1351.Xr sysctl 3
1352for details.
1353.It Cd options RASOPS_CLIPPING
1354Enables clipping within the
1355.Nm rasops
1356raster-console output system.
1357.Em NOTE :
1358only available on architectures that use
1359.Nm rasops
1360for console output.
1361.It Cd options RASOPS_SMALL
1362Removes optimized character writing code from the
1363.Nm rasops
1364raster-console output system.
1365.Em NOTE :
1366only available on architectures that use
1367.Nm rasops
1368for console output.
1369.It Cd options INCLUDE_CONFIG_FILE
1370Embeds the kernel config file used to define the kernel in the kernel
1371binary itself.
1372The embedded data also includes any files directly included by the config
1373file itself, e.g.
1374.Pa GENERIC.local
1375or
1376.Pa std.$MACHINE .
1377The embedded config file can be extracted from the resulting kernel with
1378.Xr config 1
1379.Fl x ,
1380or by the following command:
1381.Bd -literal -offset indent
1382strings netbsd | sed -n 's/^_CFG_//p' | unvis
1383.Ed
1384.It Cd options INCLUDE_JUST_CONFIG
1385Similar to the above option, but includes just the actual config file,
1386not any included files.
1387.It Cd options PIPE_SOCKETPAIR
1388Use slower, but smaller socketpair(2)-based pipe implementation instead
1389of default faster, but bigger one.
1390Primarily useful for installation kernels.
1391.It Cd options USERCONF
1392Compiles in the in-kernel device configuration manager.
1393See
1394.Xr userconf 4
1395for details.
1396.It Cd options PERFCTRS
1397Compiles in kernel support for CPU performance-monitoring counters.
1398See
1399.Xr pmc 1
1400for details.
1401.Em NOTE :
1402not available on all architectures.
1403.It Cd options XSERVER
1404Compiles in kernel support for
1405.Tn X11
1406on architectures that still use (or can use) the legacy
1407.Em pccons
1408console drivers rather than
1409.Xr wscons 4 .
1410These include bebox, i386, shark.
1411.It Cd options XSERVER_DDB
1412A supplement to XSERVER that adds support for entering
1413.Xr ddb 4
1414while in
1415.Tn X11 .
1416.El
1417.Ss Networking Options
1418.Bl -ohang
1419.It Cd options GATEWAY
1420Enables
1421.Em IPFORWARDING
1422(which see)
1423and (on most ports) increases the size of
1424.Em NMBCLUSTERS
1425(which see).
1426In general,
1427.Em GATEWAY
1428is used to indicate that a system should act as a router, and
1429.Em IPFORWARDING
1430is not invoked directly.
1431(Note that
1432.Em GATEWAY
1433has no impact on protocols other than
1434.Tn IP ,
1435such as
1436.Tn CLNP
1437or
1438.Tn XNS ) .
1439.Em GATEWAY
1440option also compiles IPv4 fast forwarding code into the kernel.
1441.It Cd options ICMPPRINTFS
1442The
1443.Em ICMPPRINTFS
1444option will enable debugging information to be printed about
1445the
1446.Xr icmp 4
1447protocol.
1448.It Cd options IPFORWARDING=value
1449If
1450.Em value
1451is 1 this enables IP routing behavior.
1452If
1453.Em value
1454is 0 (the default), it disables it.
1455The
1456.Em GATEWAY
1457option sets this to 1 automatically.
1458With this option enabled, the machine will forward IP datagrams destined
1459for other machines between its interfaces.
1460Note that even without this option, the kernel will
1461still forward some packets (such as source routed packets) -- removing
1462.Em GATEWAY
1463and
1464.Em IPFORWARDING
1465is insufficient to stop all routing through a bastion host on a
1466firewall -- source routing is controlled independently.
1467To turn off source routing, use
1468.Em options IPFORWSRCRT=0
1469(which see).
1470Note that IP forwarding may be turned on and off independently of the
1471setting of the
1472.Em IPFORWARDING
1473option through the use of the
1474.Em net.inet.ip.forwarding
1475sysctl variable.
1476If
1477.Em net.inet.ip.forwarding
1478is 1, IP forwarding is on.
1479See
1480.Xr sysctl 8
1481and
1482.Xr sysctl 3
1483for details.
1484.It Cd options IPFORWSRCRT=value
1485If
1486.Em value
1487is set to zero, source routing of IP datagrams is turned off.
1488If
1489.Em value
1490is set to one (the default) or the option is absent, source routed IP
1491datagrams are forwarded by the machine.
1492Note that source routing of IP packets may be turned on and off
1493independently of the setting of the
1494.Em IPFORWSRCRT
1495option through the use of the
1496.Em net.inet.ip.forwsrcrt
1497sysctl variable.
1498If
1499.Em net.inet.ip.forwsrcrt
1500is 1, forwarding of source routed IP datagrams is on.
1501See
1502.Xr sysctl 8
1503and
1504.Xr sysctl 3
1505for details.
1506.It Cd options IFA_STATS
1507Tells the kernel to maintain per-address statistics on bytes sent
1508and received over (currently) internet and appletalk addresses.
1509.\"This can be a fairly expensive operation, so you probably want to
1510.\"keep this disabled.
1511The option is not recommended as it degrades system stability.
1512.It Cd options IFQ_MAXLEN=value
1513Increases the allowed size of the network interface packet queues.
1514The default queue size is 50 packets, and you do not normally need
1515to increase it.
1516.It Cd options MROUTING
1517Includes support for IP multicast routers.
1518You certainly want
1519.Em INET
1520with this.
1521Multicast routing is controlled by the
1522.Xr mrouted 8
1523daemon.
1524.It Cd options PIM
1525Includes support for Protocol Independent Multicast (PIM) routing.
1526You need
1527.Em MROUTING
1528and
1529.Em INET
1530with this.
1531.It Cd options INET
1532Includes support for the
1533.Tn TCP/IP
1534protocol stack.
1535You almost certainly want this.
1536See
1537.Xr inet 4
1538for details.
1539.It Cd options INET6
1540Includes support for the
1541.Tn IPv6
1542protocol stack.
1543See
1544.Xr inet6 4
1545for details.
1546Unlike
1547.Em INET ,
1548.Em INET6
1549enables multicast routing code as well.
1550This option requires
1551.Em INET
1552at this moment, but it should not.
1553.It Cd options ND6_DEBUG
1554The option sets the default value of net.inet6.icmp6.nd6_debug to 1,
1555for debugging IPv6 neighbor discovery protocol handling.
1556See
1557.Xr sysctl 3
1558for details.
1559.It Cd options IPSEC
1560Includes support for the
1561.Tn IPsec
1562protocol.
1563See
1564.Xr ipsec 4
1565for details.
1566.It Cd options IPSEC_DEBUG
1567Enables debugging code in
1568.Tn IPsec
1569stack.
1570See
1571.Xr ipsec 4
1572for details.
1573.It Cd options IPSEC_ESP
1574Includes support for
1575.Tn IPsec
1576.Tn ESP
1577protocol.
1578See
1579.Xr ipsec 4
1580for details.
1581.It Cd options IPSEC_NAT_T
1582Includes support for
1583.Tn IPsec
1584Network Address Translator traversal (NAT-T), as described in RFCs 3947
1585and 3948.
1586This feature might be patent-encumbered in some countries.
1587.It Cd options ALTQ
1588Enabled ALTQ (Alternate Queueing).
1589For simple rate-limiting, use
1590.Xr tbrconfig 8
1591to set up the interface transmission rate.
1592To use queueing disciplines, their appropriate kernel options should also
1593be defined (documented below).
1594Queueing disciplines are managed by
1595.Xr altqd 8 .
1596See
1597.Xr altq 9
1598for details.
1599.It Cd options ALTQ_HFSC
1600Include support for ALTQ-implemented HFSC (Hierarchical Fair Service Curve)
1601module.
1602HFSC supports both link-sharing and guaranteed real-time services.
1603HFSC employs a service curve based QoS model, and its unique feature
1604is an ability to decouple delay and bandwidth allocation.
1605Requires
1606.Em ALTQ_RED
1607to use the RED queueing discipline on HFSC classes, or
1608.Em ALTQ_RIO
1609to use the RIO queueing discipline on HFSC classes.
1610This option assumes
1611.Em ALTQ .
1612.It Cd options ALTQ_PRIQ
1613Include support for ALTQ-implemented PRIQ (Priority Queueing).
1614PRIQ implements a simple priority-based queueing discipline.
1615A higher priority class is always served first.
1616Requires
1617.Em ALTQ_RED
1618to use the RED queueing discipline on HFSC classes, or
1619.Em ALTQ_RIO
1620to use the RIO queueing discipline on HFSC classes.
1621This option assumes
1622.Em ALTQ .
1623.It Cd options ALTQ_WFQ
1624Include support for ALTQ-implemented WFQ (Weighted Fair Queueing).
1625WFQ implements a weighted-round robin scheduler for a set of queues.
1626A weight can be assigned to each queue to give a different proportion
1627of the link capacity.
1628A hash function is used to map a flow to one of a set of queues.
1629This option assumes
1630.Em ALTQ .
1631.It Cd options ALTQ_FIFOQ
1632Include support for ALTQ-implemented FIFO queueing.
1633FIFOQ is a simple drop-tail FIFO (First In, First Out) queueing discipline.
1634This option assumes
1635.Em ALTQ .
1636.It Cd options ALTQ_RIO
1637Include support for ALTQ-implemented RIO (RED with In/Out).
1638The original RIO has 2 sets of RED parameters; one for in-profile
1639packets and the other for out-of-profile packets.
1640At the ingress of the network, profile meters tag packets as IN or
1641OUT based on contracted profiles for customers.
1642Inside the network, IN packets receive preferential treatment by
1643the RIO dropper.
1644ALTQ/RIO has 3 drop precedence levels defined for the Assured Forwarding
1645PHB of DiffServ (RFC 2597).
1646This option assumes
1647.Em ALTQ .
1648.It Cd options ALTQ_BLUE
1649Include support for ALTQ-implemented Blue buffer management.
1650Blue is another active buffer management mechanism.
1651This option assumes
1652.Em ALTQ .
1653.It Cd options ALTQ_FLOWVALVE
1654Include support for ALTQ-implemented Flowvalve.
1655Flowvalve is a simple implementation of a RED penalty box that identifies
1656and punishes misbehaving flows.
1657This option requires
1658.Em ALTQ_RED
1659and assumes
1660.Em ALTQ .
1661.It Cd options ALTQ_CDNR
1662Include support for ALTQ-implemented CDNR (diffserv traffic conditioner)
1663packet marking/manipulation.
1664Traffic conditioners are components to meter, mark, or drop incoming
1665packets according to some rules.
1666As opposed to queueing disciplines, traffic conditioners handle incoming
1667packets at an input interface.
1668This option assumes
1669.Em ALTQ .
1670.It Cd options ALTQ_NOPCC
1671Disables use of processor cycle counter to measure time in ALTQ.
1672This option should be defined for a non-Pentium i386 CPU which does not
1673have TSC, SMP (per-CPU counters are not in sync), or power management
1674which affects processor cycle counter.
1675This option assumes
1676.Em ALTQ .
1677.It Cd options ALTQ_IPSEC
1678Include support for IPsec in IPv4 ALTQ.
1679This option assumes
1680.Em ALTQ .
1681.It Cd options ALTQ_JOBS
1682Undocumented at this time.
1683.It Cd options ALTQ_AFMAP
1684Include support for an undocumented ALTQ feature that is used to map an IP
1685flow to an ATM VC (Virtual Circuit).
1686This option assumes
1687.Em ALTQ .
1688.It Cd options ALTQ_LOCALQ
1689Include support for ALTQ-implemented local queues.
1690Its practical use is undefined.
1691Assumes
1692.Em ALTQ .
1693.It Cd options SUBNETSARELOCAL
1694Sets default value for net.inet.ip.subnetsarelocal variable, which
1695controls whether non-directly-connected subnets of connected networks
1696are considered "local" for purposes of choosing the MSS for a TCP
1697connection.
1698This is mostly present for historic reasons and completely irrelevant if
1699you enable Path MTU discovery.
1700.It Cd options HOSTZEROBROADCAST
1701Sets default value for net.inet.ip.hostzerobroadcast variable, which
1702controls whether the zeroth host address of each connected subnet is
1703also considered a broadcast address.
1704Default value is "1", for compatibility with old systems; if this is
1705set to zero on all hosts on a subnet, you should be able to fit an extra
1706host per subnet on the
1707".0" address.
1708.It Cd options MCLSHIFT=value
1709This option is the base-2 logarithm of the size of mbuf clusters.
1710The
1711.Bx
1712networking stack keeps network packets in a linked
1713list, or chain, of kernel buffer objects called mbufs.
1714The system provides larger mbuf clusters as an optimization for
1715large packets, instead of using long chains for large packets.
1716The mbuf cluster size,
1717or
1718.Em MCLBYTES ,
1719must be a power of two, and is computed as two raised to the power
1720.Em MCLSHIFT .
1721On systems with Ethernet network adaptors,
1722.Em MCLSHIFT
1723is often set to 11, giving 2048-byte mbuf clusters, large enough to
1724hold a 1500-byte
1725.Tn Ethernet
1726frame in a single cluster.
1727Systems with network interfaces supporting larger frame sizes like
1728.Tn ATM ,
1729.Tn FDDI ,
1730or
1731.Tn HIPPI
1732may perform better with
1733.Em MCLSHIFT
1734set to 12 or 13, giving mbuf cluster sizes of 4096 and 8192 bytes,
1735respectively.
1736.It Cd options NS
1737Include support for the
1738.Tn Xerox
1739.Tn XNS
1740protocol stack.
1741See
1742.Xr ns 4
1743for details.
1744.It Cd options ISO,TPIP
1745Include support for the ubiquitous
1746.Tn OSI
1747protocol stack.
1748See
1749.Xr iso 4
1750for details.
1751This option assumes
1752.Em INET .
1753.It Cd options EON
1754Include support for tunneling
1755.Tn OSI
1756protocols over
1757.Tn IP .
1758Known to be broken, or at least very fragile, and undocumented.
1759.It Cd options CCITT,LLC,HDLC
1760Include support for the
1761.Tn CCITT
1762(nee
1763.Tn ITU-TSS )
1764.Tn X.25
1765protocol stack.
1766The state of this code is currently unknown, and probably contains bugs.
1767This option assumes
1768.Em INET .
1769.It Cd options NETATALK
1770Include support for the
1771.Tn AppleTalk
1772protocol stack.
1773The kernel provides provision for the
1774.Em Datagram Delivery Protocol
1775(DDP), providing SOCK_DGRAM support and
1776.Tn AppleTalk
1777routing.
1778This stack is used by the
1779.Em NETATALK
1780package, which adds support for
1781.Tn AppleTalk
1782server services via user libraries and applications.
1783.It Cd options IPNOPRIVPORTS
1784Normally, only root can bind a socket descriptor to a so-called
1785.Dq privileged
1786.Tn TCP
1787port, that is, a port number in the range 0-1023.
1788This option eliminates those checks from the kernel.
1789This can be useful if there is a desire to allow daemons without
1790privileges to bind those ports, e.g., on firewalls.
1791The security tradeoffs in doing this are subtle.
1792This option should only be used by experts.
1793.It Cd options TCP_COMPAT_42
1794.Tn TCP
1795bug compatibility with
1796.Bx 4.2 .
1797In
1798.Bx 4.2 ,
1799.Tn TCP
1800sequence numbers were 32-bit signed values.
1801Modern implementations of TCP use unsigned values.
1802This option clamps the initial sequence number to start in
1803the range 2^31 rather than the full unsigned range of 2^32.
1804Also, under
1805.Bx 4.2 ,
1806keepalive packets must contain at least one byte or else
1807the remote end would not respond.
1808.It Cd options TCP_DEBUG
1809Record the last
1810.Em TCP_NDEBUG
1811TCP packets with SO_DEBUG set, and decode to the console if
1812.Em tcpconsdebug
1813is set.
1814.It Cd options TCP_NDEBUG
1815Number of packets to record for
1816.Em TCP_DEBUG .
1817Defaults to 100.
1818.It Cd options TCP_SENDSPACE=value
1819.It Cd options TCP_RECVSPACE=value
1820These options set the max TCP window size to other sizes than the default.
1821The TCP window sizes can be altered via
1822.Xr sysctl 8
1823as well.
1824.It Cd options TCP_INIT_WIN=value
1825This option sets the initial TCP window size for non-local connections,
1826which is used when the transmission starts.
1827The default size is 1, but if the machine should act more aggressively,
1828the initial size can be set to some other value.
1829The initial TCP window size can be set via
1830.Xr sysctl 8
1831as well.
1832.It Cd options PFIL_HOOKS
1833This option turns on the packet filter interface hooks.
1834See
1835.Xr pfil 9
1836for details.
1837This option assumes
1838.Em INET .
1839.It Cd options IPFILTER_LOG
1840This option, in conjunction with
1841.Em pseudo-device ipfilter ,
1842enables logging of IP packets using ip-filter.
1843.It Cd options IPFILTER_DEFAULT_BLOCK
1844This option sets the default policy of ip-filter.
1845If it is set, ip-filter will block packets by default.
1846.It Cd options BRIDGE_IPF
1847This option causes
1848.Em bridge
1849devices to use the IP and/or IPv6 filtering hooks, forming
1850a link-layer filter that uses protocol-layer rules.
1851This option assumes the presence of
1852.Em pseudo-device ipfilter .
1853.It Cd options MBUFTRACE
1854This option can help track down mbuf leaks.
1855When enabled, mbufs are tagged with the devices and protocols using them,
1856which slightly decreases network performance.
1857This additional information can be viewed with
1858.Xr netstat 1 :
1859.Dl Ic netstat Fl mssv
1860Not all devices or protocols support this option.
1861.El
1862.Ss Sysctl Related Options
1863.Bl -ohang
1864.It Cd options SYSCTL_DISALLOW_CREATE
1865Disallows the creation or deletion of nodes from the sysctl tree, as
1866well as the assigning of descriptions to nodes that lack them, by any
1867process.
1868These operations are still available to kernel sub-systems, including
1869loadable kernel modules.
1870.It Cd options SYSCTL_DISALLOW_KWRITE
1871Prevents processes from adding nodes to the sysctl tree that make
1872existing kernel memory areas writeable.
1873Sections of kernel memory can still be read and new nodes that own
1874their own data may still be writeable.
1875.It Cd options SYSCTL_DEBUG_SETUP
1876Causes the SYSCTL_SETUP routines to print a brief message when they
1877are invoked.
1878This is merely meant as an aid in determining the order in which
1879sections of the tree are created.
1880.It Cd options SYSCTL_DEBUG_CREATE
1881Prints a message each time
1882.Fn sysctl_create ,
1883the function that adds nodes to the tree, is called.
1884.It Cd options SYSCTL_INCLUDE_DESCR
1885Causes the kernel to include short, human readable descriptions for
1886nodes in the sysctl tree.
1887The descriptions can be retrieved programmatically (see
1888.Xr sysctl 3 ) ,
1889or by the sysctl binary itself (see
1890.Xr sysctl 8 ) .
1891The descriptions are meant to give an indication of the purpose and/or
1892effects of a given node's value, not replace the documentation for the
1893given subsystem as a whole.
1894.El
1895.Ss System V IPC Options
1896.Bl -ohang
1897.It Cd options SYSVMSG
1898Includes support for
1899.At V
1900style message queues.
1901See
1902.Xr msgctl 2 ,
1903.Xr msgget 2 ,
1904.Xr msgrcv 2 ,
1905.Xr msgsnd 2 .
1906.It Cd options SYSVSEM
1907Includes support for
1908.At V
1909style semaphores.
1910See
1911.Xr semctl 2 ,
1912.Xr semget 2 ,
1913.Xr semop 2 .
1914.It Cd options SEMMNI=value
1915Sets the number of
1916.At V
1917style semaphore identifiers.
1918The GENERIC config file for your port will have the default.
1919.It Cd options SEMMNS=value
1920Sets the number of
1921.At V
1922style semaphores in the system.
1923The GENERIC config file for your port will have the default.
1924.It Cd options SEMUME=value
1925Sets the maximum number of undo entries per process for
1926.At V
1927style semaphores.
1928The GENERIC config file for your port will have the default.
1929.It Cd options SEMMNU=value
1930Sets the number of undo structures in the system for
1931.At V
1932style semaphores.
1933The GENERIC config file for your port will have the default.
1934.It Cd options SYSVSHM
1935Includes support for
1936.At V
1937style shared memory.
1938See
1939.Xr shmat 2 ,
1940.Xr shmctl 2 ,
1941.Xr shmdt 2 ,
1942.Xr shmget 2 .
1943.It Cd options SHMMAXPGS=value
1944Sets the maximum number of
1945.At V
1946style shared memory pages that are available through the
1947.Xr shmget 2
1948system call.
1949Default value is 1024 on most ports.
1950See
1951.Pa /usr/include/machine/vmparam.h
1952for the default.
1953.El
1954.Ss VM Related Options
1955.Bl -ohang
1956.It Cd options NMBCLUSTERS=value
1957The number of mbuf clusters the kernel supports.
1958Mbuf clusters are MCLBYTES in size (usually 2k).
1959This is used to compute the size of the kernel VM map
1960.Em mb_map ,
1961which maps mbuf clusters.
1962Default on most ports is 1024 (2048 with
1963.Dq options GATEWAY
1964).
1965See
1966.Pa /usr/include/machine/param.h
1967for exact default information.
1968Increase this value if you get
1969.Dq mclpool limit reached
1970messages.
1971.It Cd options NKMEMPAGES=value
1972.It Cd options NKMEMPAGES_MIN=value
1973.It Cd options NKMEMPAGES_MAX=value
1974Size of kernel VM map
1975.Em kmem_map ,
1976in PAGE_SIZE-sized chunks (the VM page size; this value may be read
1977from the
1978.Xr sysctl 8
1979variable
1980.Em hw.pagesize
1981).
1982This VM map is used to map the kernel malloc arena.
1983The kernel attempts to auto-size this map based on the amount of
1984physical memory in the system.
1985Platform-specific code may place bounds on this computed size,
1986which may be viewed with the
1987.Xr sysctl 8
1988variable
1989.Em vm.nkmempages .
1990See
1991.Pa /usr/include/machine/param.h
1992for the default upper and lower bounds.
1993The related options
1994.Sq NKMEMPAGES_MIN
1995and
1996.Sq NKMEMPAGES_MAX
1997allow the bounds to be overridden in the kernel configuration file.
1998These options are provided in the event the computed value is
1999insufficient resulting in an
2000.Dq out of space in kmem_map
2001panic.
2002.It Cd options SB_MAX=value
2003Sets the max size in bytes that a socket buffer is allowed to occupy.
2004The default is 256k, but sometimes it needs to be increased, for example
2005when using large TCP windows.
2006This option can be changed via
2007.Xr sysctl 8
2008as well.
2009.It Cd options SOMAXKVA=value
2010Sets the maximum size of kernel virtual memory that the socket buffers
2011are allowed to use.
2012The default is 16MB, but in situations where for example large TCP
2013windows are used this value must also be increased.
2014This option can be changed via
2015.Xr sysctl 8
2016as well.
2017.It Cd options BUFCACHE=value
2018Size of the buffer cache as a percentage of total available
2019.Tn RAM .
2020Ignored if BUFPAGES is also specified.
2021.It Cd options NBUF=value
2022Sets the number of buffer headers available, i.e., the number of
2023open files that may have a buffer cache entry.
2024Each buffer header
2025requires MAXBSIZE (machine dependent, but usually 65536) bytes.
2026The default value is machine dependent, but is usually equal to the
2027value of BUFPAGES.
2028If an architecture dependent VM_MAX_KERNEL_BUF constant is defined
2029then NBUF may be reduced at run time so that the storage allocated
2030for buffer headers doesn't exceed that limit.
2031.It Cd options BUFPAGES=value
2032These options set the number of pages available for the buffer cache.
2033Their default value is a machine dependent value, often calculated as
2034between 5% and 10% of total available
2035.Tn RAM .
2036.It Cd options MAXTSIZ=bytes
2037Sets the maximum size limit of a process' text segment.
2038See
2039.Pa /usr/include/machine/vmparam.h
2040for the port-specific default.
2041.It Cd options DFLDSIZ=bytes
2042Sets the default size limit of a process' data segment, the value that
2043will be returned as the soft limit for
2044.Dv RLIMIT_DATA
2045(as returned by
2046.Xr getrlimit 2 ) .
2047See
2048.Pa /usr/include/machine/vmparam.h
2049for the port-specific default.
2050.It Cd options MAXDSIZ=bytes
2051Sets the maximum size limit of a process' data segment, the value that
2052will be returned as the hard limit for
2053.Dv RLIMIT_DATA
2054(as returned by
2055.Xr getrlimit 2 ) .
2056See
2057.Pa /usr/include/machine/vmparam.h
2058for the port-specific default.
2059.It Cd options DFLSSIZ=bytes
2060Sets the default size limit of a process' stack segment, the value that
2061will be returned as the soft limit for
2062.Dv RLIMIT_STACK
2063(as returned by
2064.Xr getrlimit 2 ) .
2065See
2066.Pa /usr/include/machine/vmparam.h
2067for the port-specific default.
2068.It Cd options MAXSSIZ=bytes
2069Sets the maximum size limit of a process' stack segment, the value that
2070will be returned as the hard limit for
2071.Dv RLIMIT_STACK
2072(as returned by
2073.Xr getrlimit 2 ) .
2074See
2075.Pa /usr/include/machine/vmparam.h
2076for the port-specific default.
2077.It Cd options DUMP_ON_PANIC=integer
2078Defaults to one.
2079If set to zero, the kernel will not dump to the dump device when
2080it panics, though dumps can still be forced via
2081.Xr ddb 4
2082with the
2083.Dq sync
2084command.
2085Note that this sets the value of the
2086.Em kern.dump_on_panic
2087.Xr sysctl 3
2088variable which may be changed at run time -- see
2089.Xr sysctl 8
2090for details.
2091.It Cd options USE_TOPDOWN_VM
2092User space memory allocations (as made by
2093.Xr mmap 2 )
2094will be arranged in a
2095.Dq top down
2096fashion instead of the traditional
2097.Dq upwards from MAXDSIZ \+ vm_daddr
2098method.
2099This includes the placement of
2100.Xr ld.so 1 .
2101Arranging memory in this manner allows either (or both of) the heap or
2102.Xr mmap 2
2103allocated space to grow larger than traditionally possible.
2104This option is not available on all ports, but is instead expected to be
2105offered on a port-by-port basis, after which some ports will commit to
2106using it by default.
2107See the files
2108.Pa /usr/include/uvm/uvm_param.h
2109for some implementation details, and
2110.Pa /usr/include/machine/vmparam.h
2111for port specific details including availability.
2112.El
2113.Ss amiga-specific Options
2114.Bl -ohang
2115.It Cd options BB060STUPIDROM
2116When the bootloader (which passes
2117.Tn AmigaOS
2118.Tn ROM
2119information) claims we have a 68060
2120.Tn CPU
2121without
2122.Tn FPU ,
2123go look into the Processor Configuration Register (PCR) to find out.
2124You need this with
2125.Tn Amiga
2126.Tn ROM Ns s
2127up to (at least) V40.xxx (OS3.1),
2128when you boot via the bootblocks and don't have a DraCo.
2129.It Cd options IOBZCLOCK=frequency
2130The IOBlix boards come with two different serial master clocks: older ones
2131use 24 MHz, newer ones use 22.1184 MHz.
2132The driver normally assumes the latter.
2133If your board uses 24 MHz, you can recompile your kernel with
2134options IOBZCLOCK=24000000
2135or patch the kernel variable
2136.Tn iobzclock
2137to the same value.
2138.It Cd options LIMITMEM=value
2139If there, limit the part of the first memory bank used by
2140.Nx
2141to value megabytes.
2142Default is unlimited.
2143.It Cd options NKPTADD=addvalue
2144.It Cd options NKPTADDSHIFT=shiftvalue
2145The
2146.Tn CPU
2147specific
2148.Tn MMU
2149table for the kernel is pre-allocated at kernel startup time.
2150Part of it is scaled with
2151.Va maxproc ,
2152to have enough room to hold the user program
2153.Tn MMU
2154tables; the second part is a fixed amount for the kernel itself.
2155.Pp
2156The third part accounts for the size of the file buffer cache.
2157Its size is either
2158.Dv NKPTADD
2159pages (if defined) or memory size in bytes divided by two to
2160the power of
2161.Dv NKPTADDSHIFT .
2162The default is undefined
2163.Dv NKPTADD
2164and
2165.Dv NKPTADDSHIFT=24 ,
2166allowing for 16 buffers per megabyte of main memory (while
2167a GENERIC kernel allocates about half of that).
2168When you get "can't get KPT page" panics, you should increase
2169.Dv NKPTADD
2170(if defined), or decrease
2171.Dv NKPTADDSHIFT
2172by one.
2173.It Cd options P5PPC68KBOARD
2174Add special support for Phase5 mixed 68k+PPC boards.
2175Currently, this only affects rebooting from
2176.Nx
2177and is only needed on 68040+PPC, not on
217868060+PPC; without this, affected machines will hang after
2179.Nx
2180has shut
2181down and will only restart after a keyboard reset or a power cycle.
2182.El
2183.Ss arm32-specific Options
2184.Bl -ohang
2185.It Cd options FRENCH_KBD
2186Include translation for French keyboards when using
2187.Em pccons
2188on a Shark.
2189.It Cd options FINNISH_KBD
2190Include translation for Finnish keyboards when using
2191.Em pccons
2192on a Shark.
2193.It Cd options GERMAN_KBD
2194Include translation for German keyboards when using
2195.Em pccons
2196on a Shark.
2197.It Cd options NORWEGIAN_KBD
2198Include translation for French keyboards when using
2199.Em pccons
2200on a Shark.
2201.El
2202.Ss atari-specific Options
2203.Bl -ohang
2204.It Cd options DISKLABEL_AHDI
2205Include support for AHDI (native Atari) disklabels.
2206.It Cd options DISKLABEL_NBDA
2207Include support for
2208.Nx Ns Tn /atari
2209labels.
2210If you don't set this option, it will be set automatically.
2211.Nx Ns Tn /atari
2212will not work without it.
2213.It Cd options FALCON_SCSI
2214Include support for the 5380-SCSI configuration as found on the Falcon.
2215.It Cd options RELOC_KERNEL
2216If set, the kernel will relocate itself to TT-RAM, if possible.
2217This will give you a slightly faster system.
2218.Em Beware
2219that on some TT030 systems,
2220the system will frequently dump with MMU-faults with this option enabled.
2221.It Cd options SERCONSOLE
2222Allow the modem1-port to act as the system-console.
2223A carrier should be active on modem1 during system boot to active
2224the console functionality.
2225.It Cd options TT_SCSI
2226Include support for the 5380-SCSI configuration as found on the TT030
2227and Hades.
2228.El
2229.Ss i386-specific Options
2230.Bl -ohang
2231.It Cd options I386_CPU,I486_CPU,I586_CPU,I686_CPU
2232Include support for a particular class of
2233.Tn CPU
2234.Po
2235.Tn i386 ,
2236.Tn i486 ,
2237.Tn Pentium ,
2238or
2239.Tn Pentium Pro
2240.Pc .
2241If the appropriate class for your
2242.Tn CPU
2243is not configured, the kernel will use the highest class available
2244that will work.
2245In general, using the correct
2246.Tn CPU
2247class will result in the best performance.
2248At least one of these options must be present.
2249.It Cd options ENHANCED_SPEEDSTEP
2250Include support for the
2251.Tn Enhanced SpeedStep Technology
2252present in newer
2253.Tn CPU Ns s .
2254.It Cd options EST_FREQ_USERWRITE
2255Allow any user to change the frequency of an
2256.Tn Enhanced SpeedStep Technology
2257capable
2258.Tn CPU .
2259.It Cd options CPURESET_DELAY=value
2260Specifies the time (in millisecond) to wait before doing a hardware reset
2261in the last phase of a reboot.
2262This gives the user a chance to see error messages from the shutdown
2263operations (like NFS unmounts, buffer cache flush, etc ...).
2264Setting this to 0 will disable the delay.
2265Default is 2 seconds.
2266.It Cd options MATH_EMULATE
2267Include the floating point emulator.
2268This is useful only for
2269.Tn CPU Ns s
2270that lack an
2271internal Floating Point Unit
2272.Pq Tn FPU
2273or co-processor.
2274.It Cd options VM86
2275Include support for virtual 8086 mode, used by
2276.Tn DOS
2277emulators and X servers to run BIOS code, e.g., for some VESA routines.
2278.It Cd options USER_LDT
2279Include i386-specific system calls for modifying the local descriptor table,
2280used by Windows emulators.
2281.It Cd options REALBASEMEM=integer
2282Overrides the base memory size passed in from the boot block.
2283(Value given in kilobytes.)
2284Use this option only if the boot block reports the size incorrectly.
2285(Note that some
2286.Tn BIOS Ns es
2287put the extended
2288.Tn BIOS
2289data area at the top of base memory, and therefore report a smaller
2290base memory size to prevent programs overwriting it.
2291This is correct behavior, and you should not use the
2292.Em REALBASEMEM
2293option to access this memory).
2294.It Cd options REALEXTMEM=integer
2295Overrides the extended memory size passed in from the boot block.
2296(Value given in kilobytes.
2297Extended memory does not include the first megabyte.)
2298Use this option only if the boot block reports the size incorrectly.
2299.It Cd options FRENCH_KBD,FINNISH_KBD,GERMAN_KBD,NORWEGIAN_KBD
2300Select a non-US keyboard layout for the
2301.Em pccons
2302console driver.
2303.It Cd options CYRIX_CACHE_WORKS
2304Relevant only to the Cyrix 486DLC CPU.
2305This option is used to turn on the cache in hold-flush mode.
2306It is not turned on by default because it is known to have problems in
2307certain motherboard implementations.
2308.It Cd options CYRIX_CACHE_REALLY_WORKS
2309Relevant only to the Cyrix 486DLC CPU.
2310This option is used to turn on the cache in write-back mode.
2311It is not turned on by default because it is known to have problems in
2312certain motherboard implementations.
2313In order for this option to take effect, option
2314.Em CYRIX_CACHE_WORKS
2315must also be specified.
2316.It Cd options PCIBIOS
2317Enable support for initializing the
2318.Tn PCI
2319bus using information from the
2320.Tn BIOS .
2321See
2322.Xr pcibios 4
2323for details.
2324.It Cd options KSTACK_CHECK_DR0
2325Detect kernel stack overflow using DR0 register.
2326This option uses DR0 register exclusively so you can't use DR0 register for
2327other purpose (e.g., hardware breakpoint) if you turn this on.
2328.It Cd options MTRR
2329Include support for accessing MTRR registers from user-space.
2330See
2331.Xr i386_get_mtrr 2 .
2332.It Cd options BEEP_ONHALT
2333Make the system speaker emit several beeps when it is completely safe to
2334power down the computer after a
2335.Xr halt 8
2336command.
2337Requires
2338.Xr sysbeep 4
2339support.
2340.It Cd options BEEP_ONHALT_COUNT=times
2341Number of times to beep the speaker when
2342.Cd options BEEP_ONHALT
2343is enabled.
2344Defaults to 3.
2345.It Cd options BEEP_ONHALT_PITCH=hz
2346The tone frequency used when
2347.Cd options BEEP_ONHALT
2348option, in hertz.
2349Defaults to 1500.
2350.It Cd options BEEP_ONHALT_PERIOD=msecs
2351The duration of each beep when
2352.Cd options BEEP_ONHALT
2353is enabled, in milliseconds.
2354Defaults to 250.
2355.El
2356.Ss isa-specific Options
2357Options specific to
2358.Xr isa 4
2359busses.
2360.Bl -ohang
2361.It Cd options PCIC_ISA_ALLOC_IOBASE=address, PCIC_ISA_ALLOC_IOSIZE=size
2362Control the section of IO bus space used for PCMCIA bus space mapping.
2363Ideally the probed defaults are satisfactory, however in practice
2364that is not always the case.
2365See
2366.Xr pcmcia 4
2367for details.
2368.It Cd options PCIC_ISA_INTR_ALLOC_MASK=mask
2369Controls the allowable interrupts that may be used for
2370.Tn PCMCIA
2371devices.
2372This mask is a logical-or of power-of-2s of allowable interrupts:
2373.Bd -literal -offset 04n
2374.Em "IRQ Val      IRQ Val      IRQ Val       IRQ Val"
2375 0  0x0001    4  0x0010    8  0x0100    12  0x1000
2376 1  0x0002    5  0x0020    9  0x0200    13  0x2000
2377 2  0x0004    6  0x0040   10  0x0400    14  0x4000
2378 3  0x0008    7  0x0080   11  0x0800    15  0x8000
2379.Ed
2380.It Cd options PCKBC_CNATTACH_SELFTEST
2381Perform a self test of the keyboard controller before attaching it as a
2382console.
2383This might be necessary on machines where we boot on cold iron, and
2384pckbc refuses to talk until we request a self test.
2385Currently only the netwinder port uses it.
2386.It Cd options PCKBD_CNATTACH_MAY_FAIL
2387If this option is set the PS/2 keyboard will not be used as the console
2388if it cannot be found during boot.
2389This allows other keyboards, like USB, to be the console keyboard.
2390.It Cd options PCKBD_LAYOUT=layout
2391Sets the default keyboard layout, see
2392.Xr pckbd 4 .
2393.El
2394.Ss m68k-specific Options
2395.Bl -ohang
2396.It Cd options FPU_EMULATE
2397Include support for MC68881/MC68882 emulator.
2398.It Cd options FPSP
2399Include support for 68040 floating point.
2400.It Cd options M68020,M68030,M68040,M68060
2401Include support for a specific
2402.Tn CPU ,
2403at least one (the one you are using) should be specified.
2404.It Cd options M060SP
2405Include software support for 68060.
2406This provides emulation of unimplemented
2407integer instructions as well as emulation of unimplemented floating point
2408instructions and data types and software support for floating point traps.
2409.El
2410.Ss powerpc-specific Options
2411.Bl -ohang
2412.It Cd options PMAP_MEMLIMIT=value
2413Limit the amount of memory seen by the kernel to
2414.Ar value
2415bytes (OEA only).
2416.El
2417.Ss sparc-specific Options
2418.Bl -ohang
2419.It Cd options AUDIO_DEBUG
2420Enable simple event debugging of the logging of the
2421.Xr audio 4
2422device.
2423.It Cd options BLINK
2424Enable blinking of LED.
2425Blink rate is full cycle every N seconds for
2426N \*[Lt] then current load average.
2427See
2428.Xr getloadavg 3 .
2429.\" .It Cd options COLORFONT_CACHE
2430.\" What does this do?
2431.It Cd options COUNT_SW_LEFTOVERS
2432Count how many times the sw SCSI device has left 3, 2, 1 and 0 in the
2433sw_3_leftover, sw_2_leftover, sw_1_leftover, and sw_0_leftover
2434variables accessible from
2435.Xr ddb 4 .
2436See
2437.Xr sw 4 .
2438.It Cd options DEBUG_ALIGN
2439Adds debugging messages calls when user-requested alignment fault
2440handling happens.
2441.It Cd options DEBUG_EMUL
2442Adds debugging messages calls for emulated floating point and
2443alignment fixing operations.
2444.It Cd options DEBUG_SVR4
2445Prints registers messages calls for emulated SVR4 getcontext and
2446setcontext operations.
2447See
2448.Em options COMPAT_SVR4 .
2449.It Cd options EXTREME_DEBUG
2450Adds debugging functions callable from
2451.Xr ddb 4 .
2452The debug_pagetables, test_region and print_fe_map
2453functions print information about page tables for the SUN4M
2454platforms only.
2455.It Cd options EXTREME_EXTREME_DEBUG
2456Adds extra info to
2457.Em options EXTREME_DEBUG .
2458.It Cd options FPU_CONTEXT
2459Make
2460.Em options COMPAT_SVR4
2461getcontext and setcontext include floating point registers.
2462.It Cd options MAGMA_DEBUG
2463Adds debugging messages to the
2464.Xr magma 4
2465device.
2466.It Cd options RASTERCONS_FULLSCREEN
2467Use the entire screen for the console.
2468.It Cd options RASTERCONS_SMALLFONT
2469Use the Fixed font on the console, instead of the normal font.
2470.It Cd options SUN4
2471Support sun4 class machines.
2472.It Cd options SUN4C
2473Support sun4c class machines.
2474.It Cd options SUN4M
2475Support sun4m class machines.
2476.It Cd options SUN4_MMU3L
2477.\" XXX ???
2478Enable support for sun4 3-level MMU machines.
2479.It Cd options V9
2480Enable SPARC V9 assembler in
2481.Xr ddb 4 .
2482.El
2483.Ss sparc64-specific Options
2484.Bl -ohang
2485.It Cd options AUDIO_DEBUG
2486Enable simple event debugging of the logging of the
2487.Xr audio 4
2488device.
2489.It Cd options BLINK
2490Enable blinking of LED.
2491Blink rate is full cycle every N seconds for
2492N \*[Lt] then current load average.
2493See
2494.Xr getloadavg 3 .
2495.El
2496.Ss x68k-specific Options
2497.Bl -ohang
2498.It Cd options EXTENDED_MEMORY
2499Include support for extended memory, e.g., TS-6BE16 and 060turbo on-board.
2500.It Cd options JUPITER
2501Include support for Jupiter-X MPU accelerator
2502.It Cd options ZSCONSOLE,ZSCN_SPEED=value
2503Use the built-in serial port as the system-console.
2504Speed is specified in bps, defaults to 9600.
2505.It Cd options ITE_KERNEL_ATTR=value
2506Set the kernel message attribute for ITE.
2507Value, an integer, is a logical or of the following values:
2508.Bl -tag -width 4n -compact -offset indent
2509.It 1
2510color inversed
2511.It 2
2512underlined
2513.It 4
2514bolded
2515.El
2516.El
2517.\" The following requests should be uncommented and used where appropriate.
2518.\" .Sh FILES
2519.\" .Sh EXAMPLES
2520.Sh SEE ALSO
2521.Xr config 1 ,
2522.Xr gdb 1 ,
2523.Xr ktrace 1 ,
2524.Xr pmc 1 ,
2525.Xr quota 1 ,
2526.Xr vndcompress 1 ,
2527.Xr gettimeofday 2 ,
2528.Xr i386_get_mtrr 2 ,
2529.Xr i386_iopl 2 ,
2530.Xr msgctl 2 ,
2531.Xr msgget 2 ,
2532.Xr msgrcv 2 ,
2533.Xr msgsnd 2 ,
2534.Xr ntp_adjtime 2 ,
2535.Xr ntp_gettime 2 ,
2536.Xr semctl 2 ,
2537.Xr semget 2 ,
2538.Xr semop 2 ,
2539.Xr shmat 2 ,
2540.Xr shmctl 2 ,
2541.Xr shmdt 2 ,
2542.Xr shmget 2 ,
2543.Xr sysctl 3 ,
2544.Xr apm 4 ,
2545.Xr ddb 4 ,
2546.Xr inet 4 ,
2547.Xr iso 4 ,
2548.Xr lkm 4 ,
2549.Xr md 4 ,
2550.Xr ns 4 ,
2551.Xr pcibios 4 ,
2552.Xr pcmcia 4 ,
2553.Xr ppp 4 ,
2554.Xr userconf 4 ,
2555.Xr vnd 4 ,
2556.Xr wscons 4 ,
2557.Xr edquota 8 ,
2558.Xr init 8 ,
2559.Xr mdsetimage 8 ,
2560.Xr mount_cd9660 8 ,
2561.Xr mount_fdesc 8 ,
2562.Xr mount_kernfs 8 ,
2563.Xr mount_lfs 8 ,
2564.Xr mount_mfs 8 ,
2565.Xr mount_msdos 8 ,
2566.Xr mount_nfs 8 ,
2567.Xr mount_ntfs 8 ,
2568.Xr mount_null 8 ,
2569.Xr mount_portal 8 ,
2570.Xr mount_procfs 8 ,
2571.Xr mount_umap 8 ,
2572.Xr mount_union 8 ,
2573.Xr mrouted 8 ,
2574.Xr newfs_lfs 8 ,
2575.Xr ntpd 8 ,
2576.Xr quotaon 8 ,
2577.Xr rpc.rquotad 8 ,
2578.Xr sysctl 8
2579.Sh HISTORY
2580The
2581.Nm
2582man page first appeared in
2583.Nx 1.3 .
2584.Sh BUGS
2585The
2586.Em EON
2587option should be a pseudo-device, and is also very fragile.
2588