2004-12-08 21:33:32 +03:00
|
|
|
.\" $NetBSD: options.4,v 1.255 2004/12/08 18:33:32 peter Exp $
|
1996-10-21 03:58:12 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1996
|
|
|
|
.\" Perry E. Metzger. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
1998-09-23 02:53:06 +04:00
|
|
|
.\" must display the following acknowledgment:
|
1996-10-21 03:58:12 +04:00
|
|
|
.\" This product includes software developed for the NetBSD Project
|
|
|
|
.\" by Perry E. Metzger.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\"
|
2004-11-11 17:07:53 +03:00
|
|
|
.Dd November 11, 2004
|
1999-03-16 04:19:14 +03:00
|
|
|
.Os
|
1996-10-21 03:58:12 +04:00
|
|
|
.Dt OPTIONS 4
|
|
|
|
.Sh NAME
|
|
|
|
.Nm options
|
|
|
|
.Nd Miscellaneous kernel configuration options
|
|
|
|
.Sh SYNOPSIS
|
2003-07-02 21:33:33 +04:00
|
|
|
.Cd cinclude ...
|
|
|
|
.Cd config ...
|
|
|
|
.Cd [no] file-system ...
|
|
|
|
.Cd ident ...
|
|
|
|
.Cd include ...
|
|
|
|
.Cd [no] makeoptions ...
|
|
|
|
.Cd maxusers ...
|
|
|
|
.Cd [no] options ...
|
|
|
|
.Cd [no] pseudo-device ...
|
1996-10-21 03:58:12 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
This manual page describes a number of miscellaneous kernel
|
|
|
|
configuration options that may be specified in a kernel config
|
1998-04-30 12:50:03 +04:00
|
|
|
file.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr config 8
|
|
|
|
for information on how to configure and build kernels.
|
2003-07-02 21:33:33 +04:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar no
|
|
|
|
form removes a previously specified option.
|
|
|
|
.Ss Keywords
|
|
|
|
The following keywords are recognized in a kernel configuration file:
|
|
|
|
.Bl -ohang
|
|
|
|
.It Sy cinclude Xo
|
|
|
|
.Qq Ar filename
|
|
|
|
.Xc
|
|
|
|
Conditionally includes another kernel configuration file whose name is
|
|
|
|
.Ar filename ,
|
|
|
|
which may be double-quoted and may be an explicit path or relative to
|
|
|
|
the kernel source directory.
|
|
|
|
Failure to open the named file is ignored.
|
|
|
|
.It Sy config Xo
|
|
|
|
.Ar exec_name
|
|
|
|
.No root on
|
|
|
|
.Ar rootdev
|
|
|
|
.Op type Ar fstype
|
|
|
|
.Op dumps on Ar dumpdev
|
|
|
|
.Xc
|
|
|
|
Defines a configuration whose kernel executable is named
|
|
|
|
.Ar exec_name ,
|
|
|
|
normally
|
|
|
|
.Dq netbsd ,
|
|
|
|
with its root file system of type
|
|
|
|
.Ar fstype
|
|
|
|
on the device
|
|
|
|
.Ar rootdev ,
|
|
|
|
and optionally specifying the location of kernel core dumps on the device
|
|
|
|
.Ar dumpdev .
|
|
|
|
.Ar dev
|
|
|
|
or
|
|
|
|
.Ar dumpdev
|
|
|
|
and
|
|
|
|
.Ar fstype
|
|
|
|
may be specified as
|
|
|
|
.Dq \&? ,
|
|
|
|
which is a wild card.
|
|
|
|
The root
|
|
|
|
.Ar fstype
|
|
|
|
and
|
|
|
|
.Ar dumpdev
|
|
|
|
are optional and assumed to be wild carded if they are not specified.
|
|
|
|
.It Ar device_instance Xo
|
|
|
|
at
|
|
|
|
.Ar attachment
|
|
|
|
.Op Ar locators value Op ...
|
|
|
|
.Op flags Ar value
|
|
|
|
.Xc
|
|
|
|
Define an instance of the device driver
|
|
|
|
.Ar device_instance
|
|
|
|
that attaches to the bus or device named
|
|
|
|
.Ar attachment .
|
|
|
|
An
|
|
|
|
.Ar attachment
|
|
|
|
may require additional information on where the device can be found, such
|
|
|
|
as an address, channel, function, offset, and/or slot, referred to as
|
|
|
|
.Ar locators ,
|
|
|
|
whose
|
|
|
|
.Ar value
|
|
|
|
often may be a wild card,
|
|
|
|
.Dq \&? .
|
|
|
|
Some device drivers have one or more
|
|
|
|
.Ar flags
|
|
|
|
that can be adjusted to affect the way they operate.
|
|
|
|
.It Sy file-system Xo
|
|
|
|
.Ar fs_name Op , Ar fs_name Op ...
|
|
|
|
.Xc
|
|
|
|
Include support for the file-system
|
|
|
|
.Ar fs_name .
|
|
|
|
.It Sy ident Xo
|
|
|
|
.Qq Ar string
|
|
|
|
.Xc
|
|
|
|
Sets the kernel identification string to
|
|
|
|
.Ar string .
|
|
|
|
.It Sy include Xo
|
|
|
|
.Qq Ar filename
|
|
|
|
.Xc
|
|
|
|
Functions the same as
|
|
|
|
.Ar cinclude ,
|
|
|
|
except failure to open
|
|
|
|
.Ar filename
|
|
|
|
produces a fatal error.
|
|
|
|
.It Sy options Xo
|
|
|
|
.Ar option_name Op , Ar option_name=value Op ...
|
|
|
|
.Xc
|
|
|
|
Specifies (or sets) the option, or comma-separated list of options,
|
|
|
|
.Ar option_name .
|
|
|
|
Some options expect to be assigned a value, which may be an integer,
|
|
|
|
a double-quoted word, a bare word, or an empty string
|
|
|
|
.Pq Qq .
|
|
|
|
.Pp
|
2001-04-04 14:52:23 +04:00
|
|
|
.Em Note :
|
2003-07-02 21:33:33 +04:00
|
|
|
Options that are not defined by device definition files are passed to
|
|
|
|
the compile process as
|
|
|
|
.Fl D
|
|
|
|
flags to the C compiler.
|
|
|
|
.It Sy makeoptions Xo
|
|
|
|
.Ar name=value
|
|
|
|
.Xc
|
|
|
|
Defines a
|
|
|
|
.Xr make 1
|
|
|
|
macro
|
|
|
|
.Ar name
|
|
|
|
with the value
|
|
|
|
.Ar value
|
|
|
|
in the kernel Makefile.
|
|
|
|
.It Sy maxusers Xo
|
|
|
|
.Ar integer
|
|
|
|
.Xc
|
|
|
|
Set the maxusers variable in the kernel.
|
|
|
|
.It Sy no Xo
|
|
|
|
.Ar keyword Ar name Op Ar arguments Op ...
|
|
|
|
.Xc
|
|
|
|
For the
|
|
|
|
.Xr config 8
|
|
|
|
.Ar keywords
|
|
|
|
file-system, makeoptions, options, and pseudo-device,
|
|
|
|
.Ar no
|
2003-07-04 17:11:14 +04:00
|
|
|
removes the file-system, makeoption, options, or pseudo-device,
|
2003-07-02 21:33:33 +04:00
|
|
|
.Ar name .
|
|
|
|
This is useful when a kernel configuration file includes another which
|
|
|
|
has undesired options.
|
|
|
|
.Pp
|
|
|
|
For example, a local configuration file that wanted the kitchen sink, but
|
|
|
|
not COMPAT_09 or bridging, might be:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
include "arch/i386/conf/GENERIC"
|
|
|
|
no options COMPAT_09
|
|
|
|
no pseudo-device bridge
|
|
|
|
.Ed
|
|
|
|
.It Sy pseudo-device Xo
|
|
|
|
.Ar name
|
|
|
|
.Op Ar N
|
|
|
|
.Xc
|
|
|
|
Includes support for the pseudo-device
|
|
|
|
.Ar name .
|
2003-07-04 17:11:14 +04:00
|
|
|
Some pseudo-devices can have multiple or
|
2003-07-02 21:33:33 +04:00
|
|
|
.Ar N
|
|
|
|
instances.
|
|
|
|
.El
|
1996-10-21 03:58:12 +04:00
|
|
|
.Ss Compatibility Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options COMPAT_09
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 0.9 .
|
|
|
|
This enables support for
|
2003-07-02 21:33:33 +04:00
|
|
|
16-bit user, group, and process IDs (following revisions support
|
1996-10-21 03:58:12 +04:00
|
|
|
32-bit identifiers),
|
1998-04-28 10:00:51 +04:00
|
|
|
It also allows the use of the deprecated
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr getdomainname 3 ,
|
|
|
|
.Xr setdomainname 3 ,
|
1998-04-28 10:00:51 +04:00
|
|
|
and
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr uname 3
|
1998-04-28 10:00:51 +04:00
|
|
|
syscalls.
|
2003-07-02 21:33:33 +04:00
|
|
|
This option also allows using numeric file system identifiers rather
|
1998-04-28 10:00:51 +04:00
|
|
|
than strings.
|
|
|
|
Post
|
|
|
|
.Nx 0.9
|
|
|
|
versions use string identifiers.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options COMPAT_10
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 1.0 .
|
2003-07-02 21:33:33 +04:00
|
|
|
This option allows the use of the file system name of
|
1996-10-21 03:58:12 +04:00
|
|
|
.Dq ufs
|
|
|
|
as an alias for
|
|
|
|
.Dq ffs .
|
|
|
|
The name
|
|
|
|
.Dq ffs
|
1998-04-30 12:50:03 +04:00
|
|
|
should be used post 1.0 in
|
1996-10-21 03:58:12 +04:00
|
|
|
.Pa /etc/fstab
|
1998-04-28 10:00:51 +04:00
|
|
|
and other files.
|
|
|
|
It also adds old syscalls for the
|
1996-10-21 03:58:12 +04:00
|
|
|
.At V
|
1998-04-28 10:00:51 +04:00
|
|
|
shared memory interface.
|
|
|
|
This was changed post 1.0 to work on 64-bit architectures.
|
1998-04-30 12:50:03 +04:00
|
|
|
This option also enables
|
1996-10-21 03:58:12 +04:00
|
|
|
.Dq sgtty
|
|
|
|
compatibility, without which programs using the old interface produce
|
|
|
|
an
|
1997-09-28 00:09:42 +04:00
|
|
|
.Dq inappropriate ioctl
|
2001-07-03 20:41:33 +04:00
|
|
|
error, and
|
|
|
|
.Pa /dev/io
|
|
|
|
only works when this option is set in the kernel,
|
|
|
|
see
|
2001-07-03 20:42:10 +04:00
|
|
|
.Xr io 4
|
2001-09-04 03:03:29 +04:00
|
|
|
on ports that support it.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options COMPAT_11
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 1.1 .
|
|
|
|
This allows binaries running on the i386 port to gain direct access to
|
|
|
|
the io ports by opening
|
|
|
|
.Pa /dev/io
|
1998-04-28 10:00:51 +04:00
|
|
|
read/write.
|
1998-04-30 12:50:03 +04:00
|
|
|
This functionality was replaced by
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr i386_iopl 2
|
|
|
|
post 1.1.
|
|
|
|
On the
|
|
|
|
.Tn Atari
|
1998-04-28 10:00:51 +04:00
|
|
|
port, the location of the disk label was moved after 1.1.
|
|
|
|
When the
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em COMPAT_11
|
|
|
|
option is set, the kernel will read (pre) 1.1 style disk labels as a
|
1998-04-28 10:00:51 +04:00
|
|
|
last resort.
|
|
|
|
When a disklabel is re-written, the old style label will be replaced
|
|
|
|
with a post 1.1 style label.
|
2002-11-19 07:16:02 +03:00
|
|
|
This also enables the
|
2002-03-23 12:56:58 +03:00
|
|
|
.Em EXEC_ELF_NOTELESS
|
|
|
|
option.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options COMPAT_12
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 1.2 .
|
1997-06-14 22:33:11 +04:00
|
|
|
This allows the use of old syscalls for
|
1997-08-29 14:38:02 +04:00
|
|
|
.Fn reboot
|
|
|
|
and
|
1997-06-14 22:33:11 +04:00
|
|
|
.Fn swapon .
|
1997-08-29 14:38:02 +04:00
|
|
|
The syscall numbers were changed post 1.2 to add functionality to the
|
1998-04-28 10:00:51 +04:00
|
|
|
.Xr reboot 2
|
|
|
|
syscall, and the new
|
|
|
|
.Xr swapctl 2
|
1997-06-14 22:33:11 +04:00
|
|
|
interface was introduced.
|
2002-11-19 07:16:02 +03:00
|
|
|
This also enables the
|
2002-03-23 12:56:58 +03:00
|
|
|
.Em EXEC_ELF_NOTELESS
|
|
|
|
option.
|
1998-01-04 03:44:20 +03:00
|
|
|
.It Cd options COMPAT_13
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 1.3 .
|
|
|
|
This allows the use of old syscalls for
|
1998-08-29 19:32:07 +04:00
|
|
|
.Fn sigaltstack ,
|
|
|
|
and also enables the old
|
|
|
|
.Xr swapctl 2
|
|
|
|
command
|
|
|
|
.Dv SWAP_STATS
|
|
|
|
(now called
|
|
|
|
.Dv SWAP_OSTATS ) ,
|
|
|
|
which does not include the
|
|
|
|
.Fa se_path
|
|
|
|
member of
|
|
|
|
.Va struct swapent .
|
1999-07-30 04:49:15 +04:00
|
|
|
.It Cd options COMPAT_14
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 1.4 .
|
|
|
|
This allows some old
|
|
|
|
.Xr ioctl 2
|
|
|
|
on
|
|
|
|
.Xr wscons 4
|
2000-04-16 01:14:48 +04:00
|
|
|
to be performed, and allows the
|
|
|
|
.Dv NFSSVC_BIOD
|
|
|
|
mode of the
|
|
|
|
.Xr nfssvc 2
|
|
|
|
system call to be used for compatibility with the deprecated nfsiod program.
|
2003-09-22 21:13:32 +04:00
|
|
|
.It Cd options COMPAT_16
|
|
|
|
Enable binary compatibility with
|
|
|
|
.Nx 1.6 .
|
|
|
|
This allows the use of old signal trampoline code which has been deprecated
|
|
|
|
with the addition of
|
|
|
|
.Xr siginfo 5 .
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options COMPAT_43
|
|
|
|
Enables compatibility with
|
|
|
|
.Bx 4.3 .
|
1998-04-30 12:50:03 +04:00
|
|
|
This adds an old syscall for
|
1998-04-28 10:00:51 +04:00
|
|
|
.Xr lseek 2 .
|
|
|
|
It also adds the ioctls for
|
|
|
|
.Dv TIOCGETP
|
|
|
|
and
|
|
|
|
.Dv TIOCSETP .
|
|
|
|
The return values for
|
|
|
|
.Xr getpid 2 ,
|
|
|
|
.Xr getgid 2 ,
|
|
|
|
and
|
|
|
|
.Xr getuid 2
|
2003-07-02 21:33:33 +04:00
|
|
|
syscalls are modified as well, to return the parent's PID and
|
|
|
|
UID as well as the current process's.
|
1998-04-28 10:00:51 +04:00
|
|
|
It also enables the deprecated
|
|
|
|
.Dv NTTYDISC
|
|
|
|
terminal line discipline.
|
1998-04-30 12:50:03 +04:00
|
|
|
It also provides backwards compatibility with
|
1996-10-21 03:58:12 +04:00
|
|
|
.Dq old
|
|
|
|
SIOC[GS]IF{ADDR,DSTADDR,BRDADDR,NETMASK} interface ioctls, including
|
|
|
|
binary compatibility with code written before the introduction of the
|
|
|
|
sa_len field in sockaddrs.
|
|
|
|
It also enables
|
1998-04-30 12:50:03 +04:00
|
|
|
support for some older pre
|
1998-02-06 08:54:12 +03:00
|
|
|
.Bx 4.4
|
|
|
|
socket calls.
|
2004-11-11 16:38:18 +03:00
|
|
|
.It Cd options COMPAT_BSDPTY
|
|
|
|
This option is currenty on by default and enables the pty multiplexor
|
|
|
|
.Xr ptm 4
|
|
|
|
and
|
|
|
|
.Xr ptmx 4
|
2004-11-11 17:07:53 +03:00
|
|
|
to find and use ptys named
|
2004-12-08 21:33:32 +03:00
|
|
|
.Pa /dev/ptyXX
|
2004-11-11 16:38:18 +03:00
|
|
|
(master) and
|
2004-12-08 21:33:32 +03:00
|
|
|
.Pa /dev/ttyXX
|
2004-11-11 16:38:18 +03:00
|
|
|
(slave).
|
|
|
|
Eventually this option will become optional as ptyfs based pseudo-ttys become
|
|
|
|
the default, see
|
|
|
|
.Xr mount_ptyfs 8 .
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options COMPAT_SVR4
|
|
|
|
On those architectures that support it, this enables binary
|
|
|
|
compatibility with
|
|
|
|
.At V.4
|
1998-04-28 10:00:51 +04:00
|
|
|
applications built for the same architecture.
|
2002-11-16 15:28:04 +03:00
|
|
|
This currently includes the i386, m68k, and sparc ports.
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_LINUX
|
|
|
|
On those architectures that support it, this enables binary
|
1998-04-30 12:50:03 +04:00
|
|
|
compatibility with Linux ELF and
|
|
|
|
.Xr a.out 5
|
1998-04-28 10:00:51 +04:00
|
|
|
applications built for the same architecture.
|
2002-11-16 15:28:04 +03:00
|
|
|
This currently includes the alpha, arm, i386, m68k, mips, and powerpc
|
2002-10-16 23:48:33 +04:00
|
|
|
ports.
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_SUNOS
|
|
|
|
On those architectures that support it, this enables binary
|
1998-04-28 10:00:51 +04:00
|
|
|
compatibility with
|
|
|
|
.Tn SunOS 4.1
|
|
|
|
applications built for the same architecture.
|
2001-03-05 05:35:22 +03:00
|
|
|
This currently includes the sparc, sparc64 and most or all m68k ports.
|
|
|
|
Note that the sparc64 requires the
|
|
|
|
.Em COMPAT_NETBSD32
|
|
|
|
option for 64-bit kernels, in addition to this option.
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_ULTRIX
|
|
|
|
On those architectures that support it, this enables binary
|
1998-04-28 10:00:51 +04:00
|
|
|
compatibility with
|
2003-03-31 01:20:17 +04:00
|
|
|
.Tn ULTRIX
|
1998-04-28 10:00:51 +04:00
|
|
|
applications built for the same architecture.
|
|
|
|
This currently is limited to the pmax.
|
|
|
|
The functionality of this option is unknown.
|
2002-11-16 14:35:47 +03:00
|
|
|
.It Cd options COMPAT_DARWIN
|
|
|
|
On those architectures that support it, this enables binary compatibility with
|
|
|
|
.Tn Darwin
|
2002-11-16 15:28:04 +03:00
|
|
|
applications built for the same architecture.
|
|
|
|
This feature is highly experimental, it requires COMPAT_MACH and
|
2002-11-16 14:35:47 +03:00
|
|
|
EXEC_MACHO and it is currently limited to i386 and powerpc ports of
|
|
|
|
.Nx .
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_FREEBSD
|
|
|
|
On those architectures that support it, this enables binary
|
1998-02-06 08:54:12 +03:00
|
|
|
compatibility with
|
|
|
|
.Fx
|
1998-04-28 10:00:51 +04:00
|
|
|
applications built for the same architecture.
|
1999-06-13 01:22:11 +04:00
|
|
|
At the moment this is limited to the i386 port.
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_HPUX
|
|
|
|
On those architectures that support it, this enables binary
|
1998-04-28 10:00:51 +04:00
|
|
|
compatibility with
|
|
|
|
.Tn HP/UX
|
|
|
|
applications built for the same architecture.
|
|
|
|
This is limited to the hp300 port, and has some known bugs.
|
|
|
|
A limited set of programs do work.
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_IBCS2
|
|
|
|
On those architectures that support it, this enables binary
|
2000-04-23 22:58:46 +04:00
|
|
|
compatibility with iBCS2 or SVR3 applications built for the same architecture.
|
|
|
|
This is currently limited to the i386 and vax ports.
|
2001-12-01 00:26:26 +03:00
|
|
|
.It Cd options COMPAT_IRIX
|
|
|
|
On those architectures that support it, this enables binary
|
2001-12-01 19:17:45 +03:00
|
|
|
compatibility with IRIX o32 binaries built for the same architecture.
|
2002-03-04 09:00:15 +03:00
|
|
|
This feature is experimental, and it is currently limited to
|
2004-05-12 02:42:47 +04:00
|
|
|
the sgimips port.
|
2002-11-16 14:35:47 +03:00
|
|
|
.It Cd options COMPAT_MACH
|
|
|
|
On those architectures that support it, this enables the emulation of
|
|
|
|
Mach kernel traps for binaries built for the same architecture.
|
|
|
|
This features is highly experimental and it is currently
|
|
|
|
limited to i386 and powerpc ports of
|
|
|
|
.Nx .
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options COMPAT_OSF1
|
|
|
|
On those architectures that support it, this enables binary
|
1998-04-28 10:00:51 +04:00
|
|
|
compatibility with
|
|
|
|
.Tn Digital
|
|
|
|
.Ux
|
|
|
|
.Po
|
|
|
|
formerly
|
|
|
|
.Tn OSF/1
|
|
|
|
.Pc
|
|
|
|
applications built for the same architecture.
|
1999-06-13 01:22:11 +04:00
|
|
|
This is currently limited to the alpha port.
|
1997-06-25 07:13:00 +04:00
|
|
|
.It Cd options COMPAT_NOMID
|
1998-04-30 12:50:03 +04:00
|
|
|
Enable compatibility with
|
|
|
|
.Xr a.out 5
|
|
|
|
executables that lack a machine ID.
|
|
|
|
This includes
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx 0.8 Ns 's
|
|
|
|
ZMAGIC format, and 386BSD and BSDI's
|
1998-04-30 12:50:03 +04:00
|
|
|
QMAGIC, NMAGIC, and OMAGIC
|
|
|
|
.Xr a.out 5
|
|
|
|
formats.
|
2001-03-05 05:35:22 +03:00
|
|
|
.It Cd options COMPAT_NETBSD32
|
|
|
|
On those architectures that support it, this enables binary
|
|
|
|
compatibility with 32-bit applications built for the same architecture.
|
2004-07-22 19:12:23 +04:00
|
|
|
This is currently limited to the amd64 and sparc64 ports, and only
|
|
|
|
applicable for 64-bit kernels.
|
2001-03-05 05:35:22 +03:00
|
|
|
.It Cd options COMPAT_SVR4_32
|
|
|
|
On those architectures that support it, this enables binary
|
|
|
|
compatibility with 32-bit SVR4 applications built for the same architecture.
|
|
|
|
This is currently limited to the sparc64 port, and only applicable for
|
|
|
|
64-bit kernels.
|
2001-04-07 16:31:17 +04:00
|
|
|
.It Cd options COMPAT_AOUT_M68K
|
|
|
|
On m68k architectures which have switched to ELF,
|
|
|
|
this enable binary compatibility with
|
|
|
|
.Nx Ns Tn /m68k
|
|
|
|
.Xr a.out 5
|
|
|
|
executables on
|
|
|
|
.Nx Ns Tn /m68k
|
|
|
|
ELF kernel.
|
|
|
|
This handles alignment incompatibility of m68k ABI between
|
|
|
|
a.out and ELF which causes the structure padding differences.
|
|
|
|
Currently only some system calls which use
|
|
|
|
.Va struct stat
|
|
|
|
are adjusted and some binaries which use
|
|
|
|
.Xr sysctl 3
|
|
|
|
to retrieve network details would not work properly.
|
2002-11-16 14:35:47 +03:00
|
|
|
.It Cd options EXEC_MACHO
|
2002-11-16 15:28:04 +03:00
|
|
|
On those architectures that support it, this adds support for running
|
2002-11-16 14:42:33 +03:00
|
|
|
Mach-O executables.
|
2002-11-16 15:28:04 +03:00
|
|
|
This is currently limited to the i386 and powerpc ports of
|
2002-11-16 14:35:47 +03:00
|
|
|
.Nx .
|
2002-03-23 12:56:58 +03:00
|
|
|
.It Cd options EXEC_ELF_NOTELESS
|
2001-12-18 00:03:20 +03:00
|
|
|
Run unidentified ELF binaries as
|
|
|
|
.Nx
|
|
|
|
binaries.
|
|
|
|
This might be needed for very old
|
|
|
|
.Nx
|
|
|
|
ELF binaries on some archs.
|
|
|
|
These old binaries didn't contain an appropriate
|
2001-12-16 23:44:11 +03:00
|
|
|
.Li .note.netbsd.ident
|
2001-12-18 00:03:20 +03:00
|
|
|
section, and thus can't be identified by the kernel as
|
|
|
|
.Nx
|
|
|
|
binaries otherwise.
|
|
|
|
Beware - if this option is on, the kernel would run
|
2001-12-16 23:44:11 +03:00
|
|
|
.Em any
|
2001-12-18 00:03:20 +03:00
|
|
|
unknown ELF binaries as if they were
|
|
|
|
.Nx
|
|
|
|
binaries.
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
|
|
|
.Ss Debugging Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options DDB
|
1998-04-28 10:00:51 +04:00
|
|
|
Compiles in a kernel debugger for diagnosing kernel problems.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr ddb 4
|
1998-04-30 12:50:03 +04:00
|
|
|
for details.
|
2001-04-04 14:52:23 +04:00
|
|
|
.Em NOTE :
|
1996-10-21 03:58:12 +04:00
|
|
|
not available on all architectures.
|
1998-10-30 00:22:32 +03:00
|
|
|
.It Cd options DDB_FROMCONSOLE=integer
|
|
|
|
If set to non-zero, DDB may be entered by sending a break on a serial
|
|
|
|
console or by a special key sequence on a graphics console.
|
2003-05-06 14:21:13 +04:00
|
|
|
A value of "0" ignores console breaks or key sequences.
|
|
|
|
If not explicitly specified, the default value is "1".
|
1998-10-30 00:22:32 +03:00
|
|
|
Note that this sets the value of the
|
|
|
|
.Em ddb.fromconsole
|
|
|
|
.Xr sysctl 3
|
|
|
|
variable which may be changed at run time -- see
|
|
|
|
.Xr sysctl 8
|
2001-04-04 14:52:23 +04:00
|
|
|
for details.
|
1997-11-17 02:56:18 +03:00
|
|
|
.It Cd options DDB_HISTORY_SIZE=integer
|
|
|
|
If this is non-zero, enable history editing in the kernel debugger
|
|
|
|
and set the size of the history to this value.
|
1997-01-09 08:46:49 +03:00
|
|
|
.It Cd options DDB_ONPANIC
|
2001-09-22 09:38:30 +04:00
|
|
|
If set to non-zero, DDB will be entered upon kernel panic.
|
1998-04-30 12:50:03 +04:00
|
|
|
The default if not specified is "1".
|
|
|
|
Note that this sets the value of the
|
1997-03-18 09:15:18 +03:00
|
|
|
.Em ddb.onpanic
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr sysctl 3
|
|
|
|
variable which may be changed at run time -- see
|
1997-03-18 09:15:18 +03:00
|
|
|
.Xr sysctl 8
|
|
|
|
for details.
|
2000-08-03 04:34:08 +04:00
|
|
|
.It Cd options DDB_BREAK_CHAR=integer
|
|
|
|
This option overrides the using break to enter the kernel debugger
|
|
|
|
on the serial console.
|
|
|
|
The value given will is the ascii value to be used instead.
|
|
|
|
This is currently only supported by the com driver.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options KGDB
|
|
|
|
Compiles in a remote kernel debugger stub for diagnosing kernel problems
|
|
|
|
using the
|
|
|
|
.Dq remote target
|
1998-04-30 12:50:03 +04:00
|
|
|
feature of gdb.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr gdb 1
|
1998-04-30 12:50:03 +04:00
|
|
|
for details.
|
2001-04-04 14:52:23 +04:00
|
|
|
.Em NOTE :
|
1996-10-21 03:58:12 +04:00
|
|
|
not available on all architectures.
|
2001-11-20 11:49:31 +03:00
|
|
|
.It Cd options KGDB_DEV
|
|
|
|
Device number
|
|
|
|
.Po
|
|
|
|
as a
|
|
|
|
.Dv dev_t
|
|
|
|
.Pc
|
|
|
|
of kgdb device.
|
|
|
|
.It Cd options KGDB_DEVADDR
|
|
|
|
Memory address of kgdb device.
|
|
|
|
.It Cd options KGDB_DEVMODE
|
|
|
|
Permissions of kgdb device.
|
|
|
|
.It Cd options KGDB_DEVNAME
|
|
|
|
Device name of kgdb device.
|
|
|
|
.It Cd options KGDB_DEVRATE
|
|
|
|
Baud rate of kgdb device.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd makeoptions DEBUG="-g"
|
2004-12-08 21:33:32 +03:00
|
|
|
The
|
|
|
|
.Fl g
|
|
|
|
flag causes
|
1996-10-21 03:58:12 +04:00
|
|
|
.Pa netbsd.gdb
|
|
|
|
to be built in addition to
|
|
|
|
.Pa netbsd .
|
|
|
|
.Pa netbsd.gdb
|
|
|
|
is useful for debugging kernel crash dumps with gdb.
|
|
|
|
See
|
|
|
|
.Xr gdb 1
|
1998-04-30 12:50:03 +04:00
|
|
|
for details.
|
|
|
|
This also turns on
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em options DEBUG
|
|
|
|
(which see).
|
|
|
|
.It Cd options DEBUG
|
1998-04-30 12:50:03 +04:00
|
|
|
Turns on miscellaneous kernel debugging.
|
|
|
|
Since options are turned into preprocessor defines (see above),
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em options DEBUG
|
1998-04-30 12:50:03 +04:00
|
|
|
is equivalent to doing a
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em #define DEBUG
|
1998-04-30 12:50:03 +04:00
|
|
|
throughout the kernel.
|
|
|
|
Much of the kernel has
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em #ifdef DEBUG
|
1998-04-30 12:50:03 +04:00
|
|
|
conditionalized debugging code.
|
|
|
|
Note that many parts of the kernel (typically device drivers) include their own
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em #ifdef XXX_DEBUG
|
|
|
|
conditionals instead.
|
1997-08-28 11:12:35 +04:00
|
|
|
This option also turns on certain other options,
|
|
|
|
which may decrease system performance.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options DIAGNOSTIC
|
1998-04-30 12:50:03 +04:00
|
|
|
Adds code to the kernel that does internal consistency checks.
|
|
|
|
This code will cause the kernel to panic if corruption of internal data
|
2002-10-16 23:48:33 +04:00
|
|
|
structures is detected.
|
|
|
|
These checks can decrease performance up to 15%.
|
2002-07-03 06:19:55 +04:00
|
|
|
.It Cd options KSTACK_CHECK_MAGIC
|
|
|
|
Check kernel stack usage and panic if stack overflow is detected.
|
|
|
|
This check is performance sensitive because it scans stack on each context
|
|
|
|
switch.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options KTRACE
|
|
|
|
Add hooks for the system call tracing facility, which allows users to
|
1998-04-30 12:50:03 +04:00
|
|
|
watch the system call invocation behavior of processes.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr ktrace 1
|
|
|
|
for details.
|
1997-09-19 23:38:57 +04:00
|
|
|
.It Cd options MSGBUFSIZE=integer
|
1998-04-30 12:50:03 +04:00
|
|
|
This option sets the size of the kernel message buffer.
|
|
|
|
This buffer holds the kernel output of
|
1997-09-19 23:38:57 +04:00
|
|
|
.Fn printf
|
|
|
|
when not (yet) read by
|
|
|
|
.Xr syslogd 8 .
|
|
|
|
This is particularly useful when the system has crashed and you wish to lookup
|
1998-04-30 12:50:03 +04:00
|
|
|
the kernel output from just before the crash.
|
|
|
|
Also, since the autoconfig output becomes more and more verbose,
|
|
|
|
it sometimes happens that the message buffer overflows before
|
1997-09-19 23:38:57 +04:00
|
|
|
.Xr syslogd 8
|
|
|
|
was able to read it.
|
|
|
|
Note that not all systems are capable of obtaining a variable sized message
|
1998-04-30 12:50:03 +04:00
|
|
|
buffer.
|
|
|
|
There are also some systems on which memory contents are not preserved
|
1998-11-15 20:52:43 +03:00
|
|
|
across reboots.
|
1998-01-22 01:54:56 +03:00
|
|
|
.It Cd options MALLOCLOG
|
|
|
|
Enables an event log for
|
|
|
|
.Xr malloc 9 .
|
|
|
|
Useful for tracking down
|
|
|
|
.Dq Data modified on freelist
|
|
|
|
and
|
|
|
|
.Dq multiple free
|
|
|
|
problems.
|
|
|
|
.It Cd options MALLOCLOGSIZE=integer
|
1998-04-30 12:50:03 +04:00
|
|
|
Defines the number of entries in the malloc log.
|
|
|
|
Default is 100000 entries.
|
2002-06-18 10:11:29 +04:00
|
|
|
.It Cd options SYSTRACE
|
|
|
|
Add hooks for the system call policy facility.
|
|
|
|
See
|
|
|
|
.Xr systrace 1
|
|
|
|
for details.
|
2001-09-22 09:38:30 +04:00
|
|
|
.It Cd options UVMHIST
|
2001-09-22 20:39:25 +04:00
|
|
|
Enables the UVM history logs, which create in-memory traces of
|
2002-10-16 23:48:33 +04:00
|
|
|
various UVM activities.
|
|
|
|
These logs can be displayed be calling
|
2001-09-22 09:38:30 +04:00
|
|
|
.Fn uvmhist_dump
|
|
|
|
or
|
|
|
|
.Fn uvm_hist
|
|
|
|
with appropriate arguments from DDB.
|
|
|
|
See the kernel source file sys/uvm/uvm_stat.c for details.
|
|
|
|
.It Cd options UVMHIST_PRINT
|
|
|
|
Prints the UVM history logs on the system console as entries are added.
|
|
|
|
Note that the output is
|
|
|
|
.Em extremely
|
|
|
|
voluminous, so this option is really only useful for debugging
|
|
|
|
the very earliest parts of kernel initialization.
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
|
|
|
.Ss File Systems
|
|
|
|
.Bl -ohang
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system FFS
|
1996-10-21 03:58:12 +04:00
|
|
|
Includes code implementing the Berkeley Fast File System
|
|
|
|
.Em ( FFS ) .
|
|
|
|
Most machines need this if they are not running diskless.
|
1997-06-12 13:09:11 +04:00
|
|
|
.It Cd file-system EXT2FS
|
|
|
|
Includes code implementing the Second Extended File System
|
2003-09-08 22:06:40 +04:00
|
|
|
.Em ( EXT2FS ) ,
|
|
|
|
revision 0 and revision 1 with the
|
2000-01-28 20:19:36 +03:00
|
|
|
.Em filetype
|
|
|
|
and
|
2000-11-03 01:31:02 +03:00
|
|
|
.Em sparse_super
|
2002-10-16 23:48:33 +04:00
|
|
|
options.
|
|
|
|
This is the most commonly used file system on the Linux operating system,
|
|
|
|
and is provided here for compatibility.
|
1998-04-30 12:50:03 +04:00
|
|
|
Some of the specific features of
|
|
|
|
.Em EXT2FS
|
|
|
|
like the "behavior on errors" are not implemented.
|
|
|
|
This file system can't be used with UID or GID greater than 65535.
|
|
|
|
See
|
1997-06-12 13:09:11 +04:00
|
|
|
.Xr mount_ext2fs 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system LFS
|
1998-03-19 10:40:04 +03:00
|
|
|
.Em [EXPERIMENTAL]
|
1998-04-30 12:50:03 +04:00
|
|
|
Include the Log-structured File System
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em ( LFS ) .
|
|
|
|
See
|
|
|
|
.Xr mount_lfs 8
|
|
|
|
and
|
2001-04-04 14:52:23 +04:00
|
|
|
.Xr newfs_lfs 8
|
1996-10-21 03:58:12 +04:00
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system MFS
|
1998-04-30 12:50:03 +04:00
|
|
|
Include the Memory File System
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em ( MFS ) .
|
|
|
|
This file system stores files in swappable memory, and produces
|
|
|
|
notable performance improvements when it is used as the file store
|
|
|
|
for
|
|
|
|
.Pa /tmp
|
1998-04-30 12:50:03 +04:00
|
|
|
and similar file systems.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_mfs 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system NFS
|
1998-04-30 12:50:03 +04:00
|
|
|
Include the client side of the Network File System
|
|
|
|
.Pq Tn NFS
|
|
|
|
remote file sharing protocol.
|
1997-01-31 09:30:54 +03:00
|
|
|
Although the bulk of the code implementing
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn NFS
|
|
|
|
is kernel based, several user level daemons are needed for it to work.
|
|
|
|
See
|
1997-01-31 09:30:54 +03:00
|
|
|
.Xr mount_nfs 8
|
1996-10-21 03:58:12 +04:00
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system CD9660
|
1998-04-30 12:50:03 +04:00
|
|
|
Includes code for the
|
|
|
|
.Tn ISO
|
|
|
|
9660 + Rock Ridge file system, which is the standard file system on many
|
|
|
|
.Tn CD-ROM
|
|
|
|
discs.
|
|
|
|
Useful primarily if you have a
|
|
|
|
.Tn CD-ROM
|
|
|
|
drive.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_cd9660 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system MSDOSFS
|
1996-10-21 03:58:12 +04:00
|
|
|
Includes the
|
|
|
|
.Tn MS-DOS
|
|
|
|
FAT file system, which is reportedly still used
|
|
|
|
by unfortunate people who have not heard about
|
|
|
|
.Nx .
|
1998-04-30 12:50:03 +04:00
|
|
|
Also implements the
|
1996-10-21 03:58:12 +04:00
|
|
|
.Tn Windows 95
|
|
|
|
extensions to the same, which permit the use of longer, mixed case
|
1998-04-30 12:50:03 +04:00
|
|
|
file names.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_msdos 8
|
|
|
|
and
|
|
|
|
.Xr fsck_msdos 8
|
|
|
|
for details.
|
1999-07-30 13:54:57 +04:00
|
|
|
.It Cd file-system NTFS
|
2001-10-13 04:15:53 +04:00
|
|
|
.Em [EXPERIMENTAL]
|
|
|
|
Includes code for the
|
1999-12-17 06:55:52 +03:00
|
|
|
.Tn Microsoft Windows NT
|
1999-07-30 13:54:57 +04:00
|
|
|
file system.
|
|
|
|
See
|
|
|
|
.Xr mount_ntfs 8
|
1999-12-17 06:55:52 +03:00
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system FDESC
|
1996-10-21 03:58:12 +04:00
|
|
|
Includes code for a file system, conventionally mounted on
|
|
|
|
.Pa /dev/fd ,
|
|
|
|
which permits access to the per-process file descriptor space via
|
|
|
|
special files in the file system.
|
|
|
|
See
|
|
|
|
.Xr mount_fdesc 8
|
|
|
|
for details.
|
|
|
|
Note that this facility is redundant, and thus unneeded on most
|
|
|
|
.Nx
|
|
|
|
systems, since the
|
|
|
|
.Xr fd 4
|
2003-05-06 23:03:21 +04:00
|
|
|
pseudo-device driver already provides identical functionality.
|
1998-04-30 12:50:03 +04:00
|
|
|
On most
|
1996-10-21 03:58:12 +04:00
|
|
|
.Nx
|
|
|
|
systems, instances of
|
|
|
|
.Xr fd 4
|
|
|
|
are mknoded under
|
|
|
|
.Pa /dev/fd/
|
|
|
|
and on
|
|
|
|
.Pa /dev/stdin ,
|
|
|
|
.Pa /dev/stdout ,
|
|
|
|
and
|
|
|
|
.Pa /dev/stderr .
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system KERNFS
|
1996-10-21 03:58:12 +04:00
|
|
|
Includes code which permits the mounting of a special file system
|
|
|
|
(normally mounted on
|
|
|
|
.Pa /kern )
|
|
|
|
in which files representing various kernel variables and parameters
|
|
|
|
may be found.
|
|
|
|
See
|
|
|
|
.Xr mount_kernfs 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system NULLFS
|
1998-04-30 12:50:03 +04:00
|
|
|
Includes code for a loopback file system.
|
|
|
|
This permits portions of the file hierarchy to be re-mounted in other places.
|
|
|
|
The code really exists to provide an example of a stackable file system layer.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_null 8
|
|
|
|
for details.
|
2000-02-27 04:29:48 +03:00
|
|
|
.It Cd file-system OVERLAY
|
|
|
|
Includes code for a file system filter.
|
|
|
|
This permits the overlay file system to intercept all access to an underlying
|
2002-10-16 23:48:33 +04:00
|
|
|
file system.
|
|
|
|
This file system is intended to serve as an example of a stacking file
|
|
|
|
system which has a need to interpose itself between an underlying file
|
|
|
|
system and all other access.
|
2000-02-27 04:29:48 +03:00
|
|
|
See
|
|
|
|
.Xr mount_overlay 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system PORTAL
|
1998-03-19 10:40:04 +03:00
|
|
|
.Em [EXPERIMENTAL]
|
2003-07-02 21:33:33 +04:00
|
|
|
Includes the portal file system.
|
1998-04-30 12:50:03 +04:00
|
|
|
This permits interesting tricks like opening
|
|
|
|
.Tn TCP
|
|
|
|
sockets by opening files in the file system.
|
|
|
|
The portal file system is conventionally mounted on
|
1996-10-21 03:58:12 +04:00
|
|
|
.Pa /p
|
1998-04-30 12:50:03 +04:00
|
|
|
and is partially implemented by a special daemon.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_portal 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system PROCFS
|
1996-10-21 03:58:12 +04:00
|
|
|
Includes code for a special file system (conventionally mounted on
|
|
|
|
.Pa /proc )
|
1998-04-30 12:50:03 +04:00
|
|
|
in which the process space becomes visible in the file system.
|
|
|
|
Among
|
1996-10-21 03:58:12 +04:00
|
|
|
other things, the memory spaces of processes running on the system are
|
|
|
|
visible as files, and signals may be sent to processes by writing to
|
|
|
|
.Pa ctl
|
1998-04-30 12:50:03 +04:00
|
|
|
files in the procfs namespace.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_procfs 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system UMAPFS
|
2003-07-02 21:33:33 +04:00
|
|
|
Includes a loopback file system in which user and group IDs may be
|
1996-10-21 03:58:12 +04:00
|
|
|
remapped -- this can be useful when mounting alien file systems with
|
2003-07-02 21:33:33 +04:00
|
|
|
different UIDs and GIDs than the local system.
|
1996-10-21 03:58:12 +04:00
|
|
|
See
|
|
|
|
.Xr mount_umap 8
|
|
|
|
for details.
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd file-system UNION
|
1998-03-19 10:40:04 +03:00
|
|
|
.Em [EXPERIMENTAL]
|
1996-10-21 03:58:12 +04:00
|
|
|
Includes code for the union file system, which permits directories to
|
|
|
|
be mounted on top of each other in such a way that both file systems
|
|
|
|
remain visible -- this permits tricks like allowing writing (and the
|
1998-04-30 12:50:03 +04:00
|
|
|
deleting of files) on a read-only file system like a
|
|
|
|
.Tn CD-ROM
|
|
|
|
by mounting a local writable file system on top of the read-only file system.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_union 8
|
|
|
|
for details.
|
1998-09-28 21:14:31 +04:00
|
|
|
.It Cd file-system CODA
|
|
|
|
.Em [EXPERIMENTAL]
|
|
|
|
Includes code for the Coda file system.
|
2002-10-16 23:48:33 +04:00
|
|
|
Coda is a distributed file system like NFS and AFS.
|
|
|
|
It is freely available, like NFS, but it functions much like AFS in being a
|
2001-09-22 12:43:28 +04:00
|
|
|
.Dq stateful
|
2002-10-16 23:48:33 +04:00
|
|
|
file system.
|
|
|
|
Both Coda and AFS cache files on your local machine to improve performance.
|
|
|
|
Then Coda goes a step further than AFS by letting you access the cached
|
|
|
|
files when there is no available network, viz. disconnected laptops and
|
|
|
|
network outages.
|
|
|
|
In Coda, both the client and server are outside the kernel which makes
|
|
|
|
them easier to experiment with.
|
|
|
|
Coda is available for several UNIX and non-UNIX platforms.
|
1998-09-28 21:14:31 +04:00
|
|
|
See http://www.coda.cs.cmu.edu for more details.
|
|
|
|
NOTE: You also need to enable the pseudo-device, vcoda, for the Coda
|
2003-07-02 21:33:33 +04:00
|
|
|
file system to work.
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
|
|
|
.Ss File System Options
|
|
|
|
.Bl -ohang
|
1997-01-31 09:30:54 +03:00
|
|
|
.It Cd options NFSSERVER
|
|
|
|
Include the server side of the
|
|
|
|
.Em NFS
|
|
|
|
(Network File System) remote file sharing protocol.
|
|
|
|
Although the bulk of the code implementing
|
|
|
|
.Em NFS
|
|
|
|
is kernel based, several user level daemons are needed for it to
|
1998-04-30 12:50:03 +04:00
|
|
|
work.
|
|
|
|
See
|
1997-01-31 09:30:54 +03:00
|
|
|
.Xr mountd 8
|
|
|
|
and
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr nfsd 8
|
1997-01-31 09:30:54 +03:00
|
|
|
for details.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options QUOTA
|
1998-04-30 12:50:03 +04:00
|
|
|
Enables kernel support for file system quotas.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr quotaon 8 ,
|
|
|
|
.Xr edquota 8 ,
|
|
|
|
and
|
|
|
|
.Xr quota 1
|
1998-04-30 12:50:03 +04:00
|
|
|
for details.
|
|
|
|
Note that quotas only work on
|
1996-10-21 03:58:12 +04:00
|
|
|
.Dq ffs
|
|
|
|
file systems, although
|
|
|
|
.Xr rpc.rquotad 8
|
1998-04-30 12:50:03 +04:00
|
|
|
permits them to be accessed over
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em NFS .
|
1998-03-18 20:17:06 +03:00
|
|
|
.It Cd options FFS_EI
|
2000-03-20 14:52:34 +03:00
|
|
|
Enable ``Endian-Independent'' FFS support.
|
2003-07-02 21:33:33 +04:00
|
|
|
This allows a system to mount an FFS file system created for another
|
|
|
|
architecture, at a small performance cost for all FFS file systems.
|
1998-03-19 10:40:04 +03:00
|
|
|
See also
|
1998-03-18 20:17:06 +03:00
|
|
|
.Xr newfs 8 ,
|
|
|
|
.Xr fsck_ffs 8 ,
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr dumpfs 8
|
2003-07-02 21:33:33 +04:00
|
|
|
for file system byte order status and manipulation.
|
1997-01-30 13:44:23 +03:00
|
|
|
.It Cd options NVNODE=integer
|
|
|
|
This option sets the size of the cache used by the name-to-inode translation
|
|
|
|
routines, (a.k.a. the
|
|
|
|
.Fn namei
|
1998-04-30 12:50:03 +04:00
|
|
|
cache, though called by many other names in the kernel source).
|
|
|
|
By default, this cache has
|
|
|
|
.Dv NPROC
|
|
|
|
(set as 20 + 16 * MAXUSERS) * (80 + NPROC / 8) entries.
|
|
|
|
A reasonable way to derive a value of
|
|
|
|
.Dv NVNODE ,
|
|
|
|
should you notice a large number of namei cache misses with a tool such as
|
1997-01-30 13:44:23 +03:00
|
|
|
.Xr systat 1 ,
|
|
|
|
is to examine your system's current computed value with
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr sysctl 8 ,
|
1997-01-30 13:44:23 +03:00
|
|
|
(which calls this parameter "kern.maxvnodes") and to increase this value
|
|
|
|
until either the namei cache hit rate improves or it is determined that
|
|
|
|
your system does not benefit substantially from an increase in the size of
|
|
|
|
the namei cache.
|
2001-03-30 02:42:48 +04:00
|
|
|
.It Cd options NAMECACHE_ENTER_REVERSE
|
2002-02-13 11:17:26 +03:00
|
|
|
Causes the namei cache to always enter a reverse mapping (vnode -\*[Gt] name)
|
2002-10-16 23:48:33 +04:00
|
|
|
as well as a normal one.
|
|
|
|
Normally, this is already done for directory vnodes, to speed up the getcwd
|
|
|
|
operation.
|
|
|
|
This option will cause longer hash chains in the reverse cache, and thus
|
|
|
|
slow down getcwd somewhat.
|
|
|
|
However, it does make vnode -\*[Gt] path translations possible in some cases.
|
|
|
|
For now, only useful if strict /proc/#/maps emulation for Linux binaries is
|
|
|
|
required.
|
1997-06-12 13:09:11 +04:00
|
|
|
.It Cd options EXT2FS_SYSTEM_FLAGS
|
|
|
|
This option changes the behavior of the APPEND and IMMUTABLE flags
|
|
|
|
for a file on an
|
1998-04-30 12:50:03 +04:00
|
|
|
.Em EXT2FS
|
2003-07-02 21:33:33 +04:00
|
|
|
file system.
|
1998-04-30 12:50:03 +04:00
|
|
|
Without this option, the superuser or owner of the file can
|
|
|
|
set and clear them.
|
|
|
|
With this option, only the superuser can set them, and
|
|
|
|
they can't be cleared if the securelevel is greater than 0.
|
|
|
|
See also
|
1997-06-12 13:09:11 +04:00
|
|
|
.Xr chflags 1 .
|
1998-01-12 18:45:23 +03:00
|
|
|
.It Cd options NFS_BOOT_BOOTP
|
2003-09-07 20:22:20 +04:00
|
|
|
Enable use of the BOOTP protocol (RFCs 951 and 1048) to get configuration
|
1998-04-30 12:50:03 +04:00
|
|
|
information if NFS is used to mount the root file system.
|
|
|
|
See
|
1998-01-12 18:45:23 +03:00
|
|
|
.Xr diskless 8
|
|
|
|
for details.
|
|
|
|
.It Cd options NFS_BOOT_DHCP
|
|
|
|
Same as
|
2002-04-07 08:20:17 +04:00
|
|
|
.Dq NFS_BOOT_BOOTP ,
|
|
|
|
but use the DHCP extensions to the
|
1998-01-12 18:45:23 +03:00
|
|
|
BOOTP protocol (RFC 1541).
|
2000-12-05 21:05:49 +03:00
|
|
|
.It Cd options NFS_BOOT_BOOTP_REQFILE
|
|
|
|
Specifies the string sent in the bp_file field of the BOOTP / DHCP
|
|
|
|
request packet.
|
1998-01-12 18:45:23 +03:00
|
|
|
.It Cd options NFS_BOOT_BOOTPARAM
|
|
|
|
Enable use of the BOOTPARAM protocol, consisting of RARP and
|
|
|
|
BOOTPARAM RPC, to get configuration information if NFS
|
1998-04-30 12:50:03 +04:00
|
|
|
is used to mount the root file system.
|
|
|
|
See
|
1998-01-12 18:45:23 +03:00
|
|
|
.Xr diskless 8
|
|
|
|
for details.
|
1998-07-05 11:26:45 +04:00
|
|
|
.It Cd options NFS_BOOT_RWSIZE=value
|
|
|
|
Set the initial NFS read and write sizes for diskless-boot requests.
|
2002-10-16 23:48:33 +04:00
|
|
|
The normal default is 8Kbytes.
|
|
|
|
This option provides a way to lower the value (e.g., to 1024 bytes)
|
2003-03-30 22:05:22 +04:00
|
|
|
as a workaround for buggy network interface cards or boot PROMs.
|
2002-10-16 23:48:33 +04:00
|
|
|
Once booted, the read and write request sizes can be increased by
|
2003-07-02 21:33:33 +04:00
|
|
|
remounting the file system.
|
2002-10-16 23:48:33 +04:00
|
|
|
See
|
1998-07-05 11:26:45 +04:00
|
|
|
.Xr mount_nfs 8
|
|
|
|
for details.
|
2000-09-20 03:56:50 +04:00
|
|
|
.It Cd options NFS_V2_ONLY
|
|
|
|
Reduce the size of the NFS client code by omitting code that's only required
|
|
|
|
for NFSv3 and NQNFS support, leaving only that code required to use NFSv2
|
|
|
|
servers.
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
|
|
|
.Ss Miscellaneous Options
|
|
|
|
.Bl -ohang
|
2002-11-29 07:25:38 +03:00
|
|
|
.It Cd options NEW_BUFQ_STRATEGY
|
|
|
|
Enable experimental buffer queue strategy for disk I/O.
|
2004-10-25 10:13:47 +04:00
|
|
|
In the default strategy, outstanding disk requests are ordered by
|
|
|
|
sector number and sent to the disk, regardless of whether the
|
|
|
|
operation is a read or write; this option gives priority to issuing
|
|
|
|
read requests over write requests.
|
|
|
|
Although requests may therefore be issued out of sector-order, causing
|
|
|
|
more seeks and thus lower overall throughput, interactive system
|
|
|
|
responsiveness under heavy disk I/O load may be improved, as processes
|
|
|
|
blocking on disk reads are serviced sooner (file writes typically
|
|
|
|
don't cause applications to block).
|
|
|
|
The performance effect varies greatly depending on the hardware, drive
|
|
|
|
firmware, filesystem configuration, workload, and desired performance
|
|
|
|
trade-off.
|
|
|
|
Systems using drive write-cache (most modern IDE disks, by default)
|
|
|
|
are unlikely to benefit and may well suffer; such disks acknowledge
|
|
|
|
writes very quickly, and optimise them internally according to
|
|
|
|
physical layout.
|
|
|
|
Giving these disks as many requests to work with as possible (the
|
|
|
|
standard strategy) will typically produce the best results, especially
|
|
|
|
if the drive has a large cache; the drive will silently complete
|
|
|
|
writes from cache as it seeks for reads.
|
|
|
|
Disks that support a large number of concurrent tagged requests (SCSI
|
|
|
|
disks and many hardware RAID controllers) expose this internal
|
|
|
|
scheduling with tagged responses, and don't block for reads; such
|
|
|
|
disks may not see a noticable difference with either strategy.
|
|
|
|
However, if IDE disks are run with write-cache disabled for safety,
|
|
|
|
writes are not acknowledged until actually completed, and only one
|
|
|
|
request can be outstanding; a large number of small writes in one
|
|
|
|
locality can keep the disk busy, starving reads elsewhere on the disk.
|
|
|
|
Such systems are likely to see the most benefit from this option.
|
|
|
|
Finally, the performance interaction of this option with ffs soft
|
|
|
|
dependencies can be subtle, as that mechanism can drastically alter
|
|
|
|
the workload for filesystem metadata writes.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options LKM
|
1998-04-30 12:50:03 +04:00
|
|
|
Enable loadable kernel modules.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr lkm 4
|
|
|
|
for details.
|
1998-04-30 12:50:03 +04:00
|
|
|
.Em NOTE :
|
1996-10-21 03:58:12 +04:00
|
|
|
not available on all architectures.
|
|
|
|
.It Cd options INSECURE
|
1998-04-30 12:50:03 +04:00
|
|
|
Hardwires the kernel security level at -1.
|
|
|
|
This means that the system
|
|
|
|
always runs in secure level 0 mode, even when running multiuser.
|
|
|
|
See the manual page for
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr init 8
|
1998-04-30 12:50:03 +04:00
|
|
|
for details on the implications of this.
|
|
|
|
The kernel secure level may manipulated by the superuser by altering the
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em kern.securelevel
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr sysctl 3
|
|
|
|
variable (the secure level may only be lowered by a call from process ID 1,
|
|
|
|
i.e.
|
|
|
|
.Xr init 8 ) .
|
1996-10-21 03:58:12 +04:00
|
|
|
See also
|
|
|
|
.Xr sysctl 8
|
|
|
|
and
|
|
|
|
.Xr sysctl 3 .
|
2004-01-12 23:03:39 +03:00
|
|
|
.It Cd options MEMORY_DISK_DYNAMIC
|
|
|
|
This options makes the
|
2004-01-13 00:17:15 +03:00
|
|
|
.Xr md 4
|
2004-01-12 23:03:39 +03:00
|
|
|
.Tn RAM
|
|
|
|
disk size dynamically sized.
|
1997-02-26 10:07:15 +03:00
|
|
|
.It Cd options MEMORY_DISK_HOOKS
|
|
|
|
This option allows for some machine dependent functions to be called when
|
1998-04-30 12:50:03 +04:00
|
|
|
the
|
2002-03-10 23:05:42 +03:00
|
|
|
.Xr md 4
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn RAM
|
|
|
|
disk driver is configured.
|
|
|
|
This can result in automatically loading a
|
|
|
|
.Tn RAM
|
|
|
|
disk from floppy on open (among other things).
|
1997-02-26 10:07:15 +03:00
|
|
|
.It Cd options MEMORY_DISK_IS_ROOT
|
1998-04-30 12:50:03 +04:00
|
|
|
Forces the
|
2002-03-10 23:05:42 +03:00
|
|
|
.Xr md 4
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn RAM
|
|
|
|
disk to be the root device.
|
|
|
|
This can only be overridden when
|
1997-02-26 10:07:15 +03:00
|
|
|
the kernel is booted in the 'ask-for-root' mode.
|
2002-04-02 09:30:34 +04:00
|
|
|
.It Cd options MEMORY_DISK_ROOT_SIZE=integer
|
2002-03-10 23:05:42 +03:00
|
|
|
Allocates the given number of 512 byte blocks as memory for the
|
|
|
|
.Xr md 4
|
|
|
|
.Tn RAM
|
|
|
|
disk, to be populated with
|
|
|
|
.Xr mdsetimage 8 .
|
2004-01-12 23:03:39 +03:00
|
|
|
.It Cd options MEMORY_DISK_SERVER=0
|
|
|
|
Do not include the interface to a userland memory disk server process.
|
2004-01-13 00:17:15 +03:00
|
|
|
Per default, this options is set to 1, including the support code.
|
2004-01-12 23:03:39 +03:00
|
|
|
Useful for install media kernels.
|
2000-09-14 20:02:24 +04:00
|
|
|
.It Cd options VNODE_OP_NOINLINE
|
2002-07-08 14:46:00 +04:00
|
|
|
Do not inline the
|
|
|
|
.Fn VOP_*
|
|
|
|
calls in the kernel.
|
2002-10-16 23:48:33 +04:00
|
|
|
On i386 GENERIC, this saves 36k of kernel text.
|
|
|
|
Useful for install media kernels, small memory systems and embedded systems.
|
2002-07-08 14:37:04 +04:00
|
|
|
.It Cd options MALLOC_NOINLINE
|
2002-07-08 14:46:00 +04:00
|
|
|
Time critical fixed size memory allocation is performed with
|
|
|
|
.Fn MALLOC
|
|
|
|
and
|
|
|
|
.Fn FREE .
|
|
|
|
Normally these expand to inline code, but with
|
2002-07-08 14:37:04 +04:00
|
|
|
.Em MALLOC_NOINLINE
|
2002-07-08 14:46:00 +04:00
|
|
|
these call the normal
|
|
|
|
.Fn malloc
|
|
|
|
and
|
|
|
|
.Fn free
|
|
|
|
functions.
|
|
|
|
Useful for install media kernels, small memory systems and embedded systems.
|
2001-09-04 08:20:30 +04:00
|
|
|
.It Cd options HZ=integer
|
|
|
|
On ports that support it, set the system clock frequency (see
|
|
|
|
.Xr hz 9 )
|
2002-10-16 23:48:33 +04:00
|
|
|
to the supplied value.
|
|
|
|
Handle with care.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options NTP
|
|
|
|
Turns on in-kernel precision timekeeping support used by software
|
|
|
|
implementing
|
|
|
|
.Em NTP
|
2003-09-07 20:22:20 +04:00
|
|
|
(Network Time Protocol, RFC 1305).
|
1996-10-21 03:58:12 +04:00
|
|
|
The
|
|
|
|
.Em NTP
|
1998-04-30 12:50:03 +04:00
|
|
|
option adds an in-kernel Phase-Locked Loop (PLL) for normal
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em NTP
|
1998-04-30 12:50:03 +04:00
|
|
|
operation, and a Frequency-Locked Loop (FLL) for intermittently-connected
|
1996-10-21 03:58:12 +04:00
|
|
|
operation.
|
2000-06-01 02:26:58 +04:00
|
|
|
.Xr ntpd 8
|
1996-10-21 03:58:12 +04:00
|
|
|
will employ a user-level PLL when kernel support is unavailable,
|
|
|
|
but the in-kernel version has lower latency and more precision, and
|
|
|
|
so typically keeps much better time.
|
|
|
|
The interface to the kernel
|
|
|
|
.Em NTP
|
|
|
|
support is provided by the
|
|
|
|
.Xr ntp_adjtime 2
|
|
|
|
and
|
|
|
|
.Xr ntp_gettime 2
|
|
|
|
system calls, which are intended for use by
|
2000-06-01 02:26:58 +04:00
|
|
|
.Xr ntpd 8
|
1996-10-21 03:58:12 +04:00
|
|
|
and are enabled by the option.
|
|
|
|
On systems with sub-microsecond resolution timers, or where (HZ / 100000)
|
|
|
|
is not an integer, the
|
|
|
|
.Em NTP
|
|
|
|
option also enables extended-precision arithmetic to keep track of
|
|
|
|
fractional clock ticks at NTP time-format precision.
|
1997-11-26 17:43:13 +03:00
|
|
|
.It Cd options PPS_SYNC
|
1996-10-21 03:58:12 +04:00
|
|
|
This option enables a kernel serial line discipline for receiving time
|
|
|
|
phase signals from an external reference clock such as a radio clock.
|
|
|
|
(The
|
|
|
|
.Em NTP
|
|
|
|
option (which see) must be on if the
|
1997-11-26 17:43:13 +03:00
|
|
|
.Em PPS_SYNC
|
1996-10-21 03:58:12 +04:00
|
|
|
option is used.)
|
1998-04-30 12:50:03 +04:00
|
|
|
Some reference clocks generate a Pulse Per Second (PPS) signal in
|
|
|
|
phase with their time source.
|
|
|
|
The
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em PPS
|
|
|
|
line discipline receives this signal on either the data leads
|
|
|
|
or the DCD control lead of a serial port.
|
|
|
|
.Em NTP
|
|
|
|
uses the PPS signal to discipline the local clock oscillator to a high
|
|
|
|
degree of precision (typically less than 50 microseconds in time and
|
|
|
|
0.1 ppm in accuracy).
|
|
|
|
.Em PPS
|
|
|
|
can also generate a serial output pulse when the system receives a PPS
|
1998-04-30 12:50:03 +04:00
|
|
|
interrupt.
|
|
|
|
This can be used to measure the system interrupt latency and thus calibrate
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em NTP
|
|
|
|
to account for it.
|
|
|
|
Using
|
|
|
|
.Em PPS
|
|
|
|
usually requires a
|
|
|
|
gadget box
|
|
|
|
to convert from TTL to RS-232 signal levels.
|
|
|
|
The gadget box and PPS are described in more detail in the HTML documentation
|
2001-09-04 03:03:29 +04:00
|
|
|
for
|
|
|
|
.Xr ntpd 8
|
|
|
|
in
|
|
|
|
.Pa /usr/share/doc/html/ntp .
|
2003-11-20 18:07:07 +03:00
|
|
|
.It Cd options NO_TSC_TIME
|
|
|
|
Don't use TSC microtime, even if available (i386 only).
|
|
|
|
Improves time behavior under VMware.
|
1999-11-29 02:41:48 +03:00
|
|
|
.It Cd options SETUIDSCRIPTS
|
1996-10-21 03:58:12 +04:00
|
|
|
Allows scripts with the setuid bit set to execute as the effective
|
|
|
|
user rather than the real user, just like binary executables.
|
1998-04-30 12:50:03 +04:00
|
|
|
.Pp
|
|
|
|
.Em NOTE :
|
|
|
|
Using this option will also enable
|
1999-11-29 02:41:48 +03:00
|
|
|
.Em options FDSCRIPTS
|
2002-09-29 19:36:34 +04:00
|
|
|
.It Cd options FDSCRIPTS
|
1996-10-21 03:58:12 +04:00
|
|
|
Allows execution of scripts with the execute bit set, but not the
|
|
|
|
read bit, by opening the file and passing the file descriptor to
|
1998-04-30 12:50:03 +04:00
|
|
|
the shell, rather than the filename.
|
|
|
|
.Pp
|
|
|
|
.Em NOTE :
|
|
|
|
Execute only (non-readable) scripts will have
|
1996-10-21 03:58:12 +04:00
|
|
|
.Va argv[0]
|
|
|
|
set to
|
1996-11-15 16:46:02 +03:00
|
|
|
.Pa /dev/fd/* .
|
|
|
|
What this option allows as far as security is
|
|
|
|
concerned, is the ability to safely ensure that the correct script
|
1997-08-29 14:38:02 +04:00
|
|
|
is run by the interpreter, as it is passed as an already open file.
|
2000-07-29 01:38:45 +04:00
|
|
|
.It Cd options PUCCN
|
|
|
|
Enables treating serial ports found on PCI boards
|
|
|
|
.Xr puc 4
|
2002-10-16 23:48:33 +04:00
|
|
|
as potential console devices.
|
|
|
|
The method for choosing such a console device is port dependent.
|
1997-01-15 09:20:02 +03:00
|
|
|
.It Cd options RTC_OFFSET=integer
|
1996-10-21 03:58:12 +04:00
|
|
|
The kernel (and typically the hardware battery backed-up clock on
|
|
|
|
those machines that have one) keeps time in
|
|
|
|
.Em UTC
|
|
|
|
(Universal Coordinated Time, once known as
|
|
|
|
.Em GMT ,
|
|
|
|
or Greenwich Mean Time)
|
|
|
|
and not in the time of the local time zone.
|
|
|
|
The
|
1997-01-15 09:20:02 +03:00
|
|
|
.Em RTC_OFFSET
|
1996-10-21 03:58:12 +04:00
|
|
|
option is used on some ports (such as the i386) to tell the kernel
|
|
|
|
that the hardware clock is offset from
|
|
|
|
.Em UTC
|
1998-04-30 12:50:03 +04:00
|
|
|
by the specified number of minutes.
|
|
|
|
This is typically used when a machine boots several operating
|
|
|
|
systems and one of them wants the hardware clock to run in the
|
|
|
|
local time zone and not in
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em UTC ,
|
|
|
|
e.g.
|
1997-01-15 09:20:02 +03:00
|
|
|
.Em RTC_OFFSET=300
|
1996-10-21 03:58:12 +04:00
|
|
|
means
|
1998-04-30 12:50:03 +04:00
|
|
|
the hardware clock is set to US Eastern Time (300 minutes behind
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em UTC ) ,
|
1998-04-30 12:50:03 +04:00
|
|
|
and not
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em UTC .
|
1997-01-15 09:20:02 +03:00
|
|
|
(Note:
|
|
|
|
.Em RTC_OFFSET
|
|
|
|
is used to initialize a kernel variable named
|
|
|
|
.Va rtc_offset
|
|
|
|
which is the source actually used to determine the clock offset, and
|
|
|
|
which may be accessed via the kern.rtc_offset sysctl variable.
|
|
|
|
See
|
|
|
|
.Xr sysctl 8
|
1996-10-21 03:58:12 +04:00
|
|
|
and
|
1997-01-15 09:20:02 +03:00
|
|
|
.Xr sysctl 3
|
1998-04-30 12:50:03 +04:00
|
|
|
for details.
|
|
|
|
Since the kernel clock is initialized from the hardware clock very
|
|
|
|
early in the boot process, it is not possible to meaningfully change
|
1997-01-15 09:20:02 +03:00
|
|
|
.Va rtc_offset
|
1998-04-30 12:50:03 +04:00
|
|
|
in system initialization scripts.
|
|
|
|
Changing this value currently may only be done at kernel compile
|
|
|
|
time or by patching the kernel and rebooting).
|
2000-03-06 04:08:34 +03:00
|
|
|
.Pp
|
|
|
|
.Em NOTE :
|
|
|
|
Unfortunately, in many cases where the hardware clock
|
|
|
|
is kept in local time, it is adjusted for Daylight Savings
|
|
|
|
Time; this means that attempting to use
|
|
|
|
.Em RTC_OFFSET
|
2001-06-05 17:45:10 +04:00
|
|
|
to let
|
|
|
|
.Nx
|
|
|
|
coexist with such an operating system, like Windows,
|
2000-03-06 04:08:34 +03:00
|
|
|
would necessitate changing
|
|
|
|
.Em RTC_OFFSET
|
2002-10-16 23:48:33 +04:00
|
|
|
twice a year.
|
|
|
|
As such, this solution is imperfect.
|
1997-01-30 12:16:54 +03:00
|
|
|
.It Cd options KMEMSTATS
|
|
|
|
The kernel memory allocator,
|
|
|
|
.Xr malloc 9 ,
|
|
|
|
will keep statistics on its performance if this option is enabled.
|
1997-08-28 11:12:35 +04:00
|
|
|
Unfortunately, this option therefore essentially disables the
|
1997-01-30 12:16:54 +03:00
|
|
|
.Fn MALLOC
|
|
|
|
and
|
|
|
|
.Fn FREE
|
|
|
|
forms of the memory allocator, which are used to enhance the performance
|
|
|
|
of certain critical sections of code in the kernel.
|
1998-04-30 12:50:03 +04:00
|
|
|
This option therefore can lead to a significant decrease in the
|
|
|
|
performance of certain code in the kernel if enabled.
|
|
|
|
Examples of such code include the
|
1997-01-30 12:16:54 +03:00
|
|
|
.Fn namei
|
|
|
|
routine, the
|
|
|
|
.Xr ccd 4
|
|
|
|
driver,
|
|
|
|
the
|
|
|
|
.Xr ncr 4
|
|
|
|
driver,
|
|
|
|
and much of the networking code.
|
1997-10-04 21:36:25 +04:00
|
|
|
.It Cd options MAXUPRC=integer
|
2001-09-22 12:43:28 +04:00
|
|
|
Sets the soft
|
|
|
|
.Dv RLIMIT_NPROC
|
1997-10-04 18:39:55 +04:00
|
|
|
resource limit, which specifies the maximum number of simultaneous
|
|
|
|
processes a user is permitted to run, for process 0;
|
|
|
|
this value is inherited by its child processes.
|
|
|
|
It defaults to
|
|
|
|
.Em CHILD_MAX ,
|
2001-04-02 13:33:30 +04:00
|
|
|
which is currently defined to be 160.
|
1997-10-04 18:39:55 +04:00
|
|
|
Setting
|
1997-10-04 21:36:25 +04:00
|
|
|
.Em MAXUPRC
|
1997-10-04 18:39:55 +04:00
|
|
|
to a value less than
|
|
|
|
.Em CHILD_MAX
|
|
|
|
is not permitted, as this would result in a violation of the semantics of
|
|
|
|
.St -p1003.1-90 .
|
2002-12-14 01:44:09 +03:00
|
|
|
.It Cd options NOFILE=integer
|
|
|
|
Sets the soft
|
|
|
|
.Dv RLIMIT_NOFILE
|
|
|
|
resource limit, which specifies the maximum number of open
|
|
|
|
file descriptors for each process;
|
|
|
|
this value is inherited by its child processes.
|
|
|
|
It defaults to
|
|
|
|
.Em OPEN_MAX ,
|
|
|
|
which is currently defined to be 64.
|
1999-09-28 18:52:32 +04:00
|
|
|
.It Cd options DEFCORENAME=string
|
|
|
|
Sets the default value of the
|
|
|
|
.Em kern.defcorename
|
|
|
|
sysctl variable, otherwise it is set to
|
|
|
|
.Nm %n.core .
|
|
|
|
See
|
1998-06-29 01:36:55 +04:00
|
|
|
.Xr sysctl 8
|
|
|
|
and
|
|
|
|
.Xr sysctl 3
|
1999-09-28 18:52:32 +04:00
|
|
|
for details.
|
1999-10-28 14:29:23 +04:00
|
|
|
.It Cd options RASOPS_CLIPPING
|
2001-04-04 14:52:23 +04:00
|
|
|
Enables clipping within the
|
1999-10-28 14:29:23 +04:00
|
|
|
.Nm rasops
|
2001-04-04 14:52:23 +04:00
|
|
|
raster-console output system.
|
1999-10-28 14:29:23 +04:00
|
|
|
.Em NOTE :
|
|
|
|
only available on architectures that use
|
|
|
|
.Nm rasops
|
|
|
|
for console output.
|
|
|
|
.It Cd options RASOPS_SMALL
|
2001-04-04 14:52:23 +04:00
|
|
|
Removes optimized character writing code from the
|
1999-10-28 14:29:23 +04:00
|
|
|
.Nm rasops
|
|
|
|
raster-console output system.
|
|
|
|
.Em NOTE :
|
|
|
|
only available on architectures that use
|
|
|
|
.Nm rasops
|
|
|
|
for console output.
|
2001-12-17 23:09:55 +03:00
|
|
|
.It Cd options INCLUDE_CONFIG_FILE
|
|
|
|
Embeds the kernel config file used to define the kernel in the kernel
|
2002-10-16 23:48:33 +04:00
|
|
|
binary itself.
|
|
|
|
The embedded data also includes any files directly included by the config
|
|
|
|
file itself, e.g.
|
2001-12-17 23:09:55 +03:00
|
|
|
.Pa GENERIC.local
|
|
|
|
or
|
|
|
|
.Pa std.$MACHINE .
|
2001-12-18 06:44:35 +03:00
|
|
|
The embedded config file can be extracted from the resulting kernel by
|
|
|
|
the following command:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
strings netbsd | sed -n 's/^_CFG_//p' | unvis
|
|
|
|
.Ed
|
2001-12-17 23:09:55 +03:00
|
|
|
.It Cd options INCLUDE_JUST_CONFIG
|
|
|
|
Similar to the above option, but includes just the actual config file,
|
|
|
|
not any included files.
|
2002-02-11 21:16:48 +03:00
|
|
|
.It Cd options PIPE_SOCKETPAIR
|
|
|
|
Use slower, but smaller socketpair(2)-based pipe implementation instead
|
2002-10-16 23:48:33 +04:00
|
|
|
of default faster, but bigger one.
|
|
|
|
Primarily useful for installation kernels.
|
2002-06-07 01:05:05 +04:00
|
|
|
.It Cd options USERCONF
|
2002-10-16 23:48:33 +04:00
|
|
|
Compiles in the in-kernel device configuration manager.
|
|
|
|
See
|
2002-06-07 01:05:05 +04:00
|
|
|
.Xr userconf 4
|
|
|
|
for details.
|
|
|
|
.It Cd options PERFCTRS
|
|
|
|
Compiles in kernel support for CPU performance-monitoring counters.
|
|
|
|
See
|
|
|
|
.Xr pmc 1
|
|
|
|
for details.
|
|
|
|
.Em NOTE :
|
|
|
|
not available on all architectures.
|
2004-05-25 04:33:04 +04:00
|
|
|
.It Cd options XSERVER
|
|
|
|
Compiles in kernel support for
|
|
|
|
.Tn X11
|
|
|
|
on architectures that still use (or can use) the legacy
|
|
|
|
.Em pccons
|
|
|
|
console drivers rather than
|
|
|
|
.Xr wscons 4 .
|
|
|
|
These include bebox, i386, shark.
|
|
|
|
.It Cd options XSERVER_DDB
|
|
|
|
A supplement to XSERVER that adds support for entering
|
|
|
|
.Xr ddb 4
|
|
|
|
while in
|
|
|
|
.Tn X11 .
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
|
|
|
.Ss Networking Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options GATEWAY
|
1998-04-30 12:50:03 +04:00
|
|
|
Enables
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em IPFORWARDING
|
1998-04-30 12:50:03 +04:00
|
|
|
(which see)
|
|
|
|
and (on most ports) increases the size of
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em NMBCLUSTERS
|
1998-04-30 12:50:03 +04:00
|
|
|
(which see).
|
|
|
|
In general,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em GATEWAY
|
|
|
|
is used to indicate that a system should act as a router, and
|
|
|
|
.Em IPFORWARDING
|
|
|
|
is not invoked directly.
|
|
|
|
(Note that
|
|
|
|
.Em GATEWAY
|
1998-04-30 12:50:03 +04:00
|
|
|
has no impact on protocols other than
|
|
|
|
.Tn IP ,
|
|
|
|
such as
|
|
|
|
.Tn CLNP
|
|
|
|
or
|
|
|
|
.Tn XNS ) .
|
2002-06-12 06:08:30 +04:00
|
|
|
.Em GATEWAY
|
|
|
|
option also compiles IPv4 fast forwarding code into the kernel.
|
1999-02-12 20:44:28 +03:00
|
|
|
.It Cd options IPFORWARDING=value
|
|
|
|
If
|
|
|
|
.Em value
|
2002-10-16 23:48:33 +04:00
|
|
|
is 1 this enables IP routing behavior.
|
|
|
|
If
|
1999-02-12 20:44:28 +03:00
|
|
|
.Em value
|
2002-10-16 23:48:33 +04:00
|
|
|
is 0 (the default), it disables it.
|
|
|
|
The
|
1999-02-12 20:44:28 +03:00
|
|
|
.Em GATEWAY
|
|
|
|
option sets this to 1 automatically.
|
|
|
|
With this option enabled, the machine will forward IP datagrams destined
|
|
|
|
for other machines between its interfaces.
|
1998-04-30 12:50:03 +04:00
|
|
|
Note that even without this option, the kernel will
|
1996-10-21 03:58:12 +04:00
|
|
|
still forward some packets (such as source routed packets) -- removing
|
|
|
|
.Em GATEWAY
|
|
|
|
and
|
|
|
|
.Em IPFORWARDING
|
|
|
|
is insufficient to stop all routing through a bastion host on a
|
|
|
|
firewall -- source routing is controlled independently.
|
1998-04-30 12:50:03 +04:00
|
|
|
To turn off source routing, use
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em options IPFORWSRCRT=0
|
|
|
|
(which see).
|
|
|
|
Note that IP forwarding may be turned on and off independently of the
|
|
|
|
setting of the
|
|
|
|
.Em IPFORWARDING
|
|
|
|
option through the use of the
|
|
|
|
.Em net.inet.ip.forwarding
|
1998-04-30 12:50:03 +04:00
|
|
|
sysctl variable.
|
|
|
|
If
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em net.inet.ip.forwarding
|
1998-04-30 12:50:03 +04:00
|
|
|
is 1, IP forwarding is on.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr sysctl 8
|
|
|
|
and
|
|
|
|
.Xr sysctl 3
|
|
|
|
for details.
|
|
|
|
.It Cd options IPFORWSRCRT=value
|
|
|
|
If
|
|
|
|
.Em value
|
1998-04-30 12:50:03 +04:00
|
|
|
is set to zero, source routing of IP datagrams is turned off.
|
|
|
|
If
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em value
|
|
|
|
is set to one (the default) or the option is absent, source routed IP
|
1998-04-30 12:50:03 +04:00
|
|
|
datagrams are forwarded by the machine.
|
|
|
|
Note that source routing of IP packets may be turned on and off
|
|
|
|
independently of the setting of the
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em IPFORWSRCRT
|
|
|
|
option through the use of the
|
|
|
|
.Em net.inet.ip.forwsrcrt
|
1998-04-30 12:50:03 +04:00
|
|
|
sysctl variable.
|
|
|
|
If
|
1996-10-21 03:58:12 +04:00
|
|
|
.Em net.inet.ip.forwsrcrt
|
1998-04-30 12:50:03 +04:00
|
|
|
is 1, forwarding of source routed IP datagrams is on.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr sysctl 8
|
|
|
|
and
|
|
|
|
.Xr sysctl 3
|
|
|
|
for details.
|
1999-03-30 00:28:45 +04:00
|
|
|
.It Cd options IFA_STATS
|
|
|
|
Tells the kernel to maintain per-address statistics on bytes sent
|
|
|
|
and received over (currently) internet and appletalk addresses.
|
2000-11-07 07:46:40 +03:00
|
|
|
.\"This can be a fairly expensive operation, so you probably want to
|
|
|
|
.\"keep this disabled.
|
2001-06-12 15:26:21 +04:00
|
|
|
The option is not recommended as it degrades system stability.
|
2003-07-04 00:13:26 +04:00
|
|
|
.It Cd options IFQ_MAXLEN=value
|
|
|
|
Increases the allowed size of the network interface packet queues.
|
|
|
|
The default queue size is 50 packets, and you do not normally need
|
|
|
|
to increase it.
|
1997-03-25 19:42:52 +03:00
|
|
|
.It Cd options MROUTING
|
1998-04-30 12:50:03 +04:00
|
|
|
Includes support for IP multicast routers.
|
|
|
|
You certainly want
|
1997-03-25 19:42:52 +03:00
|
|
|
.Em INET
|
1998-04-30 12:50:03 +04:00
|
|
|
with this.
|
|
|
|
Multicast routing is controlled by the
|
1997-03-25 19:42:52 +03:00
|
|
|
.Xr mrouted 8
|
|
|
|
daemon.
|
2004-09-05 03:54:51 +04:00
|
|
|
.It Cd options PIM
|
2004-09-12 17:03:06 +04:00
|
|
|
Includes support for Protocol Independent Multicast (PIM) routing.
|
2004-09-05 21:55:29 +04:00
|
|
|
You need
|
2004-09-05 03:54:51 +04:00
|
|
|
.Em MROUTING
|
|
|
|
and
|
2004-09-05 21:55:29 +04:00
|
|
|
.Em INET
|
2004-09-05 03:54:51 +04:00
|
|
|
with this.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options INET
|
1998-04-30 12:50:03 +04:00
|
|
|
Includes support for the
|
|
|
|
.Tn TCP/IP
|
|
|
|
protocol stack.
|
|
|
|
You almost certainly want this.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr inet 4
|
|
|
|
for details.
|
1996-11-15 16:46:02 +03:00
|
|
|
This option is currently required.
|
1999-07-01 14:47:37 +04:00
|
|
|
.It Cd options INET6
|
|
|
|
Includes support for the
|
|
|
|
.Tn IPv6
|
|
|
|
protocol stack.
|
|
|
|
See
|
|
|
|
.Xr inet6 4
|
|
|
|
for details.
|
|
|
|
Unlike
|
|
|
|
.Em INET ,
|
|
|
|
.Em INET6
|
|
|
|
enables multicast routing code as well.
|
|
|
|
This option requires
|
|
|
|
.Em INET
|
|
|
|
at this moment, but it should not.
|
2001-02-07 14:40:16 +03:00
|
|
|
.It Cd options ND6_DEBUG
|
|
|
|
The option sets the default value of net.inet6.icmp6.nd6_debug to 1,
|
2001-02-07 14:56:04 +03:00
|
|
|
for debugging IPv6 neighbor discovery protocol handling.
|
2001-02-07 14:40:16 +03:00
|
|
|
See
|
|
|
|
.Xr sysctl 3
|
|
|
|
for details.
|
1999-07-01 14:47:37 +04:00
|
|
|
.It Cd options IPSEC
|
|
|
|
Includes support for the
|
|
|
|
.Tn IPsec
|
|
|
|
protocol.
|
|
|
|
See
|
|
|
|
.Xr ipsec 4
|
|
|
|
for details.
|
|
|
|
.It Cd options IPSEC_DEBUG
|
|
|
|
Enables debugging code in
|
|
|
|
.Tn IPsec
|
|
|
|
stack.
|
2003-04-09 20:44:46 +04:00
|
|
|
See
|
|
|
|
.Xr ipsec 4
|
|
|
|
for details.
|
1999-07-01 14:47:37 +04:00
|
|
|
.It Cd options IPSEC_ESP
|
|
|
|
Includes support for
|
|
|
|
.Tn IPsec
|
|
|
|
.Tn ESP
|
|
|
|
protocol.
|
|
|
|
See
|
|
|
|
.Xr ipsec 4
|
|
|
|
for details.
|
2002-11-07 04:13:57 +03:00
|
|
|
.It Cd options ALTQ
|
|
|
|
Enabled ALTQ (Alternate Queueing).
|
|
|
|
For simple rate-limiting, use
|
|
|
|
.Xr tbrconfig 8
|
|
|
|
to set up the interface transmission rate.
|
|
|
|
To use queueing disciplines, their appropriate kernel options should also
|
|
|
|
be defined (documented below).
|
|
|
|
Queueing disciplines are managed by
|
|
|
|
.Xr altqd 8 .
|
|
|
|
See
|
|
|
|
.Xr altq 9
|
|
|
|
for details.
|
|
|
|
.It Cd options ALTQ_HFSC
|
|
|
|
Include support for ALTQ-implemented HFSC (Hierarchical Fair Service Curve)
|
|
|
|
module.
|
|
|
|
HFSC supports both link-sharing and guaranteed real-time services.
|
2004-05-12 02:42:47 +04:00
|
|
|
HFSC employs a service curve based QoS model, and its unique feature
|
2002-11-07 04:13:57 +03:00
|
|
|
is an ability to decouple delay and bandwidth allocation.
|
|
|
|
Requires
|
|
|
|
.Em ALTQ_RED
|
|
|
|
to use the RED queueing discipline on HFSC classes, or
|
|
|
|
.Em ALTQ_RIO
|
|
|
|
to use the RIO queueing discipline on HFSC classes.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_PRIQ
|
|
|
|
Include support for ALTQ-implemented PRIQ (Priority Queueing).
|
|
|
|
PRIQ implements a simple priority-based queueing discipline.
|
|
|
|
A higher priority class is always served first.
|
|
|
|
Requires
|
|
|
|
.Em ALTQ_RED
|
|
|
|
to use the RED queueing discipline on HFSC classes, or
|
|
|
|
.Em ALTQ_RIO
|
|
|
|
to use the RIO queueing discipline on HFSC classes.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_WFQ
|
|
|
|
Include support for ALTQ-implemented WFQ (Weighted Fair Queueing).
|
|
|
|
WFQ implements a weighted-round robin scheduler for a set of queues.
|
|
|
|
A weight can be assigned to each queue to give a different proportion
|
|
|
|
of the link capacity.
|
|
|
|
A hash function is used to map a flow to one of a set of queues.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_FIFOQ
|
|
|
|
Include support for ALTQ-implemented FIFO queueing.
|
|
|
|
FIFOQ is a simple drop-tail FIFO (First In, First Out) queueing discipline.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_RIO
|
|
|
|
Include support for ALTQ-implemented RIO (RED with In/Out).
|
|
|
|
The original RIO has 2 sets of RED parameters; one for in-profile
|
|
|
|
packets and the other for out-of-profile packets.
|
|
|
|
At the ingress of the network, profile meters tag packets as IN or
|
|
|
|
OUT based on contracted profiles for customers.
|
|
|
|
Inside the network, IN packets receive preferential treatment by
|
|
|
|
the RIO dropper.
|
|
|
|
ALTQ/RIO has 3 drop precedence levels defined for the Assured Forwarding
|
2003-09-07 20:22:20 +04:00
|
|
|
PHB of DiffServ (RFC 2597).
|
2002-11-07 04:13:57 +03:00
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_BLUE
|
|
|
|
Include support for ALTQ-implemented Blue buffer management.
|
|
|
|
Blue is another active buffer management mechanism.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_FLOWVALVE
|
|
|
|
Include support for ALTQ-implemented Flowvalve.
|
|
|
|
Flowvalve is a simple implementation of a RED penalty box that identifies
|
|
|
|
and punishes misbehaving flows.
|
|
|
|
This option requires
|
|
|
|
.Em ALTQ_RED
|
|
|
|
and assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_CDNR
|
|
|
|
Include support for ALTQ-implemented CDNR (diffserv traffic conditioner)
|
|
|
|
packet marking/manipulation.
|
|
|
|
Traffic conditioners are components to meter, mark, or drop incoming
|
|
|
|
packets according to some rules.
|
|
|
|
As opposed to queueing disciplines, traffic conditioners handle incoming
|
|
|
|
packets at an input interface.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_NOPCC
|
|
|
|
Disables use of processor cycle counter to measure time in ALTQ.
|
|
|
|
This option should be defined for a non-Pentium i386 CPU which does not
|
|
|
|
have TSC, SMP (per-CPU counters are not in sync), or power management
|
|
|
|
which affects processor cycle counter.
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_IPSEC
|
2003-04-07 00:11:24 +04:00
|
|
|
Include support for IPsec in IPv4 ALTQ.
|
2002-11-07 04:13:57 +03:00
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_JOBS
|
|
|
|
Undocumented at this time.
|
|
|
|
.It Cd options ALTQ_AFMAP
|
|
|
|
Include support for an undocumented ALTQ feature that is used to map an IP
|
|
|
|
flow to an ATM VC (Virtual Circuit).
|
|
|
|
This option assumes
|
|
|
|
.Em ALTQ .
|
|
|
|
.It Cd options ALTQ_LOCALQ
|
|
|
|
Include support for ALTQ-implemented local queues.
|
|
|
|
Its practical use is undefined.
|
|
|
|
Assumes
|
|
|
|
.Em ALTQ .
|
1999-06-26 10:26:13 +04:00
|
|
|
.It Cd options SUBNETSARELOCAL
|
|
|
|
Sets default value for net.inet.ip.subnetsarelocal variable, which
|
|
|
|
controls whether non-directly-connected subnets of connected networks
|
|
|
|
are considered "local" for purposes of choosing the MSS for a TCP
|
2002-10-16 23:48:33 +04:00
|
|
|
connection.
|
|
|
|
This is mostly present for historic reasons and completely irrelevant if
|
|
|
|
you enable Path MTU discovery.
|
1999-06-26 10:26:13 +04:00
|
|
|
.It Cd options HOSTZEROBROADCAST
|
|
|
|
Sets default value for net.inet.ip.hostzerobroadcast variable, which
|
|
|
|
controls whether the zeroth host address of each connected subnet is
|
2002-10-16 23:48:33 +04:00
|
|
|
also considered a broadcast address.
|
|
|
|
Default value is "1", for compatibility with old systems; if this is
|
|
|
|
set to zero on all hosts on a subnet, you should be able to fit an extra
|
|
|
|
host per subnet on the
|
1999-06-26 10:26:13 +04:00
|
|
|
".0" address.
|
1997-02-26 06:19:20 +03:00
|
|
|
.It Cd options MCLSHIFT=value
|
|
|
|
This option is the base-2 logarithm of the size of mbuf clusters.
|
1998-02-06 08:54:12 +03:00
|
|
|
The
|
|
|
|
.Bx
|
|
|
|
networking stack keeps network packets in a linked
|
1998-04-30 12:50:03 +04:00
|
|
|
list, or chain, of kernel buffer objects called mbufs.
|
|
|
|
The system provides larger mbuf clusters as an optimization for
|
|
|
|
large packets, instead of using long chains for large packets.
|
1997-02-26 06:19:20 +03:00
|
|
|
The mbuf cluster size,
|
1998-04-30 12:50:03 +04:00
|
|
|
or
|
2001-04-04 14:52:23 +04:00
|
|
|
.Em MCLBYTES ,
|
1997-02-26 06:19:20 +03:00
|
|
|
must be a power of two, and is computed as two raised to the power
|
1998-04-30 12:50:03 +04:00
|
|
|
.Em MCLSHIFT .
|
1997-02-26 06:19:20 +03:00
|
|
|
On systems with Ethernet network adaptors,
|
1998-04-30 12:50:03 +04:00
|
|
|
.Em MCLSHIFT
|
1997-02-26 06:19:20 +03:00
|
|
|
is often set to 11, giving 2048-byte mbuf clusters, large enough to
|
1998-04-30 12:50:03 +04:00
|
|
|
hold a 1500-byte
|
|
|
|
.Tn Ethernet
|
|
|
|
frame in a single cluster.
|
|
|
|
Systems with network interfaces supporting larger frame sizes like
|
|
|
|
.Tn ATM ,
|
|
|
|
.Tn FDDI ,
|
|
|
|
or
|
|
|
|
.Tn HIPPI
|
|
|
|
may perform better with
|
|
|
|
.Em MCLSHIFT
|
|
|
|
set to 12 or 13, giving mbuf cluster sizes of 4096 and 8192 bytes,
|
|
|
|
respectively.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options NS
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for the
|
|
|
|
.Tn Xerox
|
|
|
|
.Tn XNS
|
|
|
|
protocol stack.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr ns 4
|
|
|
|
for details.
|
|
|
|
.It Cd options ISO,TPIP
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for the ubiquitous
|
|
|
|
.Tn OSI
|
|
|
|
protocol stack.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr iso 4
|
|
|
|
for details.
|
2000-11-24 13:09:46 +03:00
|
|
|
This option assumes
|
|
|
|
.Em INET .
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options EON
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for tunneling
|
|
|
|
.Tn OSI
|
|
|
|
protocols over
|
|
|
|
.Tn IP .
|
2000-07-05 08:07:22 +04:00
|
|
|
Known to be broken, or at least very fragile, and undocumented.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options CCITT,LLC,HDLC
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for the
|
|
|
|
.Tn CCITT
|
|
|
|
(nee
|
|
|
|
.Tn ITU-TSS )
|
|
|
|
.Tn X.25
|
|
|
|
protocol stack.
|
|
|
|
The state of this code is currently unknown, and probably contains bugs.
|
2000-11-24 13:09:46 +03:00
|
|
|
This option assumes
|
|
|
|
.Em INET .
|
1997-11-09 04:02:06 +03:00
|
|
|
.It Cd options NETATALK
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for the
|
|
|
|
.Tn AppleTalk
|
|
|
|
protocol stack.
|
|
|
|
The kernel provides provision for the
|
|
|
|
.Em Datagram Delivery Protocol
|
|
|
|
(DDP), providing SOCK_DGRAM support and
|
|
|
|
.Tn AppleTalk
|
|
|
|
routing.
|
|
|
|
This stack is used by the
|
|
|
|
.Em NETATALK
|
|
|
|
package, which adds support for
|
|
|
|
.Tn AppleTalk
|
|
|
|
server services via user libraries and applications.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options IPNOPRIVPORTS
|
|
|
|
Normally, only root can bind a socket descriptor to a so-called
|
|
|
|
.Dq privileged
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn TCP
|
|
|
|
port, that is, a port number in the range 0-1023.
|
|
|
|
This option eliminates those checks from the kernel.
|
|
|
|
This can be useful if there is a desire to allow daemons without
|
2003-05-06 12:36:29 +04:00
|
|
|
privileges to bind those ports, e.g., on firewalls.
|
1998-04-30 12:50:03 +04:00
|
|
|
The security tradeoffs in doing this are subtle.
|
1996-10-21 03:58:12 +04:00
|
|
|
This option should only be used by experts.
|
|
|
|
.It Cd options TCP_COMPAT_42
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn TCP
|
|
|
|
bug compatibility with
|
1998-02-06 08:54:12 +03:00
|
|
|
.Bx 4.2 .
|
|
|
|
In
|
|
|
|
.Bx 4.2 ,
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn TCP
|
|
|
|
sequence numbers were 32-bit signed values.
|
|
|
|
Modern implementations of TCP use unsigned values.
|
|
|
|
This option clamps the initial sequence number to start in
|
|
|
|
the range 2^31 rather than the full unsigned range of 2^32.
|
|
|
|
Also, under
|
1998-02-06 08:54:12 +03:00
|
|
|
.Bx 4.2 ,
|
|
|
|
keepalive packets must contain at least one byte or else
|
1996-10-21 03:58:12 +04:00
|
|
|
the remote end would not respond.
|
2001-07-08 20:19:59 +04:00
|
|
|
.It Cd options TCP_DEBUG
|
|
|
|
Record the last
|
|
|
|
.Em TCP_NDEBUG
|
|
|
|
TCP packets with SO_DEBUG set, and decode to the console if
|
|
|
|
.Em tcpconsdebug
|
|
|
|
is set.
|
|
|
|
.It Cd options TCP_NDEBUG
|
|
|
|
Number of packets to record for
|
|
|
|
.Em TCP_DEBUG .
|
|
|
|
Defaults to 100.
|
2003-07-04 00:13:26 +04:00
|
|
|
.It Cd options TCP_SENDSPACE=value
|
|
|
|
.It Cd options TCP_RECVSPACE=value
|
2003-07-04 17:28:44 +04:00
|
|
|
These options set the max TCP window size to other sizes than the default.
|
2003-07-04 00:13:26 +04:00
|
|
|
The TCP window sizes can be altered via
|
|
|
|
.Xr sysctl 8
|
|
|
|
as well.
|
|
|
|
.It Cd options TCP_INIT_WIN=value
|
|
|
|
This option sets the initial TCP window size for non-local connections,
|
2003-07-04 17:26:52 +04:00
|
|
|
which is used when the transmission starts.
|
2003-07-08 18:45:48 +04:00
|
|
|
The default size is 1, but if the machine should act more aggressively,
|
2003-07-04 17:26:52 +04:00
|
|
|
the initial size can be set to some other value.
|
|
|
|
The initial TCP window size can be set via
|
2003-07-04 00:13:26 +04:00
|
|
|
.Xr sysctl 8
|
|
|
|
as well.
|
1996-11-15 16:46:02 +03:00
|
|
|
.It Cd options PFIL_HOOKS
|
1998-04-30 12:50:03 +04:00
|
|
|
This option turns on the packet filter interface hooks.
|
|
|
|
See
|
1996-11-15 16:46:02 +03:00
|
|
|
.Xr pfil 9
|
|
|
|
for details.
|
2000-11-24 13:09:46 +03:00
|
|
|
This option assumes
|
|
|
|
.Em INET .
|
1997-04-21 17:00:52 +04:00
|
|
|
.It Cd options IPFILTER_LOG
|
1997-09-28 00:09:42 +04:00
|
|
|
This option, in conjunction with
|
1997-10-28 04:01:08 +03:00
|
|
|
.Em pseudo-device ipfilter ,
|
1997-04-21 17:00:52 +04:00
|
|
|
enables logging of IP packets using ip-filter.
|
1997-06-16 17:38:05 +04:00
|
|
|
.It Cd options IPFILTER_DEFAULT_BLOCK
|
1998-04-30 12:50:03 +04:00
|
|
|
This option sets the default policy of ip-filter.
|
|
|
|
If it is set, ip-filter will block packets by default.
|
2003-02-27 23:00:48 +03:00
|
|
|
.It Cd options BRIDGE_IPF
|
|
|
|
This option causes
|
|
|
|
.Em bridge
|
|
|
|
devices to use the IP and/or IPv6 filtering hooks, forming
|
|
|
|
a link-layer filter that uses protocol-layer rules.
|
|
|
|
This option assumes the presence of
|
|
|
|
.Em pseudo-device ipfilter .
|
2003-02-26 10:34:34 +03:00
|
|
|
.It Cd options MBUFTRACE
|
|
|
|
This option can help track down mbuf leaks.
|
|
|
|
When enabled, mbufs are tagged with the devices and protocols using them,
|
|
|
|
which slightly decreases network performance.
|
|
|
|
This additional information can be viewed with
|
|
|
|
.Xr netstat 1 :
|
|
|
|
.Dl Ic netstat Fl mssv
|
|
|
|
Not all devices or protocols support this option.
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
2004-04-27 07:11:14 +04:00
|
|
|
.Ss Sysctl Related Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options SYSCTL_DISALLOW_CREATE
|
|
|
|
Disallows the creation or deletion of nodes from the sysctl tree, as
|
|
|
|
well as the assigning of descriptions to nodes that lack them, by any
|
|
|
|
process.
|
|
|
|
These operations are still available to kernel sub-systems, including
|
|
|
|
loadable kernel modules.
|
|
|
|
.It Cd options SYSCTL_DISALLOW_KWRITE
|
|
|
|
Prevents processes from adding nodes to the sysctl tree that make
|
|
|
|
existing kernel memory areas writeable.
|
|
|
|
Sections of kernel memory can still be read and new nodes that own
|
2004-10-04 23:12:52 +04:00
|
|
|
their own data may still be writeable.
|
2004-04-27 07:11:14 +04:00
|
|
|
.It Cd options SYSCTL_DEBUG_SETUP
|
|
|
|
Causes the SYSCTL_SETUP routines to print a brief message when they
|
|
|
|
are invoked.
|
|
|
|
This is merely meant as an aid in determining the order in which
|
|
|
|
sections of the tree are created.
|
|
|
|
.It Cd options SYSCTL_DEBUG_CREATE
|
|
|
|
Prints a message each time
|
|
|
|
.Fn sysctl_create ,
|
|
|
|
the function that adds nodes to the tree, is called.
|
|
|
|
.It Cd options SYSCTL_INCLUDE_DESCR
|
|
|
|
Causes the kernel to include short, human readable descriptions for
|
|
|
|
nodes in the sysctl tree.
|
|
|
|
The descriptions can be retrieved programmatically (see
|
|
|
|
.Xr sysctl 3 ) ,
|
|
|
|
or by the sysctl binary itself (see
|
|
|
|
.Xr sysctl 8 ) .
|
|
|
|
The descriptions are meant to give an indication of the purpose and/or
|
|
|
|
effects of a given node's value, not replace the documentation for the
|
|
|
|
given subsystem as a whole.
|
|
|
|
.El
|
1996-10-21 03:58:12 +04:00
|
|
|
.Ss System V IPC Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options SYSVMSG
|
|
|
|
Includes support for
|
|
|
|
.At V
|
1998-04-30 12:50:03 +04:00
|
|
|
style message queues.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr msgctl 2 ,
|
|
|
|
.Xr msgget 2 ,
|
|
|
|
.Xr msgrcv 2 ,
|
|
|
|
.Xr msgsnd 2 .
|
|
|
|
.It Cd options SYSVSEM
|
|
|
|
Includes support for
|
|
|
|
.At V
|
1998-04-30 12:50:03 +04:00
|
|
|
style semaphores.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr semctl 2 ,
|
|
|
|
.Xr semget 2 ,
|
|
|
|
.Xr semop 2 .
|
2001-06-27 17:25:25 +04:00
|
|
|
.It Cd options SEMMNI=value
|
|
|
|
Sets the number of
|
|
|
|
.At V
|
2002-10-16 23:48:33 +04:00
|
|
|
style semaphore identifiers.
|
|
|
|
The GENERIC config file for your port will have the default.
|
2001-06-27 17:25:25 +04:00
|
|
|
.It Cd options SEMMNS=value
|
|
|
|
Sets the number of
|
|
|
|
.At V
|
2002-10-16 23:48:33 +04:00
|
|
|
style semaphores in the system.
|
|
|
|
The GENERIC config file for your port will have the default.
|
2001-06-27 17:25:25 +04:00
|
|
|
.It Cd options SEMUME=value
|
|
|
|
Sets the maximum number of undo entries per process for
|
|
|
|
.At V
|
2002-10-16 23:48:33 +04:00
|
|
|
style semaphores.
|
|
|
|
The GENERIC config file for your port will have the default.
|
2001-06-27 17:25:25 +04:00
|
|
|
.It Cd options SEMMNU=value
|
|
|
|
Sets the number of undo structures in the system for
|
|
|
|
.At V
|
2002-10-16 23:48:33 +04:00
|
|
|
style semaphores.
|
|
|
|
The GENERIC config file for your port will have the default.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options SYSVSHM
|
|
|
|
Includes support for
|
|
|
|
.At V
|
1998-04-30 12:50:03 +04:00
|
|
|
style shared memory.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr shmat 2 ,
|
|
|
|
.Xr shmctl 2 ,
|
|
|
|
.Xr shmdt 2 ,
|
|
|
|
.Xr shmget 2 .
|
1998-10-10 18:02:15 +04:00
|
|
|
.It Cd options SHMMAXPGS=value
|
1996-10-21 03:58:12 +04:00
|
|
|
Sets the maximum number of
|
|
|
|
.At V
|
|
|
|
style shared memory pages that are available through the
|
|
|
|
.Xr shmget 2
|
1998-04-30 12:50:03 +04:00
|
|
|
system call.
|
|
|
|
Default value is 1024 on most ports.
|
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for the default.
|
|
|
|
.El
|
|
|
|
.Ss VM Related Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options NMBCLUSTERS=value
|
2002-10-16 23:48:33 +04:00
|
|
|
The number of mbuf clusters the kernel supports.
|
|
|
|
Mbuf clusters are MCLBYTES in size (usually 2k).
|
|
|
|
This is used to compute the size of the kernel VM map
|
1996-11-15 16:46:02 +03:00
|
|
|
.Em mb_map ,
|
1999-03-23 03:33:32 +03:00
|
|
|
which maps mbuf clusters.
|
2002-08-02 23:21:57 +04:00
|
|
|
Default on most ports is 1024 (2048 with
|
1999-03-23 03:33:32 +03:00
|
|
|
.Dq options GATEWAY
|
|
|
|
).
|
1996-11-15 16:46:02 +03:00
|
|
|
See
|
1996-10-21 03:58:12 +04:00
|
|
|
.Pa /usr/include/machine/param.h
|
1998-04-30 12:50:03 +04:00
|
|
|
for exact default information.
|
|
|
|
Increase this value if you get
|
2002-08-02 23:21:57 +04:00
|
|
|
.Dq mclpool limit reached
|
1996-10-21 03:58:12 +04:00
|
|
|
messages.
|
2000-02-12 21:14:37 +03:00
|
|
|
.It Cd options NKMEMPAGES=value
|
|
|
|
.It Cd options NKMEMPAGES_MIN=value
|
|
|
|
.It Cd options NKMEMPAGES_MAX=value
|
1999-03-23 03:33:32 +03:00
|
|
|
Size of kernel VM map
|
|
|
|
.Em kmem_map ,
|
2000-02-12 21:14:37 +03:00
|
|
|
in PAGE_SIZE-sized chunks (the VM page size; this value may be read
|
1999-03-23 03:33:32 +03:00
|
|
|
from the
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable
|
|
|
|
.Em hw.pagesize
|
|
|
|
).
|
|
|
|
This VM map is used to map the kernel malloc arena.
|
2000-02-12 21:14:37 +03:00
|
|
|
The kernel attempts to auto-size this map based on the amount of
|
2002-10-16 23:48:33 +04:00
|
|
|
physical memory in the system.
|
|
|
|
Platform-specific code may place bounds on this computed size,
|
|
|
|
which may be viewed with the
|
2000-02-12 21:14:37 +03:00
|
|
|
.Xr sysctl 8
|
|
|
|
variable
|
|
|
|
.Em vm.nkmempages .
|
1996-10-21 03:58:12 +04:00
|
|
|
See
|
|
|
|
.Pa /usr/include/machine/param.h
|
2000-02-12 21:14:37 +03:00
|
|
|
for the default upper and lower bounds.
|
|
|
|
The related options
|
|
|
|
.Sq NKMEMPAGES_MIN
|
|
|
|
and
|
|
|
|
.Sq NKMEMPAGES_MAX
|
|
|
|
allow the bounds to be overridden in the kernel configuration file.
|
|
|
|
These options are provided in the event the computed value is
|
|
|
|
insufficient resulting in an
|
1996-10-21 03:58:12 +04:00
|
|
|
.Dq out of space in kmem_map
|
2000-02-12 21:14:37 +03:00
|
|
|
panic.
|
2003-07-04 00:13:26 +04:00
|
|
|
.It Cd options SB_MAX=value
|
|
|
|
Sets the max size in bytes that a socket buffer is allowed to occupy.
|
2003-07-04 17:28:44 +04:00
|
|
|
The default is 256k, but sometimes it needs to be increased, for example
|
2003-07-04 17:26:52 +04:00
|
|
|
when using large TCP windows.
|
|
|
|
This option can be changed via
|
2003-07-04 00:13:26 +04:00
|
|
|
.Xr sysctl 8
|
|
|
|
as well.
|
2003-07-04 17:11:14 +04:00
|
|
|
.It Cd options SOMAXKVA=value
|
2003-07-04 00:13:26 +04:00
|
|
|
Sets the maximum size of kernel virtual memory that the socket buffers
|
2003-07-04 17:26:52 +04:00
|
|
|
are allowed to use.
|
|
|
|
The default is 16MB, but in situations where for example large TCP
|
|
|
|
windows are used this value must also be increased.
|
2003-07-04 00:13:26 +04:00
|
|
|
This option can be changed via
|
|
|
|
.Xr sysctl 8
|
|
|
|
as well.
|
1998-11-01 12:59:33 +03:00
|
|
|
.It Cd options BUFCACHE=value
|
|
|
|
Size of the buffer cache as a percentage of total available
|
|
|
|
.Tn RAM .
|
1998-11-02 07:39:51 +03:00
|
|
|
Ignored if BUFPAGES is also specified.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options NBUF=value
|
2003-07-04 17:26:52 +04:00
|
|
|
Sets the number of buffer headers available, i.e., the number of
|
2003-05-06 12:36:29 +04:00
|
|
|
open files that may have a buffer cache entry.
|
|
|
|
Each buffer header
|
2003-05-04 05:56:52 +04:00
|
|
|
requires MAXBSIZE (machine dependent, but usually 65536) bytes.
|
|
|
|
The default value is machine dependent, but is usually equal to the
|
|
|
|
value of BUFPAGES.
|
|
|
|
If an architecture dependent VM_MAX_KERNEL_BUF constant is defined
|
|
|
|
then NBUF may be reduced at run time so that the storage allocated
|
|
|
|
for buffer headers doesn't exceed that limit.
|
1996-10-21 03:58:12 +04:00
|
|
|
.It Cd options BUFPAGES=value
|
1998-11-01 12:59:33 +03:00
|
|
|
These options set the number of pages available for the buffer cache.
|
1997-08-29 14:38:02 +04:00
|
|
|
Their default value is a machine dependent value, often calculated as
|
1998-04-30 12:50:03 +04:00
|
|
|
between 5% and 10% of total available
|
|
|
|
.Tn RAM .
|
2001-09-22 12:43:28 +04:00
|
|
|
.It Cd options MAXTSIZ=bytes
|
2002-10-16 23:48:33 +04:00
|
|
|
Sets the maximum size limit of a process' text segment.
|
|
|
|
See
|
2001-09-22 12:43:28 +04:00
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for the port-specific default.
|
|
|
|
.It Cd options DFLDSIZ=bytes
|
|
|
|
Sets the default size limit of a process' data segment, the value that
|
|
|
|
will be returned as the soft limit for
|
|
|
|
.Dv RLIMIT_DATA
|
|
|
|
(as returned by
|
2001-09-22 20:39:25 +04:00
|
|
|
.Xr getrlimit 2 ) .
|
2001-09-22 12:43:28 +04:00
|
|
|
See
|
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for the port-specific default.
|
|
|
|
.It Cd options MAXDSIZ=bytes
|
|
|
|
Sets the maximum size limit of a process' data segment, the value that
|
|
|
|
will be returned as the hard limit for
|
|
|
|
.Dv RLIMIT_DATA
|
|
|
|
(as returned by
|
2001-09-22 20:39:25 +04:00
|
|
|
.Xr getrlimit 2 ) .
|
2001-09-22 12:43:28 +04:00
|
|
|
See
|
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for the port-specific default.
|
|
|
|
.It Cd options DFLSSIZ=bytes
|
|
|
|
Sets the default size limit of a process' stack segment, the value that
|
|
|
|
will be returned as the soft limit for
|
|
|
|
.Dv RLIMIT_STACK
|
|
|
|
(as returned by
|
2001-09-22 20:39:25 +04:00
|
|
|
.Xr getrlimit 2 ) .
|
2001-09-22 12:43:28 +04:00
|
|
|
See
|
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for the port-specific default.
|
|
|
|
.It Cd options MAXSSIZ=bytes
|
|
|
|
Sets the maximum size limit of a process' stack segment, the value that
|
|
|
|
will be returned as the hard limit for
|
|
|
|
.Dv RLIMIT_STACK
|
|
|
|
(as returned by
|
2001-09-22 20:39:25 +04:00
|
|
|
.Xr getrlimit 2 ) .
|
2001-09-22 12:43:28 +04:00
|
|
|
See
|
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for the port-specific default.
|
2003-02-10 03:35:15 +03:00
|
|
|
.It Cd options DUMP_ON_PANIC=integer
|
|
|
|
Defaults to one.
|
|
|
|
If set to zero, the kernel will not dump to the dump device when
|
|
|
|
it panics, though dumps can still be forced via
|
|
|
|
.Xr ddb 4
|
|
|
|
with the
|
|
|
|
.Dq sync
|
|
|
|
command.
|
|
|
|
Note that this sets the value of the
|
|
|
|
.Em kern.dump_on_panic
|
|
|
|
.Xr sysctl 3
|
|
|
|
variable which may be changed at run time -- see
|
|
|
|
.Xr sysctl 8
|
|
|
|
for details.
|
2003-02-21 01:16:05 +03:00
|
|
|
.It Cd options USE_TOPDOWN_VM
|
|
|
|
User space memory allocations (as made by
|
|
|
|
.Xr mmap 2 )
|
|
|
|
will be arranged in a
|
|
|
|
.Dq top down
|
|
|
|
fashion instead of the traditional
|
|
|
|
.Dq upwards from MAXDSIZ \+ vm_daddr
|
|
|
|
method.
|
|
|
|
This includes the placement of
|
|
|
|
.Xr ld.so 1 .
|
|
|
|
Arranging memory in this manner allows either (or both of) the heap or
|
|
|
|
.Xr mmap 2
|
|
|
|
allocated space to grow larger than traditionally possible.
|
|
|
|
This option is not available on all ports, but is instead expected to be
|
|
|
|
offered on a port-by-port basis, after which some ports will commit to
|
|
|
|
using it by default.
|
|
|
|
See the files
|
|
|
|
.Pa /usr/include/uvm/uvm_param.h
|
|
|
|
for some implementation details, and
|
|
|
|
.Pa /usr/include/machine/vmparam.h
|
|
|
|
for port specific details including availability.
|
1996-10-21 03:58:12 +04:00
|
|
|
.El
|
1998-01-18 22:07:19 +03:00
|
|
|
.Ss amiga-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options BB060STUPIDROM
|
1998-04-30 12:50:03 +04:00
|
|
|
When the bootloader (which passes
|
|
|
|
.Tn AmigaOS
|
|
|
|
.Tn ROM
|
|
|
|
information) claims we have a 68060
|
|
|
|
.Tn CPU
|
|
|
|
without
|
|
|
|
.Tn FPU ,
|
|
|
|
go look into the Processor Configuration Register (PCR) to find out.
|
|
|
|
You need this with
|
|
|
|
.Tn Amiga
|
|
|
|
.Tn ROM Ns s
|
|
|
|
up to (at least) V40.xxx (OS3.1),
|
1998-01-18 22:07:19 +03:00
|
|
|
when you boot via the bootblocks and don't have a DraCo.
|
2001-03-11 02:55:29 +03:00
|
|
|
.It Cd options IOBZCLOCK=frequency
|
|
|
|
The IOBlix boards come with two different serial master clocks: older ones
|
2002-10-16 23:48:33 +04:00
|
|
|
use 24 MHz, newer ones use 22.1184 MHz.
|
|
|
|
The driver normally assumes the latter.
|
2001-04-04 14:52:23 +04:00
|
|
|
If your board uses 24 MHz, you can recompile your kernel with
|
2001-03-11 02:55:29 +03:00
|
|
|
options IOBZCLOCK=24000000
|
2001-04-04 14:52:23 +04:00
|
|
|
or patch the kernel variable
|
2001-03-11 02:55:29 +03:00
|
|
|
.Tn iobzclock
|
|
|
|
to the same value.
|
1998-02-10 01:14:43 +03:00
|
|
|
.It Cd options LIMITMEM=value
|
1998-04-28 10:00:51 +04:00
|
|
|
If there, limit the part of the first memory bank used by
|
|
|
|
.Nx
|
|
|
|
to value megabytes.
|
|
|
|
Default is unlimited.
|
1998-02-23 01:51:46 +03:00
|
|
|
.It Cd options NKPTADD=addvalue
|
|
|
|
.It Cd options NKPTADDSHIFT=shiftvalue
|
1998-04-30 12:50:03 +04:00
|
|
|
The
|
|
|
|
.Tn CPU
|
|
|
|
specific
|
|
|
|
.Tn MMU
|
|
|
|
table for the kernel is pre-allocated at kernel startup time.
|
|
|
|
Part of it is scaled with
|
|
|
|
.Va maxproc ,
|
|
|
|
to have enough room to hold the user program
|
|
|
|
.Tn MMU
|
|
|
|
tables; the second part is a fixed amount for the kernel itself.
|
|
|
|
.Pp
|
|
|
|
The third part accounts for the size of the file buffer cache.
|
|
|
|
Its size is either
|
|
|
|
.Dv NKPTADD
|
|
|
|
pages (if defined) or memory size in bytes divided by two to
|
|
|
|
the power of
|
|
|
|
.Dv NKPTADDSHIFT .
|
|
|
|
The default is undefined
|
|
|
|
.Dv NKPTADD
|
|
|
|
and
|
|
|
|
.Dv NKPTADDSHIFT=24 ,
|
|
|
|
allowing for 16 buffers per megabyte of main memory (while
|
|
|
|
a GENERIC kernel allocates about half of that).
|
|
|
|
When you get "can't get KPT page" panics, you should increase
|
|
|
|
.Dv NKPTADD
|
|
|
|
(if defined), or decrease
|
|
|
|
.Dv NKPTADDSHIFT
|
|
|
|
by one.
|
2000-02-13 00:30:51 +03:00
|
|
|
.It Cd options P5PPC68KBOARD
|
2002-10-16 23:48:33 +04:00
|
|
|
Add special support for Phase5 mixed 68k+PPC boards.
|
|
|
|
Currently, this only affects rebooting from
|
2001-06-05 17:45:10 +04:00
|
|
|
.Nx
|
|
|
|
and is only needed on 68040+PPC, not on
|
|
|
|
68060+PPC; without this, affected machines will hang after
|
|
|
|
.Nx
|
|
|
|
has shut
|
2000-02-13 00:30:51 +03:00
|
|
|
down and will only restart after a keyboard reset or a power cycle.
|
1999-03-10 12:29:08 +03:00
|
|
|
.El
|
2000-07-25 13:56:41 +04:00
|
|
|
.Ss arm32-specific Options
|
|
|
|
.Bl -ohang
|
2003-02-03 01:53:57 +03:00
|
|
|
.It Cd options FRENCH_KBD
|
2000-09-21 15:44:53 +04:00
|
|
|
Include translation for French keyboards when using
|
2003-02-03 01:53:57 +03:00
|
|
|
.Em pccons
|
2000-07-25 13:56:41 +04:00
|
|
|
on a Shark.
|
2003-02-03 01:53:57 +03:00
|
|
|
.It Cd options FINNISH_KBD
|
2001-04-04 14:52:23 +04:00
|
|
|
Include translation for Finnish keyboards when using
|
2003-02-03 01:53:57 +03:00
|
|
|
.Em pccons
|
2000-07-25 13:56:41 +04:00
|
|
|
on a Shark.
|
2003-02-03 01:53:57 +03:00
|
|
|
.It Cd options GERMAN_KBD
|
2001-04-04 14:52:23 +04:00
|
|
|
Include translation for German keyboards when using
|
2003-02-03 01:53:57 +03:00
|
|
|
.Em pccons
|
2000-07-25 13:56:41 +04:00
|
|
|
on a Shark.
|
2003-02-03 01:53:57 +03:00
|
|
|
.It Cd options NORWEGIAN_KBD
|
2001-04-04 14:52:23 +04:00
|
|
|
Include translation for French keyboards when using
|
2003-02-03 01:53:57 +03:00
|
|
|
.Em pccons
|
2000-07-25 13:56:41 +04:00
|
|
|
on a Shark.
|
2000-07-31 15:40:04 +04:00
|
|
|
.El
|
1997-12-10 17:45:47 +03:00
|
|
|
.Ss atari-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options DISKLABEL_AHDI
|
|
|
|
Include support for AHDI (native Atari) disklabels.
|
|
|
|
.It Cd options DISKLABEL_NBDA
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx Ns Tn /atari
|
1998-04-30 12:50:03 +04:00
|
|
|
labels.
|
|
|
|
If you don't set this option, it will be set automatically.
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx Ns Tn /atari
|
|
|
|
will not work without it.
|
1997-12-10 17:45:47 +03:00
|
|
|
.It Cd options FALCON_SCSI
|
|
|
|
Include support for the 5380-SCSI configuration as found on the Falcon.
|
|
|
|
.It Cd options RELOC_KERNEL
|
1998-04-30 12:50:03 +04:00
|
|
|
If set, the kernel will relocate itself to TT-RAM, if possible.
|
|
|
|
This will give you a slightly faster system.
|
|
|
|
.Em Beware
|
|
|
|
that on some TT030 systems,
|
1997-12-10 17:45:47 +03:00
|
|
|
the system will frequently dump with MMU-faults with this option enabled.
|
|
|
|
.It Cd options SERCONSOLE
|
1998-04-28 10:00:51 +04:00
|
|
|
Allow the modem1-port to act as the system-console.
|
|
|
|
A carrier should be active on modem1 during system boot to active
|
|
|
|
the console functionality.
|
1997-12-10 17:45:47 +03:00
|
|
|
.It Cd options TT_SCSI
|
|
|
|
Include support for the 5380-SCSI configuration as found on the TT030
|
|
|
|
and Hades.
|
|
|
|
.El
|
1997-10-08 13:45:19 +04:00
|
|
|
.Ss i386-specific Options
|
|
|
|
.Bl -ohang
|
1997-10-08 14:12:21 +04:00
|
|
|
.It Cd options I386_CPU,I486_CPU,I586_CPU,I686_CPU
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for a particular class of
|
|
|
|
.Tn CPU
|
|
|
|
.Po
|
|
|
|
.Tn i386 ,
|
|
|
|
.Tn i486 ,
|
|
|
|
.Tn Pentium ,
|
|
|
|
or
|
|
|
|
.Tn Pentium Pro
|
|
|
|
.Pc .
|
|
|
|
If the appropriate class for your
|
|
|
|
.Tn CPU
|
|
|
|
is not configured, the kernel will use the highest class available
|
|
|
|
that will work.
|
|
|
|
In general, using the correct
|
|
|
|
.Tn CPU
|
|
|
|
class will result in the best performance.
|
|
|
|
At least one of these options must be present.
|
2004-04-30 06:14:17 +04:00
|
|
|
.It Cd options ENHANCED_SPEEDSTEP
|
|
|
|
Include support for the
|
2004-07-11 13:54:40 +04:00
|
|
|
.Tn Enhanced SpeedStep Technology
|
2004-04-30 06:14:17 +04:00
|
|
|
present in newer
|
|
|
|
.Tn CPU Ns s .
|
2004-07-11 13:45:04 +04:00
|
|
|
.It Cd options EST_FREQ_USERWRITE
|
|
|
|
Allow any user to change the frequency of an
|
2004-07-11 13:54:40 +04:00
|
|
|
.Tn Enhanced SpeedStep Technology
|
2004-07-11 13:45:04 +04:00
|
|
|
capable
|
|
|
|
.Tn CPU .
|
1998-10-13 17:32:44 +04:00
|
|
|
.It Cd options CPURESET_DELAY=value
|
2004-04-30 06:14:17 +04:00
|
|
|
Specifies the time (in millisecond) to wait before doing a hardware reset
|
2002-10-16 23:48:33 +04:00
|
|
|
in the last phase of a reboot.
|
|
|
|
This gives the user a chance to see error messages from the shutdown
|
|
|
|
operations (like NFS unmounts, buffer cache flush, etc ...).
|
|
|
|
Setting this to 0 will disable the delay.
|
|
|
|
Default is 2 seconds.
|
1997-10-08 14:12:21 +04:00
|
|
|
.It Cd options MATH_EMULATE
|
1998-04-30 12:50:03 +04:00
|
|
|
Include the floating point emulator.
|
|
|
|
This is useful only for
|
|
|
|
.Tn CPU Ns s
|
|
|
|
that lack an
|
|
|
|
internal Floating Point Unit
|
|
|
|
.Pq Tn FPU
|
|
|
|
or co-processor.
|
1997-10-08 14:12:21 +04:00
|
|
|
.It Cd options VM86
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for virtual 8086 mode, used by
|
|
|
|
.Tn DOS
|
2003-05-06 12:36:29 +04:00
|
|
|
emulators and X servers to run BIOS code, e.g., for some VESA routines.
|
1997-10-08 14:12:21 +04:00
|
|
|
.It Cd options USER_LDT
|
|
|
|
Include i386-specific system calls for modifying the local descriptor table,
|
|
|
|
used by Windows emulators.
|
1998-09-18 16:38:54 +04:00
|
|
|
.It Cd options REALBASEMEM=integer
|
1998-04-30 12:50:03 +04:00
|
|
|
Overrides the base memory size passed in from the boot block.
|
1998-09-18 16:38:54 +04:00
|
|
|
(Value given in kilobytes.)
|
1998-04-30 12:50:03 +04:00
|
|
|
Use this option only if the boot block reports the size incorrectly.
|
|
|
|
(Note that some
|
|
|
|
.Tn BIOS Ns es
|
|
|
|
put the extended
|
|
|
|
.Tn BIOS
|
|
|
|
data area at the top of base memory, and therefore report a smaller
|
|
|
|
base memory size to prevent programs overwriting it.
|
1998-04-28 10:00:51 +04:00
|
|
|
This is correct behavior, and you should not use the
|
1997-10-08 13:45:19 +04:00
|
|
|
.Em REALBASEMEM
|
1998-04-30 12:50:03 +04:00
|
|
|
option to access this memory).
|
1998-09-18 16:38:54 +04:00
|
|
|
.It Cd options REALEXTMEM=integer
|
1998-04-30 12:50:03 +04:00
|
|
|
Overrides the extended memory size passed in from the boot block.
|
2002-10-16 23:48:33 +04:00
|
|
|
(Value given in kilobytes.
|
|
|
|
Extended memory does not include the first megabyte.)
|
1998-04-30 12:50:03 +04:00
|
|
|
Use this option only if the boot block reports the size incorrectly.
|
1998-07-28 03:56:34 +04:00
|
|
|
.It Cd options FRENCH_KBD,FINNISH_KBD,GERMAN_KBD,NORWEGIAN_KBD
|
2001-04-04 14:52:23 +04:00
|
|
|
Select a non-US keyboard layout for the
|
1998-07-27 17:39:51 +04:00
|
|
|
.Em pccons
|
|
|
|
console driver.
|
1999-06-06 23:44:55 +04:00
|
|
|
.It Cd options CYRIX_CACHE_WORKS
|
2004-02-13 12:55:51 +03:00
|
|
|
Relevant only to the Cyrix 486DLC CPU.
|
2002-10-16 23:48:33 +04:00
|
|
|
This option is used to turn on the cache in hold-flush mode.
|
|
|
|
It is not turned on by default because it is known to have problems in
|
|
|
|
certain motherboard implementations.
|
1999-06-06 23:44:55 +04:00
|
|
|
.It Cd options CYRIX_CACHE_REALLY_WORKS
|
2004-02-13 12:55:51 +03:00
|
|
|
Relevant only to the Cyrix 486DLC CPU.
|
2002-10-16 23:48:33 +04:00
|
|
|
This option is used to turn on the cache in write-back mode.
|
|
|
|
It is not turned on by default because it is known to have problems in
|
|
|
|
certain motherboard implementations.
|
|
|
|
In order for this option to take effect, option
|
2001-04-04 14:52:23 +04:00
|
|
|
.Em CYRIX_CACHE_WORKS
|
|
|
|
must also be specified.
|
2000-04-17 20:58:38 +04:00
|
|
|
.It Cd options PCIBIOS
|
|
|
|
Enable support for initializing the
|
|
|
|
.Tn PCI
|
|
|
|
bus using information from the
|
|
|
|
.Tn BIOS .
|
|
|
|
See
|
|
|
|
.Xr pcibios 4
|
|
|
|
for details.
|
2002-07-03 07:05:03 +04:00
|
|
|
.It Cd options KSTACK_CHECK_DR0
|
2002-10-16 23:48:33 +04:00
|
|
|
Detect kernel stack overflow using DR0 register.
|
|
|
|
This option uses DR0 register exclusively so you can't use DR0 register for
|
2003-05-06 12:36:29 +04:00
|
|
|
other purpose (e.g., hardware breakpoint) if you turn this on.
|
2003-05-02 13:11:07 +04:00
|
|
|
.It Cd options MTRR
|
2003-05-06 12:36:29 +04:00
|
|
|
Include support for accessing MTRR registers from user-space.
|
|
|
|
See
|
|
|
|
.Xr i386_get_mtrr 2 .
|
2004-04-02 19:42:27 +04:00
|
|
|
.It Cd options BEEP_ONHALT
|
|
|
|
Make the system speaker emit several beeps when it is completely safe to
|
|
|
|
power down the computer after a
|
|
|
|
.Xr halt 8
|
|
|
|
command.
|
|
|
|
Requires
|
|
|
|
.Xr sysbeep 4
|
|
|
|
support.
|
|
|
|
.It Cd options BEEP_ONHALT_COUNT=times
|
|
|
|
Number of times to beep the speaker when
|
|
|
|
.Cd options BEEP_ONHALT
|
|
|
|
is enabled.
|
|
|
|
Defaults to 3.
|
|
|
|
.It Cd options BEEP_ONHALT_PITCH=hz
|
|
|
|
The tone frequency used when
|
|
|
|
.Cd options BEEP_ONHALT
|
2004-04-03 04:08:04 +04:00
|
|
|
option, in hertz.
|
2004-04-02 19:42:27 +04:00
|
|
|
Defaults to 1500.
|
|
|
|
.It Cd options BEEP_ONHALT_PERIOD=msecs
|
|
|
|
The duration of each beep when
|
|
|
|
.Cd options BEEP_ONHALT
|
|
|
|
is enabled, in milliseconds.
|
|
|
|
Defaults to 250.
|
1997-10-08 13:45:19 +04:00
|
|
|
.El
|
2000-04-13 23:40:02 +04:00
|
|
|
.Ss isa-specific Options
|
|
|
|
Options specific to
|
|
|
|
.Xr isa 4
|
|
|
|
busses.
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options PCIC_ISA_ALLOC_IOBASE=address, PCIC_ISA_ALLOC_IOSIZE=size
|
|
|
|
Control the section of IO bus space used for PCMCIA bus space mapping.
|
|
|
|
Ideally the probed defaults are satisfactory, however in practice
|
2002-10-16 23:48:33 +04:00
|
|
|
that is not always the case.
|
|
|
|
See
|
2000-04-13 23:40:02 +04:00
|
|
|
.Xr pcmcia 4
|
|
|
|
for details.
|
2000-08-30 23:05:47 +04:00
|
|
|
.It Cd options PCIC_ISA_INTR_ALLOC_MASK=mask
|
|
|
|
Controls the allowable interrupts that may be used for
|
|
|
|
.Tn PCMCIA
|
2002-10-16 23:48:33 +04:00
|
|
|
devices.
|
|
|
|
This mask is a logical-or of power-of-2s of allowable interrupts:
|
2000-08-30 23:05:47 +04:00
|
|
|
.Bd -literal -offset 04n
|
|
|
|
.Em "IRQ Val IRQ Val IRQ Val IRQ Val"
|
|
|
|
0 0x0001 4 0x0010 8 0x0100 12 0x1000
|
|
|
|
1 0x0002 5 0x0020 9 0x0200 13 0x2000
|
|
|
|
2 0x0004 6 0x0040 10 0x0400 14 0x4000
|
|
|
|
3 0x0008 7 0x0080 11 0x0800 15 0x8000
|
|
|
|
.Ed
|
2000-04-13 23:40:02 +04:00
|
|
|
.El
|
1997-12-10 17:45:47 +03:00
|
|
|
.Ss m68k-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options FPU_EMULATE
|
|
|
|
Include support for MC68881/MC68882 emulator.
|
|
|
|
.It Cd options FPSP
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for 68040 floating point.
|
1998-01-18 21:43:54 +03:00
|
|
|
.It Cd options M68020,M68030,M68040,M68060
|
1998-04-30 12:50:03 +04:00
|
|
|
Include support for a specific
|
|
|
|
.Tn CPU ,
|
|
|
|
at least one (the one you are using) should be specified.
|
1997-12-10 17:45:47 +03:00
|
|
|
.It Cd options M060SP
|
1998-04-30 12:50:03 +04:00
|
|
|
Include software support for 68060.
|
|
|
|
This provides emulation of unimplemented
|
|
|
|
integer instructions as well as emulation of unimplemented floating point
|
1998-01-18 21:43:54 +03:00
|
|
|
instructions and data types and software support for floating point traps.
|
1997-12-10 17:45:47 +03:00
|
|
|
.El
|
2004-03-17 17:15:30 +03:00
|
|
|
.Ss powerpc-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options PMAP_MEMLIMIT=value
|
|
|
|
Limit the amount of memory seen by the kernel to
|
|
|
|
.Ar value
|
|
|
|
bytes (OEA only).
|
|
|
|
.El
|
1998-08-26 07:03:33 +04:00
|
|
|
.Ss sparc-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options AUDIO_DEBUG
|
|
|
|
Enable simple event debugging of the logging of the
|
2001-04-04 14:52:23 +04:00
|
|
|
.Xr audio 4
|
1998-08-26 07:03:33 +04:00
|
|
|
device.
|
|
|
|
.It Cd options BLINK
|
2002-10-16 23:48:33 +04:00
|
|
|
Enable blinking of LED.
|
|
|
|
Blink rate is full cycle every N seconds for
|
|
|
|
N \*[Lt] then current load average.
|
|
|
|
See
|
1998-08-26 07:03:33 +04:00
|
|
|
.Xr getloadavg 3 .
|
|
|
|
.\" .It Cd options COLORFONT_CACHE
|
2003-07-04 17:26:52 +04:00
|
|
|
.\" What does this do?
|
1998-08-26 07:03:33 +04:00
|
|
|
.It Cd options COUNT_SW_LEFTOVERS
|
|
|
|
Count how many times the sw SCSI device has left 3, 2, 1 and 0 in the
|
|
|
|
sw_3_leftover, sw_2_leftover, sw_1_leftover, and sw_0_leftover
|
2001-06-12 15:26:21 +04:00
|
|
|
variables accessible from
|
1998-08-26 07:03:33 +04:00
|
|
|
.Xr ddb 4 .
|
|
|
|
See
|
|
|
|
.Xr sw 4 .
|
|
|
|
.It Cd options DEBUG_ALIGN
|
|
|
|
Adds debugging messages calls when user-requested alignment fault
|
|
|
|
handling happens.
|
|
|
|
.It Cd options DEBUG_EMUL
|
|
|
|
Adds debugging messages calls for emulated floating point and
|
|
|
|
alignment fixing operations.
|
|
|
|
.It Cd options DEBUG_SVR4
|
|
|
|
Prints registers messages calls for emulated SVR4 getcontext and
|
2002-10-16 23:48:33 +04:00
|
|
|
setcontext operations.
|
|
|
|
See
|
1998-08-26 07:03:33 +04:00
|
|
|
.Em options COMPAT_SVR4 .
|
|
|
|
.It Cd options EXTREME_DEBUG
|
|
|
|
Adds debugging functions callable from
|
2002-10-16 23:48:33 +04:00
|
|
|
.Xr ddb 4 .
|
|
|
|
The debug_pagetables, test_region and print_fe_map
|
1998-08-26 07:03:33 +04:00
|
|
|
functions print information about page tables for the SUN4M
|
|
|
|
platforms only.
|
|
|
|
.It Cd options EXTREME_EXTREME_DEBUG
|
|
|
|
Adds extra info to
|
2000-11-08 21:19:19 +03:00
|
|
|
.Em options EXTREME_DEBUG .
|
1998-08-26 07:03:33 +04:00
|
|
|
.It Cd options FPU_CONTEXT
|
|
|
|
Make
|
|
|
|
.Em options COMPAT_SVR4
|
|
|
|
getcontext and setcontext include floating point registers.
|
|
|
|
.It Cd options MAGMA_DEBUG
|
|
|
|
Adds debugging messages to the
|
|
|
|
.Xr magma 4
|
|
|
|
device.
|
|
|
|
.It Cd options RASTERCONS_FULLSCREEN
|
|
|
|
Use the entire screen for the console.
|
|
|
|
.It Cd options RASTERCONS_SMALLFONT
|
2002-07-05 22:33:20 +04:00
|
|
|
Use the Fixed font on the console, instead of the normal font.
|
1998-08-26 07:03:33 +04:00
|
|
|
.It Cd options SUN4
|
|
|
|
Support sun4 class machines.
|
|
|
|
.It Cd options SUN4C
|
|
|
|
Support sun4c class machines.
|
|
|
|
.It Cd options SUN4M
|
|
|
|
Support sun4m class machines.
|
|
|
|
.It Cd options SUN4_MMU3L
|
|
|
|
.\" XXX ???
|
|
|
|
Enable support for sun4 3-level MMU machines.
|
|
|
|
.It Cd options V9
|
|
|
|
Enable SPARC V9 assembler in
|
|
|
|
.Xr ddb 4 .
|
|
|
|
.El
|
2001-12-05 16:28:54 +03:00
|
|
|
.Ss sparc64-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options AUDIO_DEBUG
|
|
|
|
Enable simple event debugging of the logging of the
|
|
|
|
.Xr audio 4
|
|
|
|
device.
|
|
|
|
.It Cd options BLINK
|
2002-10-16 23:48:33 +04:00
|
|
|
Enable blinking of LED.
|
|
|
|
Blink rate is full cycle every N seconds for
|
|
|
|
N \*[Lt] then current load average.
|
|
|
|
See
|
2001-12-05 16:28:54 +03:00
|
|
|
.Xr getloadavg 3 .
|
|
|
|
.El
|
1999-03-29 12:58:30 +04:00
|
|
|
.Ss x68k-specific Options
|
|
|
|
.Bl -ohang
|
|
|
|
.It Cd options EXTENDED_MEMORY
|
2003-05-06 12:36:29 +04:00
|
|
|
Include support for extended memory, e.g., TS-6BE16 and 060turbo on-board.
|
1999-03-29 12:58:30 +04:00
|
|
|
.It Cd options JUPITER
|
|
|
|
Include support for Jupiter-X MPU accelerator
|
|
|
|
.It Cd options ZSCONSOLE,ZSCN_SPEED=value
|
|
|
|
Use the built-in serial port as the system-console.
|
|
|
|
Speed is specified in bps, defaults to 9600.
|
|
|
|
.It Cd options ITE_KERNEL_ATTR=value
|
|
|
|
Set the kernel message attribute for ITE.
|
|
|
|
Value, an integer, is a logical or of the following values:
|
|
|
|
.Bl -tag -width 4n -compact -offset indent
|
|
|
|
.It 1
|
|
|
|
color inversed
|
|
|
|
.It 2
|
|
|
|
underlined
|
|
|
|
.It 4
|
|
|
|
bolded
|
|
|
|
.El
|
|
|
|
.El
|
1996-10-21 03:58:12 +04:00
|
|
|
.\" The following requests should be uncommented and used where appropriate.
|
|
|
|
.\" .Sh FILES
|
|
|
|
.\" .Sh EXAMPLES
|
|
|
|
.Sh SEE ALSO
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr gdb 1 ,
|
|
|
|
.Xr ktrace 1 ,
|
2002-06-07 01:05:05 +04:00
|
|
|
.Xr pmc 1 ,
|
2002-06-07 15:15:45 +04:00
|
|
|
.Xr quota 1 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr gettimeofday 2 ,
|
2003-05-06 12:36:29 +04:00
|
|
|
.Xr i386_get_mtrr 2 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr i386_iopl 2 ,
|
|
|
|
.Xr msgctl 2 ,
|
|
|
|
.Xr msgget 2 ,
|
|
|
|
.Xr msgrcv 2 ,
|
|
|
|
.Xr msgsnd 2 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr ntp_adjtime 2 ,
|
|
|
|
.Xr ntp_gettime 2 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr semctl 2 ,
|
|
|
|
.Xr semget 2 ,
|
|
|
|
.Xr semop 2 ,
|
|
|
|
.Xr shmat 2 ,
|
|
|
|
.Xr shmctl 2 ,
|
|
|
|
.Xr shmdt 2 ,
|
|
|
|
.Xr shmget 2 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr sysctl 3 ,
|
1999-11-29 20:39:18 +03:00
|
|
|
.Xr apm 4 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr ddb 4 ,
|
|
|
|
.Xr inet 4 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr iso 4 ,
|
|
|
|
.Xr lkm 4 ,
|
2002-03-10 23:05:42 +03:00
|
|
|
.Xr md 4 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr ns 4 ,
|
2000-04-17 20:58:38 +04:00
|
|
|
.Xr pcibios 4 ,
|
2000-04-13 23:40:02 +04:00
|
|
|
.Xr pcmcia 4 ,
|
2002-09-29 04:36:43 +04:00
|
|
|
.Xr ppp 4 ,
|
2002-06-07 01:05:05 +04:00
|
|
|
.Xr userconf 4 ,
|
2003-02-03 01:53:57 +03:00
|
|
|
.Xr wscons 4 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr config 8 ,
|
|
|
|
.Xr edquota 8 ,
|
|
|
|
.Xr init 8 ,
|
2002-03-10 23:05:42 +03:00
|
|
|
.Xr mdsetimage 8 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_cd9660 8 ,
|
|
|
|
.Xr mount_fdesc 8 ,
|
|
|
|
.Xr mount_kernfs 8 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr mount_lfs 8 ,
|
|
|
|
.Xr mount_mfs 8 ,
|
|
|
|
.Xr mount_msdos 8 ,
|
|
|
|
.Xr mount_nfs 8 ,
|
1999-12-17 06:55:52 +03:00
|
|
|
.Xr mount_ntfs 8 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr mount_null 8 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr mount_portal 8 ,
|
|
|
|
.Xr mount_procfs 8 ,
|
|
|
|
.Xr mount_umap 8 ,
|
|
|
|
.Xr mount_union 8 ,
|
2000-04-14 00:05:52 +04:00
|
|
|
.Xr mrouted 8 ,
|
2001-04-04 14:52:23 +04:00
|
|
|
.Xr newfs_lfs 8 ,
|
2001-09-22 05:44:54 +04:00
|
|
|
.Xr ntpd 8 ,
|
1996-10-21 03:58:12 +04:00
|
|
|
.Xr quotaon 8 ,
|
|
|
|
.Xr rpc.rquotad 8 ,
|
2001-09-22 05:44:54 +04:00
|
|
|
.Xr sysctl 8
|
1996-10-21 03:58:12 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
man page first appeared in
|
|
|
|
.Nx 1.3 .
|
1996-11-15 21:52:41 +03:00
|
|
|
.Sh BUGS
|
1996-11-15 16:46:02 +03:00
|
|
|
The
|
1996-11-15 21:52:41 +03:00
|
|
|
.Em INET
|
2003-07-11 16:59:54 +04:00
|
|
|
option should not be required.
|
2000-07-05 18:54:01 +04:00
|
|
|
The
|
2001-04-04 14:52:23 +04:00
|
|
|
.Em EON
|
2000-07-05 18:54:01 +04:00
|
|
|
option should be a pseudo-device, and is also very fragile.
|