| @@ -1,2376 +1,2382 @@ | | | @@ -1,2376 +1,2382 @@ |
1 | .\" $NetBSD: sysctl.7,v 1.102 2016/05/31 05:44:19 pgoyette Exp $ | | 1 | .\" $NetBSD: sysctl.7,v 1.103 2016/10/12 08:52:49 roy Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1993 | | 3 | .\" Copyright (c) 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
15 | .\" may be used to endorse or promote products derived from this software | | 15 | .\" may be used to endorse or promote products derived from this software |
16 | .\" without specific prior written permission. | | 16 | .\" without specific prior written permission. |
17 | .\" | | 17 | .\" |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | | 18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | | 28 | .\" SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 | | 30 | .\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 |
31 | .\" | | 31 | .\" |
32 | .Dd May 31, 2016 | | 32 | .Dd October 12, 2016 |
33 | .Dt SYSCTL 7 | | 33 | .Dt SYSCTL 7 |
34 | .Os | | 34 | .Os |
35 | .Sh NAME | | 35 | .Sh NAME |
36 | .Nm sysctl | | 36 | .Nm sysctl |
37 | .Nd system information variables | | 37 | .Nd system information variables |
38 | .Sh DESCRIPTION | | 38 | .Sh DESCRIPTION |
39 | The | | 39 | The |
40 | .Xr sysctl 3 | | 40 | .Xr sysctl 3 |
41 | library function and the | | 41 | library function and the |
42 | .Xr sysctl 8 | | 42 | .Xr sysctl 8 |
43 | utility are used to get and set values of system variables, maintained | | 43 | utility are used to get and set values of system variables, maintained |
44 | by the kernel. | | 44 | by the kernel. |
45 | The variables are organized in a tree and identified by a sequence of | | 45 | The variables are organized in a tree and identified by a sequence of |
46 | numbers, conventionally separated by dots with the topmost identifier | | 46 | numbers, conventionally separated by dots with the topmost identifier |
47 | at the left side. | | 47 | at the left side. |
48 | The numbers have corresponding text names. | | 48 | The numbers have corresponding text names. |
49 | The | | 49 | The |
50 | .Xr sysctlnametomib 3 | | 50 | .Xr sysctlnametomib 3 |
51 | function or the | | 51 | function or the |
52 | .Fl M | | 52 | .Fl M |
53 | argument to the | | 53 | argument to the |
54 | .Xr sysctl 8 | | 54 | .Xr sysctl 8 |
55 | utility can be used to convert the text representation to the | | 55 | utility can be used to convert the text representation to the |
56 | numeric one. | | 56 | numeric one. |
57 | .Pp | | 57 | .Pp |
58 | The individual sysctl variables are described below, both the textual | | 58 | The individual sysctl variables are described below, both the textual |
59 | and numeric form where applicable. | | 59 | and numeric form where applicable. |
60 | The textual names can be used as argument to the | | 60 | The textual names can be used as argument to the |
61 | .Xr sysctl 8 | | 61 | .Xr sysctl 8 |
62 | utility and in the file | | 62 | utility and in the file |
63 | .Pa /etc/sysctl.conf . | | 63 | .Pa /etc/sysctl.conf . |
64 | The numeric names are usually defined as preprocessor constants and | | 64 | The numeric names are usually defined as preprocessor constants and |
65 | are intended for use by programs. | | 65 | are intended for use by programs. |
66 | Every such constant expands to one integer, which identifies the | | 66 | Every such constant expands to one integer, which identifies the |
67 | sysctl variable relative to the upper level of the tree. | | 67 | sysctl variable relative to the upper level of the tree. |
68 | See the | | 68 | See the |
69 | .Xr sysctl 3 | | 69 | .Xr sysctl 3 |
70 | manual page for programming examples. | | 70 | manual page for programming examples. |
71 | .Ss Top level names | | 71 | .Ss Top level names |
72 | The top level names are defined with a | | 72 | The top level names are defined with a |
73 | .Va CTL_ | | 73 | .Va CTL_ |
74 | prefix in | | 74 | prefix in |
75 | .In sys/sysctl.h , | | 75 | .In sys/sysctl.h , |
76 | and are as follows. | | 76 | and are as follows. |
77 | The next and subsequent levels down are found in the include files | | 77 | The next and subsequent levels down are found in the include files |
78 | listed here, and described in separate sections below. | | 78 | listed here, and described in separate sections below. |
79 | .Bl -column "security" ".Dv CTL_SECURITY" ".In uvm/uvm_param.h" "High kernel limits" | | 79 | .Bl -column "security" ".Dv CTL_SECURITY" ".In uvm/uvm_param.h" "High kernel limits" |
80 | .It Sy Name Ta Sy Constant Ta Sy Next level names Ta Sy Description | | 80 | .It Sy Name Ta Sy Constant Ta Sy Next level names Ta Sy Description |
81 | .It kern Ta Dv CTL_KERN Ta In sys/sysctl.h Ta High kernel limits | | 81 | .It kern Ta Dv CTL_KERN Ta In sys/sysctl.h Ta High kernel limits |
82 | .It vm Ta Dv CTL_VM Ta In uvm/uvm_param.h Ta Virtual memory | | 82 | .It vm Ta Dv CTL_VM Ta In uvm/uvm_param.h Ta Virtual memory |
83 | .It vfs Ta Dv CTL_VFS Ta In sys/mount.h Ta Filesystem | | 83 | .It vfs Ta Dv CTL_VFS Ta In sys/mount.h Ta Filesystem |
84 | .It net Ta Dv CTL_NET Ta In sys/socket.h Ta Networking | | 84 | .It net Ta Dv CTL_NET Ta In sys/socket.h Ta Networking |
85 | .It debug Ta Dv CTL_DEBUG Ta In sys/sysctl.h Ta Debugging | | 85 | .It debug Ta Dv CTL_DEBUG Ta In sys/sysctl.h Ta Debugging |
86 | .It hw Ta Dv CTL_HW Ta In sys/sysctl.h Ta Generic CPU, I/O | | 86 | .It hw Ta Dv CTL_HW Ta In sys/sysctl.h Ta Generic CPU, I/O |
87 | .It machdep Ta Dv CTL_MACHDEP Ta In sys/sysctl.h Ta Machine dependent | | 87 | .It machdep Ta Dv CTL_MACHDEP Ta In sys/sysctl.h Ta Machine dependent |
88 | .It user Ta Dv CTL_USER Ta In sys/sysctl.h Ta User-level | | 88 | .It user Ta Dv CTL_USER Ta In sys/sysctl.h Ta User-level |
89 | .It ddb Ta Dv CTL_DDB Ta In sys/sysctl.h Ta In-kernel debugger | | 89 | .It ddb Ta Dv CTL_DDB Ta In sys/sysctl.h Ta In-kernel debugger |
90 | .It proc Ta Dv CTL_PROC Ta In sys/sysctl.h Ta Per-process | | 90 | .It proc Ta Dv CTL_PROC Ta In sys/sysctl.h Ta Per-process |
91 | .It vendor Ta Dv CTL_VENDOR Ta ? Ta Vendor specific | | 91 | .It vendor Ta Dv CTL_VENDOR Ta ? Ta Vendor specific |
92 | .It emul Ta Dv CTL_EMUL Ta In sys/sysctl.h Ta Emulation settings | | 92 | .It emul Ta Dv CTL_EMUL Ta In sys/sysctl.h Ta Emulation settings |
93 | .It security Ta Dv CTL_SECURITY Ta In sys/sysctl.h Ta Security settings | | 93 | .It security Ta Dv CTL_SECURITY Ta In sys/sysctl.h Ta Security settings |
94 | .El | | 94 | .El |
95 | .Ss The debug.* subtree | | 95 | .Ss The debug.* subtree |
96 | The debugging variables vary from system to system. | | 96 | The debugging variables vary from system to system. |
97 | A debugging variable may be added or deleted without need to recompile | | 97 | A debugging variable may be added or deleted without need to recompile |
98 | .Nm | | 98 | .Nm |
99 | to know about it. | | 99 | to know about it. |
100 | Each time it runs, | | 100 | Each time it runs, |
101 | .Nm | | 101 | .Nm |
102 | gets the list of debugging variables from the kernel and | | 102 | gets the list of debugging variables from the kernel and |
103 | displays their current values. | | 103 | displays their current values. |
104 | The system defines twenty | | 104 | The system defines twenty |
105 | .Vt ( struct ctldebug ) | | 105 | .Vt ( struct ctldebug ) |
106 | variables named | | 106 | variables named |
107 | .Dv debug0 | | 107 | .Dv debug0 |
108 | through | | 108 | through |
109 | .Dv debug19 . | | 109 | .Dv debug19 . |
110 | They are declared as separate variables so that they can be | | 110 | They are declared as separate variables so that they can be |
111 | individually initialized at the location of their associated variable. | | 111 | individually initialized at the location of their associated variable. |
112 | The loader prevents multiple use of the same variable by issuing errors | | 112 | The loader prevents multiple use of the same variable by issuing errors |
113 | if a variable is initialized in more than one place. | | 113 | if a variable is initialized in more than one place. |
114 | For example, to export the variable | | 114 | For example, to export the variable |
115 | .Va dospecialcheck | | 115 | .Va dospecialcheck |
116 | as a debugging variable, the following declaration would be used: | | 116 | as a debugging variable, the following declaration would be used: |
117 | .Pp | | 117 | .Pp |
118 | .Bd -literal -offset indent -compact | | 118 | .Bd -literal -offset indent -compact |
119 | int dospecialcheck = 1; | | 119 | int dospecialcheck = 1; |
120 | struct ctldebug debug5 = { "dospecialcheck", \*[Am]dospecialcheck }; | | 120 | struct ctldebug debug5 = { "dospecialcheck", \*[Am]dospecialcheck }; |
121 | .Ed | | 121 | .Ed |
122 | .Pp | | 122 | .Pp |
123 | Note that the dynamic implementation of | | 123 | Note that the dynamic implementation of |
124 | .Nm | | 124 | .Nm |
125 | currently in use largely makes this particular | | 125 | currently in use largely makes this particular |
126 | .Nm | | 126 | .Nm |
127 | interface obsolete. | | 127 | interface obsolete. |
128 | See | | 128 | See |
129 | .Xr sysctl 8 | | 129 | .Xr sysctl 8 |
130 | .\" and | | 130 | .\" and |
131 | .\" .Xr sysctl 9 | | 131 | .\" .Xr sysctl 9 |
132 | for more information. | | 132 | for more information. |
133 | .Ss The vfs.* subtree | | 133 | .Ss The vfs.* subtree |
134 | A distinguished second level name, | | 134 | A distinguished second level name, |
135 | .Li vfs.generic ( Dv VFS_GENERIC ) , | | 135 | .Li vfs.generic ( Dv VFS_GENERIC ) , |
136 | is used to get general information about all file systems. | | 136 | is used to get general information about all file systems. |
137 | It has the following third level identifiers: | | 137 | It has the following third level identifiers: |
138 | .Bl -tag -width "123456" | | 138 | .Bl -tag -width "123456" |
139 | .It Li vfs.generic.maxtypenum ( Dv VFS_MAXTYPENUM ) | | 139 | .It Li vfs.generic.maxtypenum ( Dv VFS_MAXTYPENUM ) |
140 | The highest valid file system type number. | | 140 | The highest valid file system type number. |
141 | .It Li vfs.generic.conf ( Dv VFS_CONF ) | | 141 | .It Li vfs.generic.conf ( Dv VFS_CONF ) |
142 | Returns configuration information about the file system type given as a fourth | | 142 | Returns configuration information about the file system type given as a fourth |
143 | level identifier. | | 143 | level identifier. |
144 | .It Li vfs.generic.usermount ( Dv VFS_USERMOUNT ) | | 144 | .It Li vfs.generic.usermount ( Dv VFS_USERMOUNT ) |
145 | Determines if non superuser mounts are allowed, defaults to | | 145 | Determines if non superuser mounts are allowed, defaults to |
146 | .Dv 0 . | | 146 | .Dv 0 . |
147 | .It Li vfs.generic.magiclinks ( Dv VFS_MAGICLINKS ) | | 147 | .It Li vfs.generic.magiclinks ( Dv VFS_MAGICLINKS ) |
148 | Controls if expansion of variables is going to be performed on pathnames | | 148 | Controls if expansion of variables is going to be performed on pathnames |
149 | or not. | | 149 | or not. |
150 | Defaults to no variable expansion, | | 150 | Defaults to no variable expansion, |
151 | .Dv 0 . | | 151 | .Dv 0 . |
152 | Variables are of the form | | 152 | Variables are of the form |
153 | .Li @name | | 153 | .Li @name |
154 | and the variables supported are described in | | 154 | and the variables supported are described in |
155 | .Xr symlink 7 | | 155 | .Xr symlink 7 |
156 | under | | 156 | under |
157 | .Dq "MAGIC SYMLINKS" . | | 157 | .Dq "MAGIC SYMLINKS" . |
158 | .El | | 158 | .El |
159 | .Pp | | 159 | .Pp |
160 | A second level name for controlling the | | 160 | A second level name for controlling the |
161 | .Xr wapbl 4 | | 161 | .Xr wapbl 4 |
162 | (Write Ahead Physical Block Logging file system journalling) | | 162 | (Write Ahead Physical Block Logging file system journalling) |
163 | capabilities with the following third level identifiers: | | 163 | capabilities with the following third level identifiers: |
164 | .Bl -tag -width "123456" | | 164 | .Bl -tag -width "123456" |
165 | .It Li vfs.wapbl.flush_disk_cache | | 165 | .It Li vfs.wapbl.flush_disk_cache |
166 | Controls whether to attempt to flush the disk cache on each commit. | | 166 | Controls whether to attempt to flush the disk cache on each commit. |
167 | It defaults to 1 and it should always be on to ensure integrity | | 167 | It defaults to 1 and it should always be on to ensure integrity |
168 | of file system metadata in the event of a power loss. | | 168 | of file system metadata in the event of a power loss. |
169 | For slow disks, turning it off can improve performance. | | 169 | For slow disks, turning it off can improve performance. |
170 | .It Li vfs.wapbl.verbose_commit | | 170 | .It Li vfs.wapbl.verbose_commit |
171 | For each transaction log commit, print the number of bytes written | | 171 | For each transaction log commit, print the number of bytes written |
172 | and the time it took to commit as seconds.nanoseconds. | | 172 | and the time it took to commit as seconds.nanoseconds. |
173 | .El | | 173 | .El |
174 | .Pp | | 174 | .Pp |
175 | The remaining second level identifiers are the file system names, identified | | 175 | The remaining second level identifiers are the file system names, identified |
176 | by the type number returned by a | | 176 | by the type number returned by a |
177 | .Xr statvfs 2 | | 177 | .Xr statvfs 2 |
178 | call or from | | 178 | call or from |
179 | .Li vfs.generic.conf . | | 179 | .Li vfs.generic.conf . |
180 | .Pp | | 180 | .Pp |
181 | The third level identifiers available for each file system | | 181 | The third level identifiers available for each file system |
182 | are given in the header file that defines the mount | | 182 | are given in the header file that defines the mount |
183 | argument structure for that file system. | | 183 | argument structure for that file system. |
184 | .Ss The hw.* subtree | | 184 | .Ss The hw.* subtree |
185 | The string and integer information available for the | | 185 | The string and integer information available for the |
186 | .Li hw | | 186 | .Li hw |
187 | level is detailed below. | | 187 | level is detailed below. |
188 | The changeable column shows whether a process with appropriate | | 188 | The changeable column shows whether a process with appropriate |
189 | privilege may change the value. | | 189 | privilege may change the value. |
190 | .Bl -column "hw.machine_arch" "integer" "Changeable" -offset indent | | 190 | .Bl -column "hw.machine_arch" "integer" "Changeable" -offset indent |
191 | .It Sy Second level name Sy Type Sy Changeable | | 191 | .It Sy Second level name Sy Type Sy Changeable |
192 | .It hw.alignbytes integer no | | 192 | .It hw.alignbytes integer no |
193 | .It hw.byteorder integer no | | 193 | .It hw.byteorder integer no |
194 | .It hw.cnmagic string yes | | 194 | .It hw.cnmagic string yes |
195 | .It hw.disknames string no | | 195 | .It hw.disknames string no |
196 | .It hw.diskstats struct no | | 196 | .It hw.diskstats struct no |
197 | .It hw.machine string no | | 197 | .It hw.machine string no |
198 | .It hw.machine_arch string no | | 198 | .It hw.machine_arch string no |
199 | .It hw.model string no | | 199 | .It hw.model string no |
200 | .It hw.ncpu integer no | | 200 | .It hw.ncpu integer no |
201 | .It hw.ncpuonline integer no | | 201 | .It hw.ncpuonline integer no |
202 | .It hw.pagesize integer no | | 202 | .It hw.pagesize integer no |
203 | .It hw.physmem integer no | | 203 | .It hw.physmem integer no |
204 | .It hw.physmem64 quad no | | 204 | .It hw.physmem64 quad no |
205 | .It hw.usermem integer no | | 205 | .It hw.usermem integer no |
206 | .It hw.usermem64 quad no | | 206 | .It hw.usermem64 quad no |
207 | .El | | 207 | .El |
208 | .Bl -tag -width "123456" | | 208 | .Bl -tag -width "123456" |
209 | .It Li hw.alignbytes ( Dv HW_ALIGNBYTES ) | | 209 | .It Li hw.alignbytes ( Dv HW_ALIGNBYTES ) |
210 | Alignment constraint for all possible data types. | | 210 | Alignment constraint for all possible data types. |
211 | This shows the value | | 211 | This shows the value |
212 | .Dv ALIGNBYTES | | 212 | .Dv ALIGNBYTES |
213 | in | | 213 | in |
214 | .In machine/param.h , | | 214 | .In machine/param.h , |
215 | at the kernel compilation time. | | 215 | at the kernel compilation time. |
216 | .It Li hw.byteorder ( Dv HW_BYTEORDER ) | | 216 | .It Li hw.byteorder ( Dv HW_BYTEORDER ) |
217 | The byteorder (4321, or 1234). | | 217 | The byteorder (4321, or 1234). |
218 | .It Li hw.cnmagic ( Dv HW_CNMAGIC ) | | 218 | .It Li hw.cnmagic ( Dv HW_CNMAGIC ) |
219 | The console magic key sequence. | | 219 | The console magic key sequence. |
220 | .It Li hw.disknames ( Dv HW_DISKNAMES ) | | 220 | .It Li hw.disknames ( Dv HW_DISKNAMES ) |
221 | The list of (space separated) disk device names on the system. | | 221 | The list of (space separated) disk device names on the system. |
222 | .It Li hw.iostatnames ( Dv HW_IOSTATNAMES ) | | 222 | .It Li hw.iostatnames ( Dv HW_IOSTATNAMES ) |
223 | A space separated list of devices that will have I/O statistics | | 223 | A space separated list of devices that will have I/O statistics |
224 | collected on them. | | 224 | collected on them. |
225 | .It Li hw.iostats ( Dv HW_IOSTATS ) | | 225 | .It Li hw.iostats ( Dv HW_IOSTATS ) |
226 | Return statistical information on the NFS mounts, disk and tape | | 226 | Return statistical information on the NFS mounts, disk and tape |
227 | devices on the system. | | 227 | devices on the system. |
228 | An array of | | 228 | An array of |
229 | .Vt struct io_sysctl | | 229 | .Vt struct io_sysctl |
230 | structures is returned, | | 230 | structures is returned, |
231 | whose size depends on the current number of such objects in the system. | | 231 | whose size depends on the current number of such objects in the system. |
232 | The third level name is the size of the | | 232 | The third level name is the size of the |
233 | .Vt struct io_sysctl . | | 233 | .Vt struct io_sysctl . |
234 | The type of object can be determined by examining the | | 234 | The type of object can be determined by examining the |
235 | .Va type | | 235 | .Va type |
236 | element of | | 236 | element of |
237 | .Vt struct io_sysctl . | | 237 | .Vt struct io_sysctl . |
238 | Which can be | | 238 | Which can be |
239 | .Dv IOSTAT_DISK | | 239 | .Dv IOSTAT_DISK |
240 | (disk drive), | | 240 | (disk drive), |
241 | .Dv IOSTAT_TAPE | | 241 | .Dv IOSTAT_TAPE |
242 | (tape drive), or | | 242 | (tape drive), or |
243 | .Dv IOSTAT_NFS | | 243 | .Dv IOSTAT_NFS |
244 | (NFS mount). | | 244 | (NFS mount). |
245 | .It Li hw.machine ( Dv HW_MACHINE ) | | 245 | .It Li hw.machine ( Dv HW_MACHINE ) |
246 | The machine class. | | 246 | The machine class. |
247 | .It Li hw.machine_arch ( Dv HW_MACHINE_ARCH ) | | 247 | .It Li hw.machine_arch ( Dv HW_MACHINE_ARCH ) |
248 | The machine CPU class. | | 248 | The machine CPU class. |
249 | .It Li hw.model ( Dv HW_MODEL ) | | 249 | .It Li hw.model ( Dv HW_MODEL ) |
250 | The machine model. | | 250 | The machine model. |
251 | .It Li hw.ncpu ( Dv HW_NCPU ) | | 251 | .It Li hw.ncpu ( Dv HW_NCPU ) |
252 | The number of CPUs configured. | | 252 | The number of CPUs configured. |
253 | .It Li hw.ncpuonline ( Dv HW_NCPUONLINE ) | | 253 | .It Li hw.ncpuonline ( Dv HW_NCPUONLINE ) |
254 | The number of CPUs online. | | 254 | The number of CPUs online. |
255 | .It Li hw.pagesize ( Dv HW_PAGESIZE ) | | 255 | .It Li hw.pagesize ( Dv HW_PAGESIZE ) |
256 | The software page size. | | 256 | The software page size. |
257 | .It Li hw.physmem ( Dv HW_PHYSMEM ) | | 257 | .It Li hw.physmem ( Dv HW_PHYSMEM ) |
258 | The bytes of physical memory as a 32-bit integer. | | 258 | The bytes of physical memory as a 32-bit integer. |
259 | .It Li hw.physmem64 ( Dv HW_PHYSMEM64 ) | | 259 | .It Li hw.physmem64 ( Dv HW_PHYSMEM64 ) |
260 | The bytes of physical memory as a 64-bit integer. | | 260 | The bytes of physical memory as a 64-bit integer. |
261 | .It Li hw.usermem ( Dv HW_USERMEM ) | | 261 | .It Li hw.usermem ( Dv HW_USERMEM ) |
262 | The bytes of non-kernel memory as a 32-bit integer. | | 262 | The bytes of non-kernel memory as a 32-bit integer. |
263 | .It Li hw.usermem64 ( Dv HW_USERMEM64 ) | | 263 | .It Li hw.usermem64 ( Dv HW_USERMEM64 ) |
264 | The bytes of non-kernel memory as a 64-bit integer. | | 264 | The bytes of non-kernel memory as a 64-bit integer. |
265 | .El | | 265 | .El |
266 | .Ss The kern.* subtree | | 266 | .Ss The kern.* subtree |
267 | This subtree includes data generally related to the kernel. | | 267 | This subtree includes data generally related to the kernel. |
268 | The string and integer information available for the | | 268 | The string and integer information available for the |
269 | .Li kern | | 269 | .Li kern |
270 | level is detailed below. | | 270 | level is detailed below. |
271 | The changeable column shows whether a process with appropriate | | 271 | The changeable column shows whether a process with appropriate |
272 | privilege may change the value. | | 272 | privilege may change the value. |
273 | .Bl -column "kern.posix_reader_writer_locks" \ | | 273 | .Bl -column "kern.posix_reader_writer_locks" \ |
274 | "struct kinfo_drivers" "not applicable" | | 274 | "struct kinfo_drivers" "not applicable" |
275 | .It Sy Second level name Sy Type Sy Changeable | | 275 | .It Sy Second level name Sy Type Sy Changeable |
276 | .It kern.aio_listio_max integer yes | | 276 | .It kern.aio_listio_max integer yes |
277 | .It kern.aio_max integer yes | | 277 | .It kern.aio_max integer yes |
278 | .It kern.arandom integer no | | 278 | .It kern.arandom integer no |
279 | .It kern.argmax integer no | | 279 | .It kern.argmax integer no |
280 | .It kern.boothowto integer no | | 280 | .It kern.boothowto integer no |
281 | .It kern.boottime struct timeval no | | 281 | .It kern.boottime struct timeval no |
282 | .It kern.buildinfo string no | | 282 | .It kern.buildinfo string no |
283 | .\".It kern.bufq node not applicable | | 283 | .\".It kern.bufq node not applicable |
284 | .It kern.ccpu integer no | | 284 | .It kern.ccpu integer no |
285 | .It kern.clockrate struct clockinfo no | | 285 | .It kern.clockrate struct clockinfo no |
286 | .It kern.consdev integer no | | 286 | .It kern.consdev integer no |
287 | .It kern.coredump node not applicable | | 287 | .It kern.coredump node not applicable |
288 | .It kern.cp_id struct no | | 288 | .It kern.cp_id struct no |
289 | .It kern.cp_time uint64_t[\|] no | | 289 | .It kern.cp_time uint64_t[\|] no |
290 | .It kern.cryptodevallowsoft integer yes | | 290 | .It kern.cryptodevallowsoft integer yes |
291 | .It kern.defcorename string yes | | 291 | .It kern.defcorename string yes |
292 | .It kern.detachall integer yes | | 292 | .It kern.detachall integer yes |
293 | .It kern.domainname string yes | | 293 | .It kern.domainname string yes |
294 | .It kern.drivers struct kinfo_drivers no | | 294 | .It kern.drivers struct kinfo_drivers no |
295 | .It kern.dump_on_panic integer yes | | 295 | .It kern.dump_on_panic integer yes |
296 | .It kern.file struct file no | | 296 | .It kern.file struct file no |
297 | .It kern.forkfsleep integer yes | | 297 | .It kern.forkfsleep integer yes |
298 | .It kern.fscale integer no | | 298 | .It kern.fscale integer no |
299 | .It kern.fsync integer no | | 299 | .It kern.fsync integer no |
300 | .It kern.hardclock_ticks integer no | | 300 | .It kern.hardclock_ticks integer no |
301 | .It kern.hostid integer yes | | 301 | .It kern.hostid integer yes |
302 | .It kern.hostname string yes | | 302 | .It kern.hostname string yes |
303 | .It kern.iov_max integer no | | 303 | .It kern.iov_max integer no |
304 | .It kern.ipc node not applicable | | 304 | .It kern.ipc node not applicable |
305 | .It kern.job_control integer no | | 305 | .It kern.job_control integer no |
306 | .It kern.labeloffset integer no | | 306 | .It kern.labeloffset integer no |
307 | .It kern.labelsector integer no | | 307 | .It kern.labelsector integer no |
308 | .It kern.login_name_max integer no | | 308 | .It kern.login_name_max integer no |
309 | .It kern.logsigexit integer yes | | 309 | .It kern.logsigexit integer yes |
310 | .It kern.mapped_files integer no | | 310 | .It kern.mapped_files integer no |
311 | .It kern.maxfiles integer yes | | 311 | .It kern.maxfiles integer yes |
312 | .It kern.maxlwp integer yes | | 312 | .It kern.maxlwp integer yes |
313 | .It kern.maxpartitions integer no | | 313 | .It kern.maxpartitions integer no |
314 | .It kern.maxphys integer no | | 314 | .It kern.maxphys integer no |
315 | .It kern.maxproc integer yes | | 315 | .It kern.maxproc integer yes |
316 | .It kern.maxptys integer yes | | 316 | .It kern.maxptys integer yes |
317 | .It kern.maxvnodes integer yes | | 317 | .It kern.maxvnodes integer yes |
318 | .It kern.messages integer yes | | 318 | .It kern.messages integer yes |
319 | .It kern.mbuf node not applicable | | 319 | .It kern.mbuf node not applicable |
320 | .It kern.memlock integer no | | 320 | .It kern.memlock integer no |
321 | .It kern.memlock_range integer no | | 321 | .It kern.memlock_range integer no |
322 | .It kern.memory_protection integer no | | 322 | .It kern.memory_protection integer no |
323 | .It kern.module node not applicable | | 323 | .It kern.module node not applicable |
324 | .It kern.monotonic_clock integer no | | 324 | .It kern.monotonic_clock integer no |
325 | .It kern.mqueue node not applicable | | 325 | .It kern.mqueue node not applicable |
326 | .It kern.msgbuf integer no | | 326 | .It kern.msgbuf integer no |
327 | .It kern.msgbufsize integer no | | 327 | .It kern.msgbufsize integer no |
328 | .It kern.ngroups integer no | | 328 | .It kern.ngroups integer no |
329 | .\".It kern.no_sa_support integer yes | | 329 | .\".It kern.no_sa_support integer yes |
330 | .It kern.ntptime struct ntptimeval no | | 330 | .It kern.ntptime struct ntptimeval no |
331 | .It kern.osrelease string no | | 331 | .It kern.osrelease string no |
332 | .It kern.osrevision integer no | | 332 | .It kern.osrevision integer no |
333 | .It kern.ostype string no | | 333 | .It kern.ostype string no |
334 | .\".It kern.panic_now integer yes | | 334 | .\".It kern.panic_now integer yes |
335 | .It kern.pipe node not applicable | | 335 | .It kern.pipe node not applicable |
336 | .It kern.pool struct pool_sysctl no | | 336 | .It kern.pool struct pool_sysctl no |
337 | .\" .It kern.posix node not applicable | | 337 | .\" .It kern.posix node not applicable |
338 | .It kern.posix1version integer no | | 338 | .It kern.posix1version integer no |
339 | .It kern.posix_aio integer no | | 339 | .It kern.posix_aio integer no |
340 | .It kern.posix_barriers integer no | | 340 | .It kern.posix_barriers integer no |
341 | .It kern.posix_reader_writer_locks integer no | | 341 | .It kern.posix_reader_writer_locks integer no |
342 | .\".It kern.posix_sched integer yes | | 342 | .\".It kern.posix_sched integer yes |
343 | .It kern.posix_semaphores integer no | | 343 | .It kern.posix_semaphores integer no |
344 | .It kern.posix_spin_locks integer no | | 344 | .It kern.posix_spin_locks integer no |
345 | .It kern.posix_threads integer no | | 345 | .It kern.posix_threads integer no |
346 | .It kern.posix_timers integer no | | 346 | .It kern.posix_timers integer no |
347 | .It kern.proc struct kinfo_proc no | | 347 | .It kern.proc struct kinfo_proc no |
348 | .It kern.proc2 struct kinfo_proc2 no | | 348 | .It kern.proc2 struct kinfo_proc2 no |
349 | .It kern.proc_args string no | | 349 | .It kern.proc_args string no |
350 | .It kern.profiling node not applicable | | 350 | .It kern.profiling node not applicable |
351 | .\".It kern.pset node not applicable | | 351 | .\".It kern.pset node not applicable |
352 | .It kern.rawpartition integer no | | 352 | .It kern.rawpartition integer no |
353 | .It kern.root_device string no | | 353 | .It kern.root_device string no |
354 | .It kern.root_partition integer no | | 354 | .It kern.root_partition integer no |
355 | .It kern.rtc_offset integer yes | | 355 | .It kern.rtc_offset integer yes |
356 | .It kern.saved_ids integer no | | 356 | .It kern.saved_ids integer no |
357 | .It kern.sbmax integer yes | | 357 | .It kern.sbmax integer yes |
358 | .\".It kern.sched node not applicable | | 358 | .\".It kern.sched node not applicable |
359 | .It kern.securelevel integer raise only | | 359 | .It kern.securelevel integer raise only |
360 | .It kern.somaxkva integer yes | | 360 | .It kern.somaxkva integer yes |
361 | .It kern.synchronized_io integer no | | 361 | .It kern.synchronized_io integer no |
362 | .It kern.timecounter node not applicable | | 362 | .It kern.timecounter node not applicable |
363 | .It kern.timex struct no | | 363 | .It kern.timex struct no |
364 | .It kern.tkstat node not applicable | | 364 | .It kern.tkstat node not applicable |
365 | .It kern.tty node not applicable | | 365 | .It kern.tty node not applicable |
366 | .It kern.urandom integer no | | 366 | .It kern.urandom integer no |
367 | .It kern.usercrypto integer yes | | 367 | .It kern.usercrypto integer yes |
368 | .It kern.userasymcrypto integer yes | | 368 | .It kern.userasymcrypto integer yes |
369 | .It kern.veriexec node not applicable | | 369 | .It kern.veriexec node not applicable |
370 | .It kern.version string no | | 370 | .It kern.version string no |
371 | .It kern.vnode struct vnode no | | 371 | .It kern.vnode struct vnode no |
372 | .El | | 372 | .El |
373 | .Bl -tag -width "123456" | | 373 | .Bl -tag -width "123456" |
374 | .It Li kern.aio_listio_max | | 374 | .It Li kern.aio_listio_max |
375 | The maximum number of asynchronous | | 375 | The maximum number of asynchronous |
376 | .Tn I/O | | 376 | .Tn I/O |
377 | operations in a single list I/O call. | | 377 | operations in a single list I/O call. |
378 | Like with all variables related to | | 378 | Like with all variables related to |
379 | .Xr aio 3 , | | 379 | .Xr aio 3 , |
380 | the variable may be created and removed dynamically | | 380 | the variable may be created and removed dynamically |
381 | upon loading or unloading the corresponding kernel module. | | 381 | upon loading or unloading the corresponding kernel module. |
382 | .It Li kern.aio_max | | 382 | .It Li kern.aio_max |
383 | The maximum number of asynchronous I/O operations. | | 383 | The maximum number of asynchronous I/O operations. |
384 | .It Li kern.arandom | | 384 | .It Li kern.arandom |
385 | This variable picks a random number each time it is queried. | | 385 | This variable picks a random number each time it is queried. |
386 | The used random number generator | | 386 | The used random number generator |
387 | .Pf ( Tn RNG ) | | 387 | .Pf ( Tn RNG ) |
388 | is based on | | 388 | is based on |
389 | .Xr arc4random 3 . | | 389 | .Xr arc4random 3 . |
390 | .It Li kern.argmax ( Dv KERN_ARGMAX ) | | 390 | .It Li kern.argmax ( Dv KERN_ARGMAX ) |
391 | The maximum bytes of argument to | | 391 | The maximum bytes of argument to |
392 | .Xr execve 2 . | | 392 | .Xr execve 2 . |
393 | .It Li kern.boothowto | | 393 | .It Li kern.boothowto |
394 | Flags passed from the boot loader; see | | 394 | Flags passed from the boot loader; see |
395 | .Xr reboot 2 | | 395 | .Xr reboot 2 |
396 | for the meanings of the flags. | | 396 | for the meanings of the flags. |
397 | .It Li kern.boottime ( Dv KERN_BOOTTIME ) | | 397 | .It Li kern.boottime ( Dv KERN_BOOTTIME ) |
398 | A | | 398 | A |
399 | .Vt struct timeval | | 399 | .Vt struct timeval |
400 | structure is returned. | | 400 | structure is returned. |
401 | This structure contains the time that the system was booted. | | 401 | This structure contains the time that the system was booted. |
402 | .It Li kern.buildinfo | | 402 | .It Li kern.buildinfo |
403 | When the kernel is built, the build environment may optionally provide | | 403 | When the kernel is built, the build environment may optionally provide |
404 | arbitrary information to be stored in this variable. | | 404 | arbitrary information to be stored in this variable. |
405 | .\" .It Li kern.bufq | | 405 | .\" .It Li kern.bufq |
406 | .\" XXX: Undocumented. | | 406 | .\" XXX: Undocumented. |
407 | .It Li kern.ccpu ( Dv KERN_CCPU ) | | 407 | .It Li kern.ccpu ( Dv KERN_CCPU ) |
408 | The scheduler exponential decay value. | | 408 | The scheduler exponential decay value. |
409 | .It Li kern.clockrate ( Dv KERN_CLOCKRATE ) | | 409 | .It Li kern.clockrate ( Dv KERN_CLOCKRATE ) |
410 | A | | 410 | A |
411 | .Vt struct clockinfo | | 411 | .Vt struct clockinfo |
412 | structure is returned. | | 412 | structure is returned. |
413 | This structure contains the clock, statistics clock and profiling clock | | 413 | This structure contains the clock, statistics clock and profiling clock |
414 | frequencies, the number of micro-seconds per hz tick, and the clock | | 414 | frequencies, the number of micro-seconds per hz tick, and the clock |
415 | skew rate. | | 415 | skew rate. |
416 | Refer to | | 416 | Refer to |
417 | .Xr hz 9 | | 417 | .Xr hz 9 |
418 | for additional details. | | 418 | for additional details. |
419 | .It Li kern.consdev ( Dv KERN_CONSDEV ) | | 419 | .It Li kern.consdev ( Dv KERN_CONSDEV ) |
420 | Console device. | | 420 | Console device. |
421 | .It Li kern.coredump | | 421 | .It Li kern.coredump |
422 | Settings related to set-id processes coredumps. | | 422 | Settings related to set-id processes coredumps. |
423 | By default, set-id processes do not dump core in situations where | | 423 | By default, set-id processes do not dump core in situations where |
424 | other processes would. | | 424 | other processes would. |
425 | The settings in this node allows an administrator to change this | | 425 | The settings in this node allows an administrator to change this |
426 | behavior. | | 426 | behavior. |
427 | .Pp | | 427 | .Pp |
428 | The third level name is | | 428 | The third level name is |
429 | .Dv kern.coredump.setid | | 429 | .Dv kern.coredump.setid |
430 | and fourth level variables are described below. | | 430 | and fourth level variables are described below. |
431 | .Bl -column "kern.coredump.setid.group" "integer" "Changeable" -offset indent | | 431 | .Bl -column "kern.coredump.setid.group" "integer" "Changeable" -offset indent |
432 | .It Sy Fourth level name Sy Type Sy Changeable | | 432 | .It Sy Fourth level name Sy Type Sy Changeable |
433 | .It kern.coredump.setid.dump integer yes | | 433 | .It kern.coredump.setid.dump integer yes |
434 | .It kern.coredump.setid.group integer yes | | 434 | .It kern.coredump.setid.group integer yes |
435 | .It kern.coredump.setid.mode integer yes | | 435 | .It kern.coredump.setid.mode integer yes |
436 | .It kern.coredump.setid.owner integer yes | | 436 | .It kern.coredump.setid.owner integer yes |
437 | .It kern.coredump.setid.path string yes | | 437 | .It kern.coredump.setid.path string yes |
438 | .El | | 438 | .El |
439 | .Bl -tag -width "123456" | | 439 | .Bl -tag -width "123456" |
440 | .It Li kern.coredump.setid.dump | | 440 | .It Li kern.coredump.setid.dump |
441 | If non-zero, set-id processes will dump core. | | 441 | If non-zero, set-id processes will dump core. |
442 | .It Li kern.coredump.setid.group | | 442 | .It Li kern.coredump.setid.group |
443 | The group-id for the set-id processes' coredump. | | 443 | The group-id for the set-id processes' coredump. |
444 | .It Li kern.coredump.setid.mode | | 444 | .It Li kern.coredump.setid.mode |
445 | The mode for the set-id processes' coredump. | | 445 | The mode for the set-id processes' coredump. |
446 | See | | 446 | See |
447 | .Xr chmod 1 . | | 447 | .Xr chmod 1 . |
448 | .It Li kern.coredump.setid.owner | | 448 | .It Li kern.coredump.setid.owner |
449 | The user-id that will be used as the owner of the set-id processes' | | 449 | The user-id that will be used as the owner of the set-id processes' |
450 | coredump. | | 450 | coredump. |
451 | .It Li kern.coredump.setid.path | | 451 | .It Li kern.coredump.setid.path |
452 | The path to which set-id processes' coredumps will be saved to. | | 452 | The path to which set-id processes' coredumps will be saved to. |
453 | Same syntax as kern.defcorename. | | 453 | Same syntax as kern.defcorename. |
454 | .El | | 454 | .El |
455 | .It Li kern.cp_id ( Dv KERN_CP_ID ) | | 455 | .It Li kern.cp_id ( Dv KERN_CP_ID ) |
456 | Mapping of CPU number to CPU id. | | 456 | Mapping of CPU number to CPU id. |
457 | .It Li kern.cp_time ( Dv KERN_CP_TIME ) | | 457 | .It Li kern.cp_time ( Dv KERN_CP_TIME ) |
458 | Returns an array of | | 458 | Returns an array of |
459 | .Dv CPUSTATES | | 459 | .Dv CPUSTATES |
460 | .Vt uint64_t Ns s . | | 460 | .Vt uint64_t Ns s . |
461 | This array contains the | | 461 | This array contains the |
462 | number of clock ticks spent in different CPU states. | | 462 | number of clock ticks spent in different CPU states. |
463 | On multi-processor systems, the sum across all CPUs is returned unless | | 463 | On multi-processor systems, the sum across all CPUs is returned unless |
464 | appropriate space is given for one data set for each CPU. | | 464 | appropriate space is given for one data set for each CPU. |
465 | Data for a specific CPU can also be obtained by adding the number of the | | 465 | Data for a specific CPU can also be obtained by adding the number of the |
466 | CPU at the end of the MIB, enlarging it by one. | | 466 | CPU at the end of the MIB, enlarging it by one. |
467 | .It Li kern.cryptodevallowsoft | | 467 | .It Li kern.cryptodevallowsoft |
468 | This variable controls userland access to hardware versus software transforms | | 468 | This variable controls userland access to hardware versus software transforms |
469 | in the | | 469 | in the |
470 | .Xr crypto 4 | | 470 | .Xr crypto 4 |
471 | system. | | 471 | system. |
472 | The available values are as follows: | | 472 | The available values are as follows: |
473 | .Bl -tag -width XX0 -offset indent | | 473 | .Bl -tag -width XX0 -offset indent |
474 | .It Dv \*[Lt] 0 | | 474 | .It Dv \*[Lt] 0 |
475 | Always force userlevel requests to use software transforms. | | 475 | Always force userlevel requests to use software transforms. |
476 | .It Dv = 0 | | 476 | .It Dv = 0 |
477 | If present, use hardware and grant userlevel requests for | | 477 | If present, use hardware and grant userlevel requests for |
478 | non-accelerated transforms (handling the latter in software). | | 478 | non-accelerated transforms (handling the latter in software). |
479 | .It Dv \*[Gt] 0 | | 479 | .It Dv \*[Gt] 0 |
480 | Allow user requests only for transforms which are hardware-accelerated. | | 480 | Allow user requests only for transforms which are hardware-accelerated. |
481 | .El | | 481 | .El |
482 | .It Li kern.defcorename ( Dv KERN_DEFCORENAME ) | | 482 | .It Li kern.defcorename ( Dv KERN_DEFCORENAME ) |
483 | Default template for the name of core dump files (see also | | 483 | Default template for the name of core dump files (see also |
484 | .Li proc.pid.corename | | 484 | .Li proc.pid.corename |
485 | in the per-process variables | | 485 | in the per-process variables |
486 | .Li proc.* , | | 486 | .Li proc.* , |
487 | and | | 487 | and |
488 | .Xr core 5 | | 488 | .Xr core 5 |
489 | for format of this template). | | 489 | for format of this template). |
490 | The default value is | | 490 | The default value is |
491 | .Pa %n.core | | 491 | .Pa %n.core |
492 | and can be changed with the kernel configuration option | | 492 | and can be changed with the kernel configuration option |
493 | .Cd options DEFCORENAME | | 493 | .Cd options DEFCORENAME |
494 | (see | | 494 | (see |
495 | .Xr options 4 | | 495 | .Xr options 4 |
496 | ). | | 496 | ). |
497 | .It Li kern.detachall | | 497 | .It Li kern.detachall |
498 | Detach all devices at shutdown. | | 498 | Detach all devices at shutdown. |
499 | .It Li kern.domainname ( Dv KERN_DOMAINNAME ) | | 499 | .It Li kern.domainname ( Dv KERN_DOMAINNAME ) |
500 | Get or set the YP domain name. | | 500 | Get or set the YP domain name. |
501 | .It Li kern.drivers ( Dv KERN_DRIVERS ) | | 501 | .It Li kern.drivers ( Dv KERN_DRIVERS ) |
502 | Return an array of | | 502 | Return an array of |
503 | .Vt struct kinfo_drivers | | 503 | .Vt struct kinfo_drivers |
504 | that contains the name and major device numbers of all the device drivers | | 504 | that contains the name and major device numbers of all the device drivers |
505 | in the current kernel. | | 505 | in the current kernel. |
506 | The | | 506 | The |
507 | .Va d_name | | 507 | .Va d_name |
508 | field is always a NUL terminated string. | | 508 | field is always a NUL terminated string. |
509 | The | | 509 | The |
510 | .Va d_bmajor | | 510 | .Va d_bmajor |
511 | field will be set to \-1 if the driver doesn't have a block device. | | 511 | field will be set to \-1 if the driver doesn't have a block device. |
512 | .It Li kern.dump_on_panic ( Dv KERN_DUMP_ON_PANIC ) | | 512 | .It Li kern.dump_on_panic ( Dv KERN_DUMP_ON_PANIC ) |
513 | Perform a crash dump on system | | 513 | Perform a crash dump on system |
514 | .Xr panic 9 . | | 514 | .Xr panic 9 . |
515 | .It Li kern.file ( Dv KERN_FILE ) | | 515 | .It Li kern.file ( Dv KERN_FILE ) |
516 | Return the entire file table. | | 516 | Return the entire file table. |
517 | The returned data consists of a single | | 517 | The returned data consists of a single |
518 | .Vt struct filelist | | 518 | .Vt struct filelist |
519 | followed by an array of | | 519 | followed by an array of |
520 | .Vt struct file , | | 520 | .Vt struct file , |
521 | whose size depends on the current number of such objects in the system. | | 521 | whose size depends on the current number of such objects in the system. |
522 | .It Li kern.forkfsleep ( Dv KERN_FORKFSLEEP ) | | 522 | .It Li kern.forkfsleep ( Dv KERN_FORKFSLEEP ) |
523 | If | | 523 | If |
524 | .Xr fork 2 | | 524 | .Xr fork 2 |
525 | system call fails due to limit on number of processes (either | | 525 | system call fails due to limit on number of processes (either |
526 | the global maxproc limit or user's one), wait for this many | | 526 | the global maxproc limit or user's one), wait for this many |
527 | milliseconds before returning | | 527 | milliseconds before returning |
528 | .Er EAGAIN | | 528 | .Er EAGAIN |
529 | error to process. | | 529 | error to process. |
530 | Useful to keep heavily forking runaway processes in bay. | | 530 | Useful to keep heavily forking runaway processes in bay. |
531 | Default zero (no sleep). | | 531 | Default zero (no sleep). |
532 | Maximum is 20 seconds. | | 532 | Maximum is 20 seconds. |
533 | .It Li kern.fscale ( Dv KERN_FSCALE ) | | 533 | .It Li kern.fscale ( Dv KERN_FSCALE ) |
534 | The kernel fixed-point scale factor. | | 534 | The kernel fixed-point scale factor. |
535 | .It Li kern.fsync ( Dv KERN_FSYNC ) | | 535 | .It Li kern.fsync ( Dv KERN_FSYNC ) |
536 | Return 1 if the | | 536 | Return 1 if the |
537 | .St -p1003.1b-93 | | 537 | .St -p1003.1b-93 |
538 | File Synchronization Option is available | | 538 | File Synchronization Option is available |
539 | on this system, | | 539 | on this system, |
540 | otherwise\ 0. | | 540 | otherwise\ 0. |
541 | .It Li kern.hardclock_ticks ( Dv KERN_HARDCLOCK_TICKS ) | | 541 | .It Li kern.hardclock_ticks ( Dv KERN_HARDCLOCK_TICKS ) |
542 | Returns the number of | | 542 | Returns the number of |
543 | .Xr hardclock 9 | | 543 | .Xr hardclock 9 |
544 | ticks. | | 544 | ticks. |
545 | .It Li kern.hostid ( Dv KERN_HOSTID ) | | 545 | .It Li kern.hostid ( Dv KERN_HOSTID ) |
546 | Get or set the host identifier. | | 546 | Get or set the host identifier. |
547 | This is aimed to replace the legacy | | 547 | This is aimed to replace the legacy |
548 | .Xr gethostid 3 | | 548 | .Xr gethostid 3 |
549 | and | | 549 | and |
550 | .Xr sethostid 3 | | 550 | .Xr sethostid 3 |
551 | system calls. | | 551 | system calls. |
552 | .It Li kern.hostname ( Dv KERN_HOSTNAME ) | | 552 | .It Li kern.hostname ( Dv KERN_HOSTNAME ) |
553 | Get or set the | | 553 | Get or set the |
554 | .Xr hostname 1 . | | 554 | .Xr hostname 1 . |
555 | .It Li kern.iov_max ( Dv KERN_IOV_MAX ) | | 555 | .It Li kern.iov_max ( Dv KERN_IOV_MAX ) |
556 | Return the maximum number of | | 556 | Return the maximum number of |
557 | .Vt iovec | | 557 | .Vt iovec |
558 | structures that a process has available for use with | | 558 | structures that a process has available for use with |
559 | .Xr preadv 2 , | | 559 | .Xr preadv 2 , |
560 | .Xr pwritev 2 , | | 560 | .Xr pwritev 2 , |
561 | .Xr readv 2 , | | 561 | .Xr readv 2 , |
562 | .Xr recvmsg 2 , | | 562 | .Xr recvmsg 2 , |
563 | .Xr sendmsg 2 | | 563 | .Xr sendmsg 2 |
564 | and | | 564 | and |
565 | .Xr writev 2 . | | 565 | .Xr writev 2 . |
566 | .It Li kern.ipc ( Dv KERN_SYSVIPC ) | | 566 | .It Li kern.ipc ( Dv KERN_SYSVIPC ) |
567 | Return information about the SysV IPC parameters. | | 567 | Return information about the SysV IPC parameters. |
568 | The third level names for the ipc variables are detailed below. | | 568 | The third level names for the ipc variables are detailed below. |
569 | .Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent | | 569 | .Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent |
570 | .It Sy Third level name Sy Type Sy Changeable | | 570 | .It Sy Third level name Sy Type Sy Changeable |
571 | .It kern.ipc.sysvmsg integer no | | 571 | .It kern.ipc.sysvmsg integer no |
572 | .It kern.ipc.sysvsem integer no | | 572 | .It kern.ipc.sysvsem integer no |
573 | .It kern.ipc.sysvshm integer no | | 573 | .It kern.ipc.sysvshm integer no |
574 | .It kern.ipc.sysvipc_info struct no | | 574 | .It kern.ipc.sysvipc_info struct no |
575 | .It kern.ipc.shmmax integer yes | | 575 | .It kern.ipc.shmmax integer yes |
576 | .It kern.ipc.shmmni integer yes | | 576 | .It kern.ipc.shmmni integer yes |
577 | .It kern.ipc.shmseg integer yes | | 577 | .It kern.ipc.shmseg integer yes |
578 | .It kern.ipc.shmmaxpgs integer yes | | 578 | .It kern.ipc.shmmaxpgs integer yes |
579 | .It kern.ipc.shm_use_phys integer yes | | 579 | .It kern.ipc.shm_use_phys integer yes |
580 | .It kern.ipc.msgmni integer yes | | 580 | .It kern.ipc.msgmni integer yes |
581 | .It kern.ipc.msgseg integer yes | | 581 | .It kern.ipc.msgseg integer yes |
582 | .It kern.ipc.semmni integer yes | | 582 | .It kern.ipc.semmni integer yes |
583 | .It kern.ipc.semmns integer yes | | 583 | .It kern.ipc.semmns integer yes |
584 | .It kern.ipc.semmnu integer yes | | 584 | .It kern.ipc.semmnu integer yes |
585 | .El | | 585 | .El |
586 | .Bl -tag -width "123456" | | 586 | .Bl -tag -width "123456" |
587 | .It Li kern.ipc.sysvmsg ( Dv KERN_SYSVIPC_MSG ) | | 587 | .It Li kern.ipc.sysvmsg ( Dv KERN_SYSVIPC_MSG ) |
588 | Returns 1 if System V style message queue functionality is available | | 588 | Returns 1 if System V style message queue functionality is available |
589 | on this system, | | 589 | on this system, |
590 | otherwise\ 0. | | 590 | otherwise\ 0. |
591 | .It Li kern.ipc.sysvsem ( Dv KERN_SYSVIPC_SEM ) | | 591 | .It Li kern.ipc.sysvsem ( Dv KERN_SYSVIPC_SEM ) |
592 | Returns 1 if System V style semaphore functionality is available | | 592 | Returns 1 if System V style semaphore functionality is available |
593 | on this system, | | 593 | on this system, |
594 | otherwise\ 0. | | 594 | otherwise\ 0. |
595 | .It Li kern.ipc.sysvshm ( Dv KERN_SYSVIPC_SHM ) | | 595 | .It Li kern.ipc.sysvshm ( Dv KERN_SYSVIPC_SHM ) |
596 | Returns 1 if System V style share memory functionality is available | | 596 | Returns 1 if System V style share memory functionality is available |
597 | on this system, | | 597 | on this system, |
598 | otherwise\ 0. | | 598 | otherwise\ 0. |
599 | .It Li kern.ipc.sysvipc_info ( Dv KERN_SYSVIPC_INFO ) | | 599 | .It Li kern.ipc.sysvipc_info ( Dv KERN_SYSVIPC_INFO ) |
600 | Return System V style IPC configuration and run-time information. | | 600 | Return System V style IPC configuration and run-time information. |
601 | The fourth level name selects the System V style IPC facility. | | 601 | The fourth level name selects the System V style IPC facility. |
602 | .Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent | | 602 | .Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent |
603 | .It Sy Fourth level name Sy Type | | 603 | .It Sy Fourth level name Sy Type |
604 | .It KERN_SYSVIPC_MSG_INFO struct msg_sysctl_info | | 604 | .It KERN_SYSVIPC_MSG_INFO struct msg_sysctl_info |
605 | .It KERN_SYSVIPC_SEM_INFO struct sem_sysctl_info | | 605 | .It KERN_SYSVIPC_SEM_INFO struct sem_sysctl_info |
606 | .It KERN_SYSVIPC_SHM_INFO struct shm_sysctl_info | | 606 | .It KERN_SYSVIPC_SHM_INFO struct shm_sysctl_info |
607 | .El | | 607 | .El |
608 | .Bl -tag -width "123456" | | 608 | .Bl -tag -width "123456" |
609 | .It Li KERN_SYSVIPC_MSG_INFO | | 609 | .It Li KERN_SYSVIPC_MSG_INFO |
610 | Return information on the System V style message facility. | | 610 | Return information on the System V style message facility. |
611 | The | | 611 | The |
612 | .Sy msg_sysctl_info | | 612 | .Sy msg_sysctl_info |
613 | structure is defined in | | 613 | structure is defined in |
614 | .In sys/msg.h . | | 614 | .In sys/msg.h . |
615 | .It Li KERN_SYSVIPC_SEM_INFO | | 615 | .It Li KERN_SYSVIPC_SEM_INFO |
616 | Return information on the System V style semaphore facility. | | 616 | Return information on the System V style semaphore facility. |
617 | The | | 617 | The |
618 | .Sy sem_sysctl_info | | 618 | .Sy sem_sysctl_info |
619 | structure is defined in | | 619 | structure is defined in |
620 | .In sys/sem.h . | | 620 | .In sys/sem.h . |
621 | .It Li KERN_SYSVIPC_SHM_INFO | | 621 | .It Li KERN_SYSVIPC_SHM_INFO |
622 | Return information on the System V style shared memory facility. | | 622 | Return information on the System V style shared memory facility. |
623 | The | | 623 | The |
624 | .Sy shm_sysctl_info | | 624 | .Sy shm_sysctl_info |
625 | structure is defined in | | 625 | structure is defined in |
626 | .In sys/shm.h . | | 626 | .In sys/shm.h . |
627 | .El | | 627 | .El |
628 | .It Li kern.ipc.shmmax ( Dv KERN_SYSVIPC_SHMMAX ) | | 628 | .It Li kern.ipc.shmmax ( Dv KERN_SYSVIPC_SHMMAX ) |
629 | Max shared memory segment size in bytes. | | 629 | Max shared memory segment size in bytes. |
630 | .It Li kern.ipc.shmmni ( Dv KERN_SYSVIPC_SHMMNI ) | | 630 | .It Li kern.ipc.shmmni ( Dv KERN_SYSVIPC_SHMMNI ) |
631 | Max number of shared memory identifiers. | | 631 | Max number of shared memory identifiers. |
632 | .It Li kern.ipc.shmseg ( Dv KERN_SYSVIPC_SHMSEG ) | | 632 | .It Li kern.ipc.shmseg ( Dv KERN_SYSVIPC_SHMSEG ) |
633 | Max shared memory segments per process. | | 633 | Max shared memory segments per process. |
634 | .It Li kern.ipc.shmmaxpgs ( Dv KERN_SYSVIPC_SHMMAXPGS ) | | 634 | .It Li kern.ipc.shmmaxpgs ( Dv KERN_SYSVIPC_SHMMAXPGS ) |
635 | Max amount of shared memory in pages. | | 635 | Max amount of shared memory in pages. |
636 | .It Li kern.ipc.shm_use_phys ( Dv KERN_SYSVIPC_SHMUSEPHYS ) | | 636 | .It Li kern.ipc.shm_use_phys ( Dv KERN_SYSVIPC_SHMUSEPHYS ) |
637 | Locking of shared memory in physical memory. | | 637 | Locking of shared memory in physical memory. |
638 | If 0, memory can be swapped | | 638 | If 0, memory can be swapped |
639 | out, otherwise it will be locked in physical memory. | | 639 | out, otherwise it will be locked in physical memory. |
640 | .It Li kern.ipc.msgmni | | 640 | .It Li kern.ipc.msgmni |
641 | Max number of message queue identifiers. | | 641 | Max number of message queue identifiers. |
642 | .It Li kern.ipc.msgseg | | 642 | .It Li kern.ipc.msgseg |
643 | Max number of number of message segments. | | 643 | Max number of number of message segments. |
644 | .It Li kern.ipc.semmni | | 644 | .It Li kern.ipc.semmni |
645 | Max number of number of semaphore identifiers. | | 645 | Max number of number of semaphore identifiers. |
646 | .It Li kern.ipc.semmns | | 646 | .It Li kern.ipc.semmns |
647 | Max number of number of semaphores in system. | | 647 | Max number of number of semaphores in system. |
648 | .It Li kern.ipc.semmnu | | 648 | .It Li kern.ipc.semmnu |
649 | Max number of undo structures in system. | | 649 | Max number of undo structures in system. |
650 | .El | | 650 | .El |
651 | .It Li kern.job_control ( Dv KERN_JOB_CONTROL ) | | 651 | .It Li kern.job_control ( Dv KERN_JOB_CONTROL ) |
652 | Return 1 if job control is available on this system, otherwise\ 0. | | 652 | Return 1 if job control is available on this system, otherwise\ 0. |
653 | .It Li kern.labeloffset ( Dv KERN_LABELOFFSET ) | | 653 | .It Li kern.labeloffset ( Dv KERN_LABELOFFSET ) |
654 | The offset within the sector specified by | | 654 | The offset within the sector specified by |
655 | .Dv KERN_LABELSECTOR | | 655 | .Dv KERN_LABELSECTOR |
656 | of the | | 656 | of the |
657 | .Xr disklabel 5 . | | 657 | .Xr disklabel 5 . |
658 | .It Li kern.labelsector ( Dv KERN_LABELSECTOR ) | | 658 | .It Li kern.labelsector ( Dv KERN_LABELSECTOR ) |
659 | The sector number containing the | | 659 | The sector number containing the |
660 | .Xr disklabel 5 . | | 660 | .Xr disklabel 5 . |
661 | .It Li kern.login_name_max ( Dv KERN_LOGIN_NAME_MAX ) | | 661 | .It Li kern.login_name_max ( Dv KERN_LOGIN_NAME_MAX ) |
662 | The size of the storage required for a login name, in bytes, | | 662 | The size of the storage required for a login name, in bytes, |
663 | including the terminating NUL. | | 663 | including the terminating NUL. |
664 | .It Li kern.logsigexit ( Dv KERN_LOGSIGEXIT ) | | 664 | .It Li kern.logsigexit ( Dv KERN_LOGSIGEXIT ) |
665 | If this flag is non-zero, the kernel will | | 665 | If this flag is non-zero, the kernel will |
666 | .Xr log 9 | | 666 | .Xr log 9 |
667 | all process exits due to signals which create a | | 667 | all process exits due to signals which create a |
668 | .Xr core 5 | | 668 | .Xr core 5 |
669 | file, and whether the coredump was created. | | 669 | file, and whether the coredump was created. |
670 | .It Li kern.mapped_files ( Dv KERN_MAPPED_FILES ) | | 670 | .It Li kern.mapped_files ( Dv KERN_MAPPED_FILES ) |
671 | Returns 1 if the | | 671 | Returns 1 if the |
672 | .St -p1003.1b-93 | | 672 | .St -p1003.1b-93 |
673 | Memory Mapped Files Option is available on this system, | | 673 | Memory Mapped Files Option is available on this system, |
674 | otherwise\ 0. | | 674 | otherwise\ 0. |
675 | .It Li kern.maxfiles ( Dv KERN_MAXFILES ) | | 675 | .It Li kern.maxfiles ( Dv KERN_MAXFILES ) |
676 | The maximum number of open files that may be open in the system. | | 676 | The maximum number of open files that may be open in the system. |
677 | .It Li kern.maxpartitions ( Dv KERN_MAXPARTITIONS ) | | 677 | .It Li kern.maxpartitions ( Dv KERN_MAXPARTITIONS ) |
678 | The maximum number of partitions allowed per disk. | | 678 | The maximum number of partitions allowed per disk. |
679 | .It Li kern.maxlwp | | 679 | .It Li kern.maxlwp |
680 | The maximum number of Lightweight Processes (threads) the system allows | | 680 | The maximum number of Lightweight Processes (threads) the system allows |
681 | per uid. | | 681 | per uid. |
682 | .It Li kern.maxphys ( Dv KERN_MAXPHYS ) | | 682 | .It Li kern.maxphys ( Dv KERN_MAXPHYS ) |
683 | Maximum raw I/O transfer size. | | 683 | Maximum raw I/O transfer size. |
684 | .It Li kern.maxproc ( Dv KERN_MAXPROC ) | | 684 | .It Li kern.maxproc ( Dv KERN_MAXPROC ) |
685 | The maximum number of simultaneous processes the system will allow. | | 685 | The maximum number of simultaneous processes the system will allow. |
686 | .It Li kern.maxptys ( Dv KERN_MAXPTYS ) | | 686 | .It Li kern.maxptys ( Dv KERN_MAXPTYS ) |
687 | The maximum number of pseudo terminals. | | 687 | The maximum number of pseudo terminals. |
688 | This value can be both raised and lowered, though it cannot | | 688 | This value can be both raised and lowered, though it cannot |
689 | be set lower than number of currently used ptys. | | 689 | be set lower than number of currently used ptys. |
690 | See also | | 690 | See also |
691 | .Xr pty 4 . | | 691 | .Xr pty 4 . |
692 | .It Li kern.maxvnodes ( Dv KERN_MAXVNODES ) | | 692 | .It Li kern.maxvnodes ( Dv KERN_MAXVNODES ) |
693 | The maximum number of vnodes available on the system. | | 693 | The maximum number of vnodes available on the system. |
694 | This can only be raised. | | 694 | This can only be raised. |
695 | .It Li kern.mbuf ( Dv KERN_MBUF ) | | 695 | .It Li kern.mbuf ( Dv KERN_MBUF ) |
696 | Return information about the mbuf control variables. | | 696 | Return information about the mbuf control variables. |
697 | Mbufs are data structures which store network packets and other data | | 697 | Mbufs are data structures which store network packets and other data |
698 | structures in the networking code, see | | 698 | structures in the networking code, see |
699 | .Xr mbuf 9 . | | 699 | .Xr mbuf 9 . |
700 | The third level names for the mbuf variables are detailed below. | | 700 | The third level names for the mbuf variables are detailed below. |
701 | The changeable column shows whether a process with appropriate | | 701 | The changeable column shows whether a process with appropriate |
702 | privilege may change the value. | | 702 | privilege may change the value. |
703 | .Bl -column "kern.mbuf.nmbclusters" "integer" "Changeable" -offset indent | | 703 | .Bl -column "kern.mbuf.nmbclusters" "integer" "Changeable" -offset indent |
704 | .It Sy Third level name Sy Type Sy Changeable | | 704 | .It Sy Third level name Sy Type Sy Changeable |
705 | .\" XXX Changeable? really? | | 705 | .\" XXX Changeable? really? |
706 | .It kern.mbuf.mblowat integer yes | | 706 | .It kern.mbuf.mblowat integer yes |
707 | .It kern.mbuf.mclbytes integer yes | | 707 | .It kern.mbuf.mclbytes integer yes |
708 | .It kern.mbuf.mcllowat integer yes | | 708 | .It kern.mbuf.mcllowat integer yes |
709 | .It kern.mbuf.msize integer yes | | 709 | .It kern.mbuf.msize integer yes |
710 | .It kern.mbuf.nmbclusters integer yes | | 710 | .It kern.mbuf.nmbclusters integer yes |
711 | .El | | 711 | .El |
712 | .Pp | | 712 | .Pp |
713 | The variables are as follows: | | 713 | The variables are as follows: |
714 | .Bl -tag -width "123456" | | 714 | .Bl -tag -width "123456" |
715 | .It Li kern.mbuf.mblowat ( Dv MBUF_MBLOWAT ) | | 715 | .It Li kern.mbuf.mblowat ( Dv MBUF_MBLOWAT ) |
716 | The mbuf low water mark. | | 716 | The mbuf low water mark. |
717 | .It Li kern.mbuf.mclbytes ( Dv MBUF_MCLBYTES ) | | 717 | .It Li kern.mbuf.mclbytes ( Dv MBUF_MCLBYTES ) |
718 | The mbuf cluster size. | | 718 | The mbuf cluster size. |
719 | .It Li kern.mbuf.mcllowat ( Dv MBUF_MCLLOWAT ) | | 719 | .It Li kern.mbuf.mcllowat ( Dv MBUF_MCLLOWAT ) |
720 | The mbuf cluster low water mark. | | 720 | The mbuf cluster low water mark. |
721 | .It Li kern.mbuf.msize ( Dv MBUF_MSIZE ) | | 721 | .It Li kern.mbuf.msize ( Dv MBUF_MSIZE ) |
722 | The mbuf base size. | | 722 | The mbuf base size. |
723 | .It Li kern.mbuf.nmbclusters ( Dv MBUF_NMBCLUSTERS ) | | 723 | .It Li kern.mbuf.nmbclusters ( Dv MBUF_NMBCLUSTERS ) |
724 | The limit on the number of mbuf clusters. | | 724 | The limit on the number of mbuf clusters. |
725 | The variable can only be increased, and only increased on machines with | | 725 | The variable can only be increased, and only increased on machines with |
726 | direct-mapped pool pages. | | 726 | direct-mapped pool pages. |
727 | .El | | 727 | .El |
728 | .It Li kern.memlock ( Dv KERN_MEMLOCK ) | | 728 | .It Li kern.memlock ( Dv KERN_MEMLOCK ) |
729 | Returns 1 if the | | 729 | Returns 1 if the |
730 | .St -p1003.1b-93 | | 730 | .St -p1003.1b-93 |
731 | Process Memory Locking Option is available on this system, | | 731 | Process Memory Locking Option is available on this system, |
732 | otherwise\ 0. | | 732 | otherwise\ 0. |
733 | .It Li kern.memlock_range ( Dv KERN_MEMLOCK_RANGE ) | | 733 | .It Li kern.memlock_range ( Dv KERN_MEMLOCK_RANGE ) |
734 | Returns 1 if the | | 734 | Returns 1 if the |
735 | .St -p1003.1b-93 | | 735 | .St -p1003.1b-93 |
736 | Range Memory Locking Option is available on this system, | | 736 | Range Memory Locking Option is available on this system, |
737 | otherwise\ 0. | | 737 | otherwise\ 0. |
738 | .It Li kern.memory_protection ( Dv KERN_MEMORY_PROTECTION ) | | 738 | .It Li kern.memory_protection ( Dv KERN_MEMORY_PROTECTION ) |
739 | Returns 1 if the | | 739 | Returns 1 if the |
740 | .St -p1003.1b-93 | | 740 | .St -p1003.1b-93 |
741 | Memory Protection Option is available on this system, | | 741 | Memory Protection Option is available on this system, |
742 | otherwise\ 0. | | 742 | otherwise\ 0. |
743 | .It Li kern.messages | | 743 | .It Li kern.messages |
744 | Kernel console message verbosity. | | 744 | Kernel console message verbosity. |
745 | See | | 745 | See |
746 | .Sy \<sys/reboot.h\> | | 746 | .Sy \<sys/reboot.h\> |
747 | .Bl -column "verbosity" "setting" -offset indent | | 747 | .Bl -column "verbosity" "setting" -offset indent |
748 | .It Sy Verbosity Setting | | 748 | .It Sy Verbosity Setting |
749 | .It \ \ \ \ 0 Silent Sy AB_SILENT | | 749 | .It \ \ \ \ 0 Silent Sy AB_SILENT |
750 | .It \ \ \ \ 1 Quiet Sy AB_QUIET | | 750 | .It \ \ \ \ 1 Quiet Sy AB_QUIET |
751 | .It \ \ \ \ 2 Normal Sy AB_NORMAL | | 751 | .It \ \ \ \ 2 Normal Sy AB_NORMAL |
752 | .It \ \ \ \ 3 Verbose Sy AB_VERBOSE | | 752 | .It \ \ \ \ 3 Verbose Sy AB_VERBOSE |
753 | .It \ \ \ \ 4 Debug Sy AB_DEBUG | | 753 | .It \ \ \ \ 4 Debug Sy AB_DEBUG |
754 | .El | | 754 | .El |
755 | .It Li kern.module | | 755 | .It Li kern.module |
756 | Settings related to kernel modules. | | 756 | Settings related to kernel modules. |
757 | The third level names for the settings are described below. | | 757 | The third level names for the settings are described below. |
758 | .Bl -column "kern.module.autoload" "integer" "Changeable" -offset indent | | 758 | .Bl -column "kern.module.autoload" "integer" "Changeable" -offset indent |
759 | .It Sy Third level name Sy Type Sy Changeable | | 759 | .It Sy Third level name Sy Type Sy Changeable |
760 | .It kern.module.autoload integer yes | | 760 | .It kern.module.autoload integer yes |
761 | .It kern.module.autotime integer yes | | 761 | .It kern.module.autotime integer yes |
762 | .It kern.module.verbose integer yes | | 762 | .It kern.module.verbose integer yes |
763 | .El | | 763 | .El |
764 | .Pp | | 764 | .Pp |
765 | The variables are as follows: | | 765 | The variables are as follows: |
766 | .Bl -tag -width "123456" | | 766 | .Bl -tag -width "123456" |
767 | .It Li kern.module.autoload | | 767 | .It Li kern.module.autoload |
768 | A boolean that controls whether kernel modules are loaded automatically. | | 768 | A boolean that controls whether kernel modules are loaded automatically. |
769 | See | | 769 | See |
770 | .Xr module 7 | | 770 | .Xr module 7 |
771 | for additional details. | | 771 | for additional details. |
772 | .It Li kern.module.autotime | | 772 | .It Li kern.module.autotime |
773 | An integer that controls the delay before an attempt is made to | | 773 | An integer that controls the delay before an attempt is made to |
774 | automatically unload a module that was auto-loaded. | | 774 | automatically unload a module that was auto-loaded. |
775 | Setting this value to zero disables the auto-unload function. | | 775 | Setting this value to zero disables the auto-unload function. |
776 | .It Li kern.module.verbose | | 776 | .It Li kern.module.verbose |
777 | A boolean that enables or disables verbose | | 777 | A boolean that enables or disables verbose |
778 | debug messages related to kernel modules. | | 778 | debug messages related to kernel modules. |
779 | .El | | 779 | .El |
780 | .It Li kern.monotonic_clock ( Dv KERN_MONOTONIC_CLOCK ) | | 780 | .It Li kern.monotonic_clock ( Dv KERN_MONOTONIC_CLOCK ) |
781 | Returns the standard version the implementation of the | | 781 | Returns the standard version the implementation of the |
782 | .St -p1003.1b-93 | | 782 | .St -p1003.1b-93 |
783 | Monotonic Clock Option conforms to, | | 783 | Monotonic Clock Option conforms to, |
784 | otherwise\ 0. | | 784 | otherwise\ 0. |
785 | .It Li kern.mqueue | | 785 | .It Li kern.mqueue |
786 | Settings related to | | 786 | Settings related to |
787 | .Tn POSIX | | 787 | .Tn POSIX |
788 | message queues; see | | 788 | message queues; see |
789 | .Xr mqueue 3 . | | 789 | .Xr mqueue 3 . |
790 | This node is created dynamically when | | 790 | This node is created dynamically when |
791 | the corresponding kernel module is loaded. | | 791 | the corresponding kernel module is loaded. |
792 | The third level names for the settings are described below. | | 792 | The third level names for the settings are described below. |
793 | .Bl -column "kern.mqueue.mq_max_msgsize" "integer" "Changeable" -offset indent | | 793 | .Bl -column "kern.mqueue.mq_max_msgsize" "integer" "Changeable" -offset indent |
794 | .It Sy Third level name Sy Type Sy Changeable | | 794 | .It Sy Third level name Sy Type Sy Changeable |
795 | .It kern.mqueue.mq_open_max integer yes | | 795 | .It kern.mqueue.mq_open_max integer yes |
796 | .It kern.mqueue.mq_prio_max integer yes | | 796 | .It kern.mqueue.mq_prio_max integer yes |
797 | .It kern.mqueue.mq_max_msgsize integer yes | | 797 | .It kern.mqueue.mq_max_msgsize integer yes |
798 | .It kern.mqueue.mq_def_maxmsg integer yes | | 798 | .It kern.mqueue.mq_def_maxmsg integer yes |
799 | .It kern.mqueue.mq_max_maxmsg integer yes | | 799 | .It kern.mqueue.mq_max_maxmsg integer yes |
800 | .El | | 800 | .El |
801 | .Pp | | 801 | .Pp |
802 | The variables are: | | 802 | The variables are: |
803 | .Bl -tag -width "123456" | | 803 | .Bl -tag -width "123456" |
804 | .It Li kern.mqueue.mq_open_max | | 804 | .It Li kern.mqueue.mq_open_max |
805 | The maximum number of message queue descriptors any single process can open. | | 805 | The maximum number of message queue descriptors any single process can open. |
806 | .It Li kern.mqueue.mq_prio_max | | 806 | .It Li kern.mqueue.mq_prio_max |
807 | The maximum priority of a message. | | 807 | The maximum priority of a message. |
808 | .It Li kern.mqueue.mq_max_msgsize | | 808 | .It Li kern.mqueue.mq_max_msgsize |
809 | The maximum size of a message in a message queue. | | 809 | The maximum size of a message in a message queue. |
810 | .It Li kern.mqueue.mq_def_maxmsg | | 810 | .It Li kern.mqueue.mq_def_maxmsg |
811 | The default maximum message count. | | 811 | The default maximum message count. |
812 | .It Li kern.mqueue.mq_max_maxmsg | | 812 | .It Li kern.mqueue.mq_max_maxmsg |
813 | The maximum number of messages in a message queue. | | 813 | The maximum number of messages in a message queue. |
814 | .El | | 814 | .El |
815 | .It Li kern.msgbuf ( Dv KERN_MSGBUF ) | | 815 | .It Li kern.msgbuf ( Dv KERN_MSGBUF ) |
816 | The kernel message buffer, rotated so that the head of the circular kernel | | 816 | The kernel message buffer, rotated so that the head of the circular kernel |
817 | message buffer is at the start of the returned data. | | 817 | message buffer is at the start of the returned data. |
818 | The returned data may contain NUL bytes. | | 818 | The returned data may contain NUL bytes. |
819 | .It Li kern.msgbufsize ( Dv KERN_MSGBUFSIZE ) | | 819 | .It Li kern.msgbufsize ( Dv KERN_MSGBUFSIZE ) |
820 | The maximum number of characters that the kernel message buffer can hold. | | 820 | The maximum number of characters that the kernel message buffer can hold. |
821 | .It Li kern.ngroups ( Dv KERN_NGROUPS ) | | 821 | .It Li kern.ngroups ( Dv KERN_NGROUPS ) |
822 | The maximum number of supplemental groups. | | 822 | The maximum number of supplemental groups. |
823 | .\" .It Li kern.no_sa_support | | 823 | .\" .It Li kern.no_sa_support |
824 | .\" XXX: Undocumented. | | 824 | .\" XXX: Undocumented. |
825 | .It Li kern.ntptime ( Dv KERN_NTPTIME ) | | 825 | .It Li kern.ntptime ( Dv KERN_NTPTIME ) |
826 | A | | 826 | A |
827 | .Vt struct ntptimeval | | 827 | .Vt struct ntptimeval |
828 | structure is returned. | | 828 | structure is returned. |
829 | This structure contains data used by the | | 829 | This structure contains data used by the |
830 | .Xr ntpd 8 | | 830 | .Xr ntpd 8 |
831 | program. | | 831 | program. |
832 | .It Li kern.osrelease ( Dv KERN_OSRELEASE ) | | 832 | .It Li kern.osrelease ( Dv KERN_OSRELEASE ) |
833 | The system release string. | | 833 | The system release string. |
834 | .It Li kern.osrevision ( Dv KERN_OSREV ) | | 834 | .It Li kern.osrevision ( Dv KERN_OSREV ) |
835 | The system revision string. | | 835 | The system revision string. |
836 | .It Li kern.ostype ( Dv KERN_OSTYPE ) | | 836 | .It Li kern.ostype ( Dv KERN_OSTYPE ) |
837 | The system type string. | | 837 | The system type string. |
838 | .\".It Li kern.panic_now | | 838 | .\".It Li kern.panic_now |
839 | .\" XXX: Undocumented. | | 839 | .\" XXX: Undocumented. |
840 | .It Li kern.pipe ( Dv KERN_PIPE ) | | 840 | .It Li kern.pipe ( Dv KERN_PIPE ) |
841 | Pipe settings. | | 841 | Pipe settings. |
842 | The third level names for the integer pipe settings is detailed below. | | 842 | The third level names for the integer pipe settings is detailed below. |
843 | The changeable column shows whether a process with appropriate | | 843 | The changeable column shows whether a process with appropriate |
844 | privilege may change the value. | | 844 | privilege may change the value. |
845 | .Bl -column "kern.pipe.maxbigpipes" "integer" "Changeable" -offset indent | | 845 | .Bl -column "kern.pipe.maxbigpipes" "integer" "Changeable" -offset indent |
846 | .It Sy Third level name Sy Type Sy Changeable | | 846 | .It Sy Third level name Sy Type Sy Changeable |
847 | .It kern.pipe.kvasiz integer yes | | 847 | .It kern.pipe.kvasiz integer yes |
848 | .It kern.pipe.maxbigpipes integer yes | | 848 | .It kern.pipe.maxbigpipes integer yes |
849 | .It kern.pipe.maxkvasz integer yes | | 849 | .It kern.pipe.maxkvasz integer yes |
850 | .It kern.pipe.limitkva integer yes | | 850 | .It kern.pipe.limitkva integer yes |
851 | .It kern.pipe.nbigpipes integer yes | | 851 | .It kern.pipe.nbigpipes integer yes |
852 | .El | | 852 | .El |
853 | .Pp | | 853 | .Pp |
854 | The variables are as follows: | | 854 | The variables are as follows: |
855 | .Bl -tag -width "123456" | | 855 | .Bl -tag -width "123456" |
856 | .It Li kern.pipe.kvasiz ( Dv KERN_PIPE_KVASIZ ) | | 856 | .It Li kern.pipe.kvasiz ( Dv KERN_PIPE_KVASIZ ) |
857 | Amount of kernel memory consumed by pipe buffers. | | 857 | Amount of kernel memory consumed by pipe buffers. |
858 | .It Li kern.pipe.maxbigpipes ( Dv KERN_PIPE_MAXBIGPIPES ) | | 858 | .It Li kern.pipe.maxbigpipes ( Dv KERN_PIPE_MAXBIGPIPES ) |
859 | Maximum number of | | 859 | Maximum number of |
860 | .Dq big | | 860 | .Dq big |
861 | pipes. | | 861 | pipes. |
862 | .It Li kern.pipe.maxkvasz ( Dv KERN_PIPE_MAXKVASZ ) | | 862 | .It Li kern.pipe.maxkvasz ( Dv KERN_PIPE_MAXKVASZ ) |
863 | Maximum amount of kernel memory to be used for pipes. | | 863 | Maximum amount of kernel memory to be used for pipes. |
864 | .It Li kern.pipe.limitkva ( Dv KERN_PIPE_LIMITKVA ) | | 864 | .It Li kern.pipe.limitkva ( Dv KERN_PIPE_LIMITKVA ) |
865 | Limit for direct transfers via page loan. | | 865 | Limit for direct transfers via page loan. |
866 | .It Li kern.pipe.nbigpipes ( Dv KERN_PIPE_NBIGPIPES ) | | 866 | .It Li kern.pipe.nbigpipes ( Dv KERN_PIPE_NBIGPIPES ) |
867 | Number of | | 867 | Number of |
868 | .Dq big | | 868 | .Dq big |
869 | pipes. | | 869 | pipes. |
870 | .El | | 870 | .El |
871 | .It Li kern.pool | | 871 | .It Li kern.pool |
872 | Provides statistics about the | | 872 | Provides statistics about the |
873 | .Xr pool 9 | | 873 | .Xr pool 9 |
874 | and | | 874 | and |
875 | .Xr pool_cache 9 | | 875 | .Xr pool_cache 9 |
876 | subsystems. | | 876 | subsystems. |
877 | .\" XXX: Undocumented .It Li kern.posix ( ? ) | | 877 | .\" XXX: Undocumented .It Li kern.posix ( ? ) |
878 | .\" This is a node in which the only variable is semmax. | | 878 | .\" This is a node in which the only variable is semmax. |
879 | .It Li kern.posix1version ( Dv KERN_POSIX1 ) | | 879 | .It Li kern.posix1version ( Dv KERN_POSIX1 ) |
880 | The version of ISO/IEC 9945 | | 880 | The version of ISO/IEC 9945 |
881 | .Pq St -p1003.1 | | 881 | .Pq St -p1003.1 |
882 | with which the system attempts to comply. | | 882 | with which the system attempts to comply. |
883 | .It Li kern.posix_aio | | 883 | .It Li kern.posix_aio |
884 | The version of | | 884 | The version of |
885 | .St -p1003.1 | | 885 | .St -p1003.1 |
886 | and its Asynchronous I/O option to which the system attempts to conform. | | 886 | and its Asynchronous I/O option to which the system attempts to conform. |
887 | .It Li kern.posix_barriers ( Dv KERN_POSIX_BARRIERS ) | | 887 | .It Li kern.posix_barriers ( Dv KERN_POSIX_BARRIERS ) |
888 | The version of | | 888 | The version of |
889 | .St -p1003.1 | | 889 | .St -p1003.1 |
890 | and its | | 890 | and its |
891 | Barriers | | 891 | Barriers |
892 | option to which the system attempts to conform, | | 892 | option to which the system attempts to conform, |
893 | otherwise\ 0. | | 893 | otherwise\ 0. |
894 | .It Li kern.posix_reader_writer_locks ( Dv KERN_POSIX_READER_WRITER_LOCKS ) | | 894 | .It Li kern.posix_reader_writer_locks ( Dv KERN_POSIX_READER_WRITER_LOCKS ) |
895 | The version of | | 895 | The version of |
896 | .St -p1003.1 | | 896 | .St -p1003.1 |
897 | and its | | 897 | and its |
898 | Read-Write Locks | | 898 | Read-Write Locks |
899 | option to which the system attempts to conform, | | 899 | option to which the system attempts to conform, |
900 | otherwise\ 0. | | 900 | otherwise\ 0. |
901 | .\".It Li kern.posix_sched | | 901 | .\".It Li kern.posix_sched |
902 | .\" XXX: Undocumented. | | 902 | .\" XXX: Undocumented. |
903 | .It Li kern.posix_semaphores ( Dv KERN_POSIX_SEMAPHORES ) | | 903 | .It Li kern.posix_semaphores ( Dv KERN_POSIX_SEMAPHORES ) |
904 | The version of | | 904 | The version of |
905 | .St -p1003.1 | | 905 | .St -p1003.1 |
906 | and its | | 906 | and its |
907 | Semaphores | | 907 | Semaphores |
908 | option to which the system attempts to conform, | | 908 | option to which the system attempts to conform, |
909 | otherwise\ 0. | | 909 | otherwise\ 0. |
910 | .It Li kern.posix_spin_locks ( Dv KERN_POSIX_SPIN_LOCKS ) | | 910 | .It Li kern.posix_spin_locks ( Dv KERN_POSIX_SPIN_LOCKS ) |
911 | The version of | | 911 | The version of |
912 | .St -p1003.1 | | 912 | .St -p1003.1 |
913 | and its | | 913 | and its |
914 | Spin Locks | | 914 | Spin Locks |
915 | option to which the system attempts to conform, | | 915 | option to which the system attempts to conform, |
916 | otherwise\ 0. | | 916 | otherwise\ 0. |
917 | .It Li kern.posix_threads ( Dv KERN_POSIX_THREADS ) | | 917 | .It Li kern.posix_threads ( Dv KERN_POSIX_THREADS ) |
918 | The version of | | 918 | The version of |
919 | .St -p1003.1 | | 919 | .St -p1003.1 |
920 | and its | | 920 | and its |
921 | Threads | | 921 | Threads |
922 | option to which the system attempts to conform, | | 922 | option to which the system attempts to conform, |
923 | otherwise\ 0. | | 923 | otherwise\ 0. |
924 | .It Li kern.posix_timers ( Dv KERN_POSIX_TIMERS ) | | 924 | .It Li kern.posix_timers ( Dv KERN_POSIX_TIMERS ) |
925 | The version of | | 925 | The version of |
926 | .St -p1003.1 | | 926 | .St -p1003.1 |
927 | and its | | 927 | and its |
928 | Timers | | 928 | Timers |
929 | option to which the system attempts to conform, | | 929 | option to which the system attempts to conform, |
930 | otherwise\ 0. | | 930 | otherwise\ 0. |
931 | .It Li kern.proc ( Dv KERN_PROC ) | | 931 | .It Li kern.proc ( Dv KERN_PROC ) |
932 | Return the entire process table, or a subset of it. | | 932 | Return the entire process table, or a subset of it. |
933 | An array of | | 933 | An array of |
934 | .Vt struct kinfo_proc | | 934 | .Vt struct kinfo_proc |
935 | structures is returned, | | 935 | structures is returned, |
936 | whose size depends on the current number of such objects in the system. | | 936 | whose size depends on the current number of such objects in the system. |
937 | The third and fourth level numeric names are as follows: | | 937 | The third and fourth level numeric names are as follows: |
938 | .Bl -column "KERN_PROC_SESSION" "Fourth level is:" -offset indent | | 938 | .Bl -column "KERN_PROC_SESSION" "Fourth level is:" -offset indent |
939 | .It Sy Third level name Sy Fourth level is: | | 939 | .It Sy Third level name Sy Fourth level is: |
940 | .It KERN_PROC_ALL None | | 940 | .It KERN_PROC_ALL None |
941 | .It KERN_PROC_GID A group ID | | 941 | .It KERN_PROC_GID A group ID |
942 | .It KERN_PROC_PID A process ID | | 942 | .It KERN_PROC_PID A process ID |
943 | .It KERN_PROC_PGRP A process group | | 943 | .It KERN_PROC_PGRP A process group |
944 | .It KERN_PROC_RGID A real group ID | | 944 | .It KERN_PROC_RGID A real group ID |
945 | .It KERN_PROC_RUID A real user ID | | 945 | .It KERN_PROC_RUID A real user ID |
946 | .It KERN_PROC_SESSION A session ID | | 946 | .It KERN_PROC_SESSION A session ID |
947 | .It KERN_PROC_TTY A tty device | | 947 | .It KERN_PROC_TTY A tty device |
948 | .It KERN_PROC_UID A user ID | | 948 | .It KERN_PROC_UID A user ID |
949 | .El | | 949 | .El |
950 | .It Li kern.proc2 ( Dv KERN_PROC2 ) | | 950 | .It Li kern.proc2 ( Dv KERN_PROC2 ) |
951 | As for | | 951 | As for |
952 | .Dv KERN_PROC , | | 952 | .Dv KERN_PROC , |
953 | but an array of | | 953 | but an array of |
954 | .Vt struct kinfo_proc2 | | 954 | .Vt struct kinfo_proc2 |
955 | structures are returned. | | 955 | structures are returned. |
956 | The fifth level name is the size of the | | 956 | The fifth level name is the size of the |
957 | .Vt struct kinfo_proc2 | | 957 | .Vt struct kinfo_proc2 |
958 | and the sixth level name is the number of structures to return. | | 958 | and the sixth level name is the number of structures to return. |
959 | .It Li kern.proc_args ( Dv KERN_PROC_ARGS ) | | 959 | .It Li kern.proc_args ( Dv KERN_PROC_ARGS ) |
960 | Return the argv or environment strings (or the number thereof) | | 960 | Return the argv or environment strings (or the number thereof) |
961 | of a process. | | 961 | of a process. |
962 | Multiple strings are returned separated by NUL characters. | | 962 | Multiple strings are returned separated by NUL characters. |
963 | The third level name is the process ID. | | 963 | The third level name is the process ID. |
964 | The fourth level name is as follows: | | 964 | The fourth level name is as follows: |
965 | .Bl -column "KERN_PROG_PATHNAME" "The full pathname of the executable" -offset indent | | 965 | .Bl -column "KERN_PROG_PATHNAME" "The full pathname of the executable" -offset indent |
966 | .It Dv KERN_PROC_ARGV The argv strings | | 966 | .It Dv KERN_PROC_ARGV The argv strings |
967 | .It Dv KERN_PROC_ENV The environ strings | | 967 | .It Dv KERN_PROC_ENV The environ strings |
968 | .It Dv KERN_PROC_NARGV The number of argv strings | | 968 | .It Dv KERN_PROC_NARGV The number of argv strings |
969 | .It Dv KERN_PROC_NENV The number of environ strings | | 969 | .It Dv KERN_PROC_NENV The number of environ strings |
970 | .It Dv KERN_PROC_PATHNAME The full pathname of the executable | | 970 | .It Dv KERN_PROC_PATHNAME The full pathname of the executable |
971 | .El | | 971 | .El |
972 | .It Li kern.profiling ( Dv KERN_PROF ) | | 972 | .It Li kern.profiling ( Dv KERN_PROF ) |
973 | Return profiling information about the kernel. | | 973 | Return profiling information about the kernel. |
974 | If the kernel is not compiled for profiling, | | 974 | If the kernel is not compiled for profiling, |
975 | attempts to retrieve any of the | | 975 | attempts to retrieve any of the |
976 | .Dv KERN_PROF | | 976 | .Dv KERN_PROF |
977 | values will fail with | | 977 | values will fail with |
978 | .Er EOPNOTSUPP . | | 978 | .Er EOPNOTSUPP . |
979 | The third level names for the string and integer profiling information | | 979 | The third level names for the string and integer profiling information |
980 | is detailed below. | | 980 | is detailed below. |
981 | The changeable column shows whether a process with appropriate | | 981 | The changeable column shows whether a process with appropriate |
982 | privilege may change the value. | | 982 | privilege may change the value. |
983 | .Bl -column "kern.profiling.gmonparam" "struct gmonparam" "Changeable" -offset indent | | 983 | .Bl -column "kern.profiling.gmonparam" "struct gmonparam" "Changeable" -offset indent |
984 | .It Sy Third level name Sy Type Sy Changeable | | 984 | .It Sy Third level name Sy Type Sy Changeable |
985 | .It kern.profiling.count u_short[\|] yes | | 985 | .It kern.profiling.count u_short[\|] yes |
986 | .It kern.profiling.froms u_short[\|] yes | | 986 | .It kern.profiling.froms u_short[\|] yes |
987 | .It kern.profiling.gmonparam struct gmonparam no | | 987 | .It kern.profiling.gmonparam struct gmonparam no |
988 | .It kern.profiling.state integer yes | | 988 | .It kern.profiling.state integer yes |
989 | .It kern.profiling.tos struct tostruct yes | | 989 | .It kern.profiling.tos struct tostruct yes |
990 | .El | | 990 | .El |
991 | .Pp | | 991 | .Pp |
992 | The variables are as follows: | | 992 | The variables are as follows: |
993 | .Bl -tag -width "123456" | | 993 | .Bl -tag -width "123456" |
994 | .It Li kern.profiling.count ( Dv GPROF_COUNT ) | | 994 | .It Li kern.profiling.count ( Dv GPROF_COUNT ) |
995 | Array of statistical program counter counts. | | 995 | Array of statistical program counter counts. |
996 | .It Li kern.profiling.froms ( Dv GPROF_FROMS ) | | 996 | .It Li kern.profiling.froms ( Dv GPROF_FROMS ) |
997 | Array indexed by program counter of call-from points. | | 997 | Array indexed by program counter of call-from points. |
998 | .It Li kern.profiling.gmonparams ( Dv GPROF_GMONPARAM ) | | 998 | .It Li kern.profiling.gmonparams ( Dv GPROF_GMONPARAM ) |
999 | Structure giving the sizes of the above arrays. | | 999 | Structure giving the sizes of the above arrays. |
1000 | .It Li kern.profiling.state ( Dv GPROF_STATE ) | | 1000 | .It Li kern.profiling.state ( Dv GPROF_STATE ) |
1001 | Profiling state. | | 1001 | Profiling state. |
1002 | If set to | | 1002 | If set to |
1003 | .Dv GMON_PROF_ON , | | 1003 | .Dv GMON_PROF_ON , |
1004 | starts profiling. | | 1004 | starts profiling. |
1005 | If set to | | 1005 | If set to |
1006 | .Dv GMON_PROF_OFF , | | 1006 | .Dv GMON_PROF_OFF , |
1007 | stops profiling. | | 1007 | stops profiling. |
1008 | .It Li kern.profiling.tos ( Dv GPROF_TOS ) | | 1008 | .It Li kern.profiling.tos ( Dv GPROF_TOS ) |
1009 | Array of | | 1009 | Array of |
1010 | .Vt struct tostruct | | 1010 | .Vt struct tostruct |
1011 | describing destination of calls and their counts. | | 1011 | describing destination of calls and their counts. |
1012 | .El | | 1012 | .El |
1013 | .\" .It Li kern.pset | | 1013 | .\" .It Li kern.pset |
1014 | .\" XXX: Undocumented. | | 1014 | .\" XXX: Undocumented. |
1015 | .It Li kern.rawpartition ( Dv KERN_RAWPARTITION ) | | 1015 | .It Li kern.rawpartition ( Dv KERN_RAWPARTITION ) |
1016 | The raw partition of a disk (a == 0). | | 1016 | The raw partition of a disk (a == 0). |
1017 | .It Li kern.root_device ( Dv KERN_ROOT_DEVICE ) | | 1017 | .It Li kern.root_device ( Dv KERN_ROOT_DEVICE ) |
1018 | The name of the root device (e.g., | | 1018 | The name of the root device (e.g., |
1019 | .Dq wd0 ) . | | 1019 | .Dq wd0 ) . |
1020 | .It Li kern.root_partition ( Dv KERN_ROOT_PARTITION ) | | 1020 | .It Li kern.root_partition ( Dv KERN_ROOT_PARTITION ) |
1021 | The root partition on the root device (a == 0). | | 1021 | The root partition on the root device (a == 0). |
1022 | .It Li kern.rtc_offset ( Dv KERN_RTC_OFFSET ) | | 1022 | .It Li kern.rtc_offset ( Dv KERN_RTC_OFFSET ) |
1023 | Return the offset of real time clock from UTC in minutes. | | 1023 | Return the offset of real time clock from UTC in minutes. |
1024 | .It Li kern.saved_ids ( Dv KERN_SAVED_IDS ) | | 1024 | .It Li kern.saved_ids ( Dv KERN_SAVED_IDS ) |
1025 | Returns 1 if saved set-group and saved set-user ID is available. | | 1025 | Returns 1 if saved set-group and saved set-user ID is available. |
1026 | .It Li kern.sbmax ( Dv KERN_SBMAX ) | | 1026 | .It Li kern.sbmax ( Dv KERN_SBMAX ) |
1027 | Maximum socket buffer size. | | 1027 | Maximum socket buffer size. |
1028 | .\" XXX units? | | 1028 | .\" XXX units? |
1029 | .It Li kern.securelevel ( Dv KERN_SECURELVL ) | | 1029 | .It Li kern.securelevel ( Dv KERN_SECURELVL ) |
1030 | See | | 1030 | See |
1031 | .Xr secmodel_securelevel 9 . | | 1031 | .Xr secmodel_securelevel 9 . |
1032 | .\" .It Li kern.sched | | 1032 | .\" .It Li kern.sched |
1033 | .\" XXX: Undocumented. | | 1033 | .\" XXX: Undocumented. |
1034 | .It Li kern.somaxkva ( Dv KERN_SOMAXKVA ) | | 1034 | .It Li kern.somaxkva ( Dv KERN_SOMAXKVA ) |
1035 | Maximum amount of kernel memory to be used for socket buffers. | | 1035 | Maximum amount of kernel memory to be used for socket buffers. |
1036 | .\" XXX units? | | 1036 | .\" XXX units? |
1037 | .It Li kern.synchronized_io ( Dv KERN_SYNCHRONIZED_IO ) | | 1037 | .It Li kern.synchronized_io ( Dv KERN_SYNCHRONIZED_IO ) |
1038 | Returns 1 if the | | 1038 | Returns 1 if the |
1039 | .St -p1003.1b-93 | | 1039 | .St -p1003.1b-93 |
1040 | Synchronized I/O Option is available on this system, | | 1040 | Synchronized I/O Option is available on this system, |
1041 | otherwise\ 0. | | 1041 | otherwise\ 0. |
1042 | .It Li kern.timecounter ( dynamic ) | | 1042 | .It Li kern.timecounter ( dynamic ) |
1043 | Display and control the timecounter source of the system. | | 1043 | Display and control the timecounter source of the system. |
1044 | .Bl -column "kern.timecounter.timestepwarnings" "integer" "Changeable" -offset indent | | 1044 | .Bl -column "kern.timecounter.timestepwarnings" "integer" "Changeable" -offset indent |
1045 | .It Sy Third level name Sy Type Sy Changeable | | 1045 | .It Sy Third level name Sy Type Sy Changeable |
1046 | .It kern.timecounter.choice string no | | 1046 | .It kern.timecounter.choice string no |
1047 | .It kern.timecounter.hardware string yes | | 1047 | .It kern.timecounter.hardware string yes |
1048 | .It kern.timecounter.timestepwarnings integer yes | | 1048 | .It kern.timecounter.timestepwarnings integer yes |
1049 | .El | | 1049 | .El |
1050 | .Pp | | 1050 | .Pp |
1051 | The variables are as follows: | | 1051 | The variables are as follows: |
1052 | .Bl -tag -width "123456" | | 1052 | .Bl -tag -width "123456" |
1053 | .It Li kern.timecounter.choice ( dynamic ) | | 1053 | .It Li kern.timecounter.choice ( dynamic ) |
1054 | The list of available timecounters with their quality and frequency. | | 1054 | The list of available timecounters with their quality and frequency. |
1055 | .It Li kern.timecounter.hardware ( dynamic ) | | 1055 | .It Li kern.timecounter.hardware ( dynamic ) |
1056 | The currently selected timecounter source. | | 1056 | The currently selected timecounter source. |
1057 | .It Li kern.timecounter.timestepwarnings ( dynamic ) | | 1057 | .It Li kern.timecounter.timestepwarnings ( dynamic ) |
1058 | If non-zero display a message each time the time is stepped. | | 1058 | If non-zero display a message each time the time is stepped. |
1059 | .El | | 1059 | .El |
1060 | .It Li kern.timex ( Dv KERN_TIMEX ) | | 1060 | .It Li kern.timex ( Dv KERN_TIMEX ) |
1061 | Not available. | | 1061 | Not available. |
1062 | .It Li kern.tkstat ( Dv KERN_TKSTAT ) | | 1062 | .It Li kern.tkstat ( Dv KERN_TKSTAT ) |
1063 | Return information about the number of characters sent and received | | 1063 | Return information about the number of characters sent and received |
1064 | on ttys. | | 1064 | on ttys. |
1065 | The third level names for the tty statistic variables are detailed below. | | 1065 | The third level names for the tty statistic variables are detailed below. |
1066 | The changeable column shows whether a process | | 1066 | The changeable column shows whether a process |
1067 | with appropriate privilege may change the value. | | 1067 | with appropriate privilege may change the value. |
1068 | .Bl -column "kern.tkstat.cancc" "quad" "Changeable" -offset indent | | 1068 | .Bl -column "kern.tkstat.cancc" "quad" "Changeable" -offset indent |
1069 | .It Sy Third level name Sy Type Sy Changeable | | 1069 | .It Sy Third level name Sy Type Sy Changeable |
1070 | .It kern.tkstat.cancc quad no | | 1070 | .It kern.tkstat.cancc quad no |
1071 | .It kern.tkstat.nin quad no | | 1071 | .It kern.tkstat.nin quad no |
1072 | .It kern.tkstat.nout quad no | | 1072 | .It kern.tkstat.nout quad no |
1073 | .It kern.tkstat.rawcc quad no | | 1073 | .It kern.tkstat.rawcc quad no |
1074 | .El | | 1074 | .El |
1075 | .Pp | | 1075 | .Pp |
1076 | The variables are as follows: | | 1076 | The variables are as follows: |
1077 | .Bl -tag -width "123456" | | 1077 | .Bl -tag -width "123456" |
1078 | .It Li kern.tkstat.cancc ( Dv KERN_TKSTAT_CANCC ) | | 1078 | .It Li kern.tkstat.cancc ( Dv KERN_TKSTAT_CANCC ) |
1079 | The number of canonical input characters. | | 1079 | The number of canonical input characters. |
1080 | .It Li kern.tkstat.nin ( Dv KERN_TKSTAT_NIN ) | | 1080 | .It Li kern.tkstat.nin ( Dv KERN_TKSTAT_NIN ) |
1081 | The total number of input characters. | | 1081 | The total number of input characters. |
1082 | .It Li kern.tkstat.nout ( Dv KERN_TKSTAT_NOUT ) | | 1082 | .It Li kern.tkstat.nout ( Dv KERN_TKSTAT_NOUT ) |
1083 | The total number of output characters. | | 1083 | The total number of output characters. |
1084 | .It Li kern.tkstat.rawcc ( Dv KERN_TKSTAT_RAWCC ) | | 1084 | .It Li kern.tkstat.rawcc ( Dv KERN_TKSTAT_RAWCC ) |
1085 | The number of raw input characters. | | 1085 | The number of raw input characters. |
1086 | .El | | 1086 | .El |
1087 | .It Li kern.tty | | 1087 | .It Li kern.tty |
1088 | The third level names for the tty setup variables are detailed below. | | 1088 | The third level names for the tty setup variables are detailed below. |
1089 | The changeable column shows whether a process | | 1089 | The changeable column shows whether a process |
1090 | with appropriate privilege may change the value. | | 1090 | with appropriate privilege may change the value. |
1091 | .Bl -column "kern.tty.qsize" "int" "Changeable" -offset indent | | 1091 | .Bl -column "kern.tty.qsize" "int" "Changeable" -offset indent |
1092 | .It Sy Third level name Sy Type Sy Changeable | | 1092 | .It Sy Third level name Sy Type Sy Changeable |
1093 | .It kern.tty.qsize int yes | | 1093 | .It kern.tty.qsize int yes |
1094 | .El | | 1094 | .El |
1095 | .Pp | | 1095 | .Pp |
1096 | The variables are as follows: | | 1096 | The variables are as follows: |
1097 | .Bl -tag -width "123456" | | 1097 | .Bl -tag -width "123456" |
1098 | .It Li kern.tty.qsize | | 1098 | .It Li kern.tty.qsize |
1099 | Control/display the size of the default input and output queues selected | | 1099 | Control/display the size of the default input and output queues selected |
1100 | during tty creation. | | 1100 | during tty creation. |
1101 | Is converted to a power of two and its range is between | | 1101 | Is converted to a power of two and its range is between |
1102 | .Dv 1024 | | 1102 | .Dv 1024 |
1103 | and | | 1103 | and |
1104 | .Dv 65536 . | | 1104 | .Dv 65536 . |
1105 | .El | | 1105 | .El |
1106 | .It Li kern.uidinfo | | 1106 | .It Li kern.uidinfo |
1107 | Resource usage for the current user. | | 1107 | Resource usage for the current user. |
1108 | .Bl -column "kern.uidinfo.proccnt" "integer" "Changeable" -offset indent | | 1108 | .Bl -column "kern.uidinfo.proccnt" "integer" "Changeable" -offset indent |
1109 | .It Sy Third level name Sy Type Sy Changeable | | 1109 | .It Sy Third level name Sy Type Sy Changeable |
1110 | .It kern.uidinfo.proccnt integer no | | 1110 | .It kern.uidinfo.proccnt integer no |
1111 | .It kern.uidinfo.lwpcnt integer no | | 1111 | .It kern.uidinfo.lwpcnt integer no |
1112 | .It kern.uidinfo.lockcnt integer no | | 1112 | .It kern.uidinfo.lockcnt integer no |
1113 | .It kern.uidinfo.sbsize integer no | | 1113 | .It kern.uidinfo.sbsize integer no |
1114 | .El | | 1114 | .El |
1115 | .Bl -tag -width "123456" | | 1115 | .Bl -tag -width "123456" |
1116 | .It Li kern.uidinfo.proccnt | | 1116 | .It Li kern.uidinfo.proccnt |
1117 | Returns the number of active processes for the current user. | | 1117 | Returns the number of active processes for the current user. |
1118 | .It Li kern.uidinfo.lwpcnt | | 1118 | .It Li kern.uidinfo.lwpcnt |
1119 | Returns the number of active threads for the current user; the first thread | | 1119 | Returns the number of active threads for the current user; the first thread |
1120 | of each process is not counted. | | 1120 | of each process is not counted. |
1121 | .It Li kern.uidinfo.lockcnt | | 1121 | .It Li kern.uidinfo.lockcnt |
1122 | Number of locks held by the current user. | | 1122 | Number of locks held by the current user. |
1123 | .It Li kern.uidinfo.sbsize | | 1123 | .It Li kern.uidinfo.sbsize |
1124 | Number of bytes in socket buffers allocated to the current user. | | 1124 | Number of bytes in socket buffers allocated to the current user. |
1125 | .El | | 1125 | .El |
1126 | .It Li kern.urandom ( Dv KERN_URND ) | | 1126 | .It Li kern.urandom ( Dv KERN_URND ) |
1127 | Random integer value. | | 1127 | Random integer value. |
1128 | .It Li kern.usercrypto | | 1128 | .It Li kern.usercrypto |
1129 | When enabled, allows userland to | | 1129 | When enabled, allows userland to |
1130 | .Xr open 2 | | 1130 | .Xr open 2 |
1131 | the | | 1131 | the |
1132 | .Pa /dev/crypto | | 1132 | .Pa /dev/crypto |
1133 | special device, used by the | | 1133 | special device, used by the |
1134 | .Xr crypto 4 | | 1134 | .Xr crypto 4 |
1135 | system. | | 1135 | system. |
1136 | .It Li kern.userasymcrypto | | 1136 | .It Li kern.userasymcrypto |
1137 | Enables or disables the use of software asymmetric crypto support in the | | 1137 | Enables or disables the use of software asymmetric crypto support in the |
1138 | .Xr crypto 4 | | 1138 | .Xr crypto 4 |
1139 | system. | | 1139 | system. |
1140 | .It Li kern.veriexec | | 1140 | .It Li kern.veriexec |
1141 | Runtime information for | | 1141 | Runtime information for |
1142 | .Xr veriexec 8 . | | 1142 | .Xr veriexec 8 . |
1143 | .Bl -column "kern.veriexec.algorithms" "integer" "Changeable" -offset indent | | 1143 | .Bl -column "kern.veriexec.algorithms" "integer" "Changeable" -offset indent |
1144 | .It Sy Third level name Sy Type Sy Changeable | | 1144 | .It Sy Third level name Sy Type Sy Changeable |
1145 | .It kern.veriexec.algorithms string no | | 1145 | .It kern.veriexec.algorithms string no |
1146 | .It kern.veriexec.count node not applicable | | 1146 | .It kern.veriexec.count node not applicable |
1147 | .It kern.veriexec.strict integer yes | | 1147 | .It kern.veriexec.strict integer yes |
1148 | .It kern.veriexec.verbose integer yes | | 1148 | .It kern.veriexec.verbose integer yes |
1149 | .El | | 1149 | .El |
1150 | .Bl -tag -width "123456" | | 1150 | .Bl -tag -width "123456" |
1151 | .It Li kern.veriexec.algorithms | | 1151 | .It Li kern.veriexec.algorithms |
1152 | Returns a string with the supported algorithms in Veriexec. | | 1152 | Returns a string with the supported algorithms in Veriexec. |
1153 | .It Li kern.veriexec.count | | 1153 | .It Li kern.veriexec.count |
1154 | Sub-nodes are added to this node as new mounts are monitored by Veriexec. | | 1154 | Sub-nodes are added to this node as new mounts are monitored by Veriexec. |
1155 | Each mount will be under its own | | 1155 | Each mount will be under its own |
1156 | .No tableN | | 1156 | .No tableN |
1157 | node. | | 1157 | node. |
1158 | Under each node there will be three variables, indicating the mount | | 1158 | Under each node there will be three variables, indicating the mount |
1159 | point, the file system type, and the number of entries. | | 1159 | point, the file system type, and the number of entries. |
1160 | .It Li kern.veriexec.strict | | 1160 | .It Li kern.veriexec.strict |
1161 | Controls the strict level of Veriexec. | | 1161 | Controls the strict level of Veriexec. |
1162 | See | | 1162 | See |
1163 | .Xr security 7 | | 1163 | .Xr security 7 |
1164 | for more information on each level's implications. | | 1164 | for more information on each level's implications. |
1165 | .It Li kern.veriexec.verbose | | 1165 | .It Li kern.veriexec.verbose |
1166 | Controls the verbosity level of Veriexec. | | 1166 | Controls the verbosity level of Veriexec. |
1167 | If 0, only the minimal | | 1167 | If 0, only the minimal |
1168 | indication required will be given about what's happening - fingerprint | | 1168 | indication required will be given about what's happening - fingerprint |
1169 | mismatches, removal of entries from the tables, modification of a | | 1169 | mismatches, removal of entries from the tables, modification of a |
1170 | fingerprinted file. | | 1170 | fingerprinted file. |
1171 | If 1, more messages will be printed (ie., when a file with a valid | | 1171 | If 1, more messages will be printed (ie., when a file with a valid |
1172 | fingerprint is accessed). | | 1172 | fingerprint is accessed). |
1173 | Verbose level 2 is debug mode. | | 1173 | Verbose level 2 is debug mode. |
1174 | .El | | 1174 | .El |
1175 | .It Li kern.version ( Dv KERN_VERSION ) | | 1175 | .It Li kern.version ( Dv KERN_VERSION ) |
1176 | The system version string. | | 1176 | The system version string. |
1177 | .It Li kern.vnode ( Dv KERN_VNODE ) | | 1177 | .It Li kern.vnode ( Dv KERN_VNODE ) |
1178 | Return the entire vnode table. | | 1178 | Return the entire vnode table. |
1179 | Note, the vnode table is not necessarily a consistent snapshot of | | 1179 | Note, the vnode table is not necessarily a consistent snapshot of |
1180 | the system. | | 1180 | the system. |
1181 | The returned data consists of an array whose size depends on the | | 1181 | The returned data consists of an array whose size depends on the |
1182 | current number of such objects in the system. | | 1182 | current number of such objects in the system. |
1183 | Each element of the array contains the kernel address of a vnode | | 1183 | Each element of the array contains the kernel address of a vnode |
1184 | .Vt struct vnode * | | 1184 | .Vt struct vnode * |
1185 | followed by the vnode itself | | 1185 | followed by the vnode itself |
1186 | .Vt struct vnode . | | 1186 | .Vt struct vnode . |
1187 | .\" XXX: Undocumented: kern.lwp: no children? | | 1187 | .\" XXX: Undocumented: kern.lwp: no children? |
1188 | .El | | 1188 | .El |
1189 | .Ss The machdep.* subtree | | 1189 | .Ss The machdep.* subtree |
1190 | The set of variables defined is architecture dependent. | | 1190 | The set of variables defined is architecture dependent. |
1191 | Most architectures define at least the following variables. | | 1191 | Most architectures define at least the following variables. |
1192 | .Bl -column "machdep.booted_kernel" "Type" "Changeable" -offset indent | | 1192 | .Bl -column "machdep.booted_kernel" "Type" "Changeable" -offset indent |
1193 | .It Sy Second level name Sy Type Sy Changeable | | 1193 | .It Sy Second level name Sy Type Sy Changeable |
1194 | .It Li machdep.booted_kernel string no | | 1194 | .It Li machdep.booted_kernel string no |
1195 | .El | | 1195 | .El |
1196 | .\" XXX: Document the above. | | 1196 | .\" XXX: Document the above. |
1197 | .Ss The net.* subtree | | 1197 | .Ss The net.* subtree |
1198 | The string and integer information available for the | | 1198 | The string and integer information available for the |
1199 | .Li net | | 1199 | .Li net |
1200 | level is detailed below. | | 1200 | level is detailed below. |
1201 | The changeable column shows whether a process with appropriate | | 1201 | The changeable column shows whether a process with appropriate |
1202 | privilege may change the value. | | 1202 | privilege may change the value. |
1203 | The second and third levels are typically the protocol family and | | 1203 | The second and third levels are typically the protocol family and |
1204 | protocol number, though this is not always the case. | | 1204 | protocol number, though this is not always the case. |
1205 | .Bl -column "Second level name" "IPsec key management values" "Changeable" -offset indent | | 1205 | .Bl -column "Second level name" "IPsec key management values" "Changeable" -offset indent |
1206 | .It Sy Second level name Sy Type Sy Changeable | | 1206 | .It Sy Second level name Sy Type Sy Changeable |
1207 | .It net.route routing messages no | | 1207 | .It net.route routing messages no |
1208 | .It net.inet IPv4 values yes | | 1208 | .It net.inet IPv4 values yes |
1209 | .It net.inet6 IPv6 values yes | | 1209 | .It net.inet6 IPv6 values yes |
1210 | .It net.key IPsec key management values yes | | 1210 | .It net.key IPsec key management values yes |
1211 | .El | | 1211 | .El |
1212 | .Bl -tag -width "123456" | | 1212 | .Bl -tag -width "123456" |
1213 | .It Li net.route ( Dv PF_ROUTE ) | | 1213 | .It Li net.route ( Dv PF_ROUTE ) |
1214 | .\" XXX really? | | 1214 | .\" XXX really? |
1215 | Return the entire routing table or a subset of it. | | 1215 | Return the entire routing table or a subset of it. |
1216 | The data is returned as a sequence of routing messages (see | | 1216 | The data is returned as a sequence of routing messages (see |
1217 | .Xr route 4 | | 1217 | .Xr route 4 |
1218 | for the header file, format and meaning). | | 1218 | for the header file, format and meaning). |
1219 | The length of each message is contained in the message header. | | 1219 | The length of each message is contained in the message header. |
1220 | .Pp | | 1220 | .Pp |
1221 | The third level name is a protocol number, which is currently always\ 0. | | 1221 | The third level name is a protocol number, which is currently always\ 0. |
1222 | The fourth level name is an address family, which may be set to 0 to | | 1222 | The fourth level name is an address family, which may be set to 0 to |
1223 | select all address families. | | 1223 | select all address families. |
1224 | The fifth and sixth level names are as follows: | | 1224 | The fifth and sixth level names are as follows: |
1225 | .Bl -column "Fifth level name" "Sixth level is:" -offset indent | | 1225 | .Bl -column "Fifth level name" "Sixth level is:" -offset indent |
1226 | .It Sy Fifth level name Sy Sixth level is: | | 1226 | .It Sy Fifth level name Sy Sixth level is: |
1227 | .It NET_RT_FLAGS rtflags | | 1227 | .It NET_RT_FLAGS rtflags |
1228 | .It NET_RT_DUMP None | | 1228 | .It NET_RT_DUMP None |
1229 | .It NET_RT_IFLIST None | | 1229 | .It NET_RT_IFLIST None |
1230 | .El | | 1230 | .El |
1231 | .It Li net.inet ( Dv PF_INET ) | | 1231 | .It Li net.inet ( Dv PF_INET ) |
1232 | Get or set various global information about the IPv4 | | 1232 | Get or set various global information about the IPv4 |
1233 | .Pq Internet Protocol version 4 . | | 1233 | .Pq Internet Protocol version 4 . |
1234 | The third level name is the protocol. | | 1234 | The third level name is the protocol. |
1235 | The fourth level name is the variable name. | | 1235 | The fourth level name is the variable name. |
1236 | The currently defined protocols and names are: | | 1236 | The currently defined protocols and names are: |
1237 | .Bl -column "Protocol" "anonportalgo.available" "integer" "Changeable" -offset indent | | 1237 | .Bl -column "Protocol" "anonportalgo.available" "integer" "Changeable" -offset indent |
1238 | .It Sy Protocol Variable Sy Type Sy Changeable | | 1238 | .It Sy Protocol Variable Sy Type Sy Changeable |
1239 | .It arp down integer yes | | 1239 | .It arp down integer yes |
1240 | .It arp keep integer yes | | 1240 | .It arp keep integer yes |
1241 | .It arp log_movements integer yes | | 1241 | .It arp log_movements integer yes |
1242 | .It arp log_permanent_modify integer yes | | 1242 | .It arp log_permanent_modify integer yes |
1243 | .It arp log_unknown_network integer yes | | 1243 | .It arp log_unknown_network integer yes |
1244 | .It arp log_wrong_iface integer yes | | 1244 | .It arp log_wrong_iface integer yes |
1245 | .It carp allow integer yes | | 1245 | .It carp allow integer yes |
1246 | .It carp preempt integer yes | | 1246 | .It carp preempt integer yes |
1247 | .It carp log integer yes | | 1247 | .It carp log integer yes |
1248 | .It carp arpbalance integer yes | | 1248 | .It carp arpbalance integer yes |
1249 | .It icmp errppslimit integer yes | | 1249 | .It icmp errppslimit integer yes |
1250 | .It icmp maskrepl integer yes | | 1250 | .It icmp maskrepl integer yes |
1251 | .It icmp rediraccept integer yes | | 1251 | .It icmp rediraccept integer yes |
1252 | .It icmp redirtimeout integer yes | | 1252 | .It icmp redirtimeout integer yes |
1253 | .It icmp bmcastecho integer yes | | 1253 | .It icmp bmcastecho integer yes |
1254 | .It ip allowsrcrt integer yes | | 1254 | .It ip allowsrcrt integer yes |
1255 | .It ip anonportalgo.selected string yes | | 1255 | .It ip anonportalgo.selected string yes |
1256 | .It ip anonportalgo.available string yes | | 1256 | .It ip anonportalgo.available string yes |
1257 | .It ip anonportalgo.reserve struct yes | | 1257 | .It ip anonportalgo.reserve struct yes |
1258 | .It ip anonportmax integer yes | | 1258 | .It ip anonportmax integer yes |
1259 | .It ip anonportmin integer yes | | 1259 | .It ip anonportmin integer yes |
1260 | .It ip checkinterface integer yes | | 1260 | .It ip checkinterface integer yes |
| | | 1261 | .It ip dad_count integer yes |
1261 | .It ip directed-broadcast integer yes | | 1262 | .It ip directed-broadcast integer yes |
1262 | .It ip do_loopback_cksum integer yes | | 1263 | .It ip do_loopback_cksum integer yes |
1263 | .It ip forwarding integer yes | | 1264 | .It ip forwarding integer yes |
1264 | .It ip forwsrcrt integer yes | | 1265 | .It ip forwsrcrt integer yes |
1265 | .It ip gifttl integer yes | | 1266 | .It ip gifttl integer yes |
1266 | .It ip grettl integer yes | | 1267 | .It ip grettl integer yes |
1267 | .It ip hashsize integer yes | | 1268 | .It ip hashsize integer yes |
1268 | .It ip hostzerobroadcast integer yes | | 1269 | .It ip hostzerobroadcast integer yes |
1269 | .It ip lowportmin integer yes | | 1270 | .It ip lowportmin integer yes |
1270 | .It ip lowportmax integer yes | | 1271 | .It ip lowportmax integer yes |
1271 | .It ip maxflows integer yes | | 1272 | .It ip maxflows integer yes |
1272 | .It ip maxfragpackets integer yes | | 1273 | .It ip maxfragpackets integer yes |
1273 | .It ip mtudisc integer yes | | 1274 | .It ip mtudisc integer yes |
1274 | .It ip mtudisctimeout integer yes | | 1275 | .It ip mtudisctimeout integer yes |
1275 | .It ip random_id integer yes | | 1276 | .It ip random_id integer yes |
1276 | .It ip redirect integer yes | | 1277 | .It ip redirect integer yes |
1277 | .It ip subnetsarelocal integer yes | | 1278 | .It ip subnetsarelocal integer yes |
1278 | .It ip ttl integer yes | | 1279 | .It ip ttl integer yes |
1279 | .It tcp rfc1323 integer yes | | 1280 | .It tcp rfc1323 integer yes |
1280 | .It tcp sendspace integer yes | | 1281 | .It tcp sendspace integer yes |
1281 | .It tcp recvspace integer yes | | 1282 | .It tcp recvspace integer yes |
1282 | .It tcp mssdflt integer yes | | 1283 | .It tcp mssdflt integer yes |
1283 | .It tcp syn_cache_limit integer yes | | 1284 | .It tcp syn_cache_limit integer yes |
1284 | .It tcp syn_bucket_limit integer yes | | 1285 | .It tcp syn_bucket_limit integer yes |
1285 | .It tcp syn_cache_interval integer yes | | 1286 | .It tcp syn_cache_interval integer yes |
1286 | .It tcp init_win integer yes | | 1287 | .It tcp init_win integer yes |
1287 | .It tcp init_win_local integer yes | | 1288 | .It tcp init_win_local integer yes |
1288 | .It tcp mss_ifmtu integer yes | | 1289 | .It tcp mss_ifmtu integer yes |
1289 | .It tcp win_scale integer yes | | 1290 | .It tcp win_scale integer yes |
1290 | .It tcp timestamps integer yes | | 1291 | .It tcp timestamps integer yes |
1291 | .It tcp compat_42 integer yes | | 1292 | .It tcp compat_42 integer yes |
1292 | .It tcp cwm integer yes | | 1293 | .It tcp cwm integer yes |
1293 | .It tcp cwm_burstsize integer yes | | 1294 | .It tcp cwm_burstsize integer yes |
1294 | .It tcp ack_on_push integer yes | | 1295 | .It tcp ack_on_push integer yes |
1295 | .It tcp keepidle integer yes | | 1296 | .It tcp keepidle integer yes |
1296 | .It tcp keepintvl integer yes | | 1297 | .It tcp keepintvl integer yes |
1297 | .It tcp keepcnt integer yes | | 1298 | .It tcp keepcnt integer yes |
1298 | .It tcp slowhz integer no | | 1299 | .It tcp slowhz integer no |
1299 | .It tcp keepinit integer yes | | 1300 | .It tcp keepinit integer yes |
1300 | .It tcp log_refused integer yes | | 1301 | .It tcp log_refused integer yes |
1301 | .It tcp rstppslimit integer yes | | 1302 | .It tcp rstppslimit integer yes |
1302 | .It tcp ident struct no | | 1303 | .It tcp ident struct no |
1303 | .It tcp drop struct no | | 1304 | .It tcp drop struct no |
1304 | .It tcp sack.enable integer yes | | 1305 | .It tcp sack.enable integer yes |
1305 | .It tcp sack.globalholes integer no | | 1306 | .It tcp sack.globalholes integer no |
1306 | .It tcp sack.globalmaxholes integer yes | | 1307 | .It tcp sack.globalmaxholes integer yes |
1307 | .It tcp sack.maxholes integer yes | | 1308 | .It tcp sack.maxholes integer yes |
1308 | .It tcp ecn.enable integer yes | | 1309 | .It tcp ecn.enable integer yes |
1309 | .It tcp ecn.maxretries integer yes | | 1310 | .It tcp ecn.maxretries integer yes |
1310 | .It tcp congctl.selected string yes | | 1311 | .It tcp congctl.selected string yes |
1311 | .It tcp congctl.available string yes | | 1312 | .It tcp congctl.available string yes |
1312 | .It tcp abc.enable integer yes | | 1313 | .It tcp abc.enable integer yes |
1313 | .It tcp abc.aggressive integer yes | | 1314 | .It tcp abc.aggressive integer yes |
1314 | .It udp checksum integer yes | | 1315 | .It udp checksum integer yes |
1315 | .It udp do_loopback_cksum integer yes | | 1316 | .It udp do_loopback_cksum integer yes |
1316 | .It udp recvspace integer yes | | 1317 | .It udp recvspace integer yes |
1317 | .It udp sendspace integer yes | | 1318 | .It udp sendspace integer yes |
1318 | .El | | 1319 | .El |
1319 | .Pp | | 1320 | .Pp |
1320 | The variables are as follows: | | 1321 | The variables are as follows: |
1321 | .Bl -tag -width "123456" | | 1322 | .Bl -tag -width "123456" |
1322 | .It Li arp.down | | 1323 | .It Li arp.down |
1323 | Failed ARP entry lifetime. | | 1324 | Failed ARP entry lifetime. |
1324 | .It Li arp.keep | | 1325 | .It Li arp.keep |
1325 | Valid ARP entry lifetime. | | 1326 | Valid ARP entry lifetime. |
1326 | .It Li carp.allow | | 1327 | .It Li carp.allow |
1327 | If set to 0, incoming | | 1328 | If set to 0, incoming |
1328 | .Xr carp 4 | | 1329 | .Xr carp 4 |
1329 | packets will not be processed. | | 1330 | packets will not be processed. |
1330 | If set to any other value, processing will occur. | | 1331 | If set to any other value, processing will occur. |
1331 | Enabled by default. | | 1332 | Enabled by default. |
1332 | .It Li carp.arpbalance | | 1333 | .It Li carp.arpbalance |
1333 | If set to any value other than 0, the ARP balancing functionality of | | 1334 | If set to any value other than 0, the ARP balancing functionality of |
1334 | .Xr carp 4 | | 1335 | .Xr carp 4 |
1335 | is enabled. | | 1336 | is enabled. |
1336 | When ARP requests are received for an IP address which is part of any virtual | | 1337 | When ARP requests are received for an IP address which is part of any virtual |
1337 | host, carp will hash the source IP in the ARP request to select one of the | | 1338 | host, carp will hash the source IP in the ARP request to select one of the |
1338 | virtual hosts from the set of all the virtual hosts which have that IP address. | | 1339 | virtual hosts from the set of all the virtual hosts which have that IP address. |
1339 | The master of that host will respond with the correct virtual MAC address. | | 1340 | The master of that host will respond with the correct virtual MAC address. |
1340 | Disabled by default. | | 1341 | Disabled by default. |
1341 | .It Li carp.log | | 1342 | .It Li carp.log |
1342 | If set to any value other than 0, | | 1343 | If set to any value other than 0, |
1343 | .Xr carp 4 | | 1344 | .Xr carp 4 |
1344 | will log errors. | | 1345 | will log errors. |
1345 | Disabled by default. | | 1346 | Disabled by default. |
1346 | .It Li carp.preempt | | 1347 | .It Li carp.preempt |
1347 | If set to 0, | | 1348 | If set to 0, |
1348 | .Xr carp 4 | | 1349 | .Xr carp 4 |
1349 | will not attempt to become master if it is receiving advertisements from | | 1350 | will not attempt to become master if it is receiving advertisements from |
1350 | another active master. | | 1351 | another active master. |
1351 | If set to any other value, carp will become master of the virtual host if it | | 1352 | If set to any other value, carp will become master of the virtual host if it |
1352 | believes it can send advertisements more frequently than the current master. | | 1353 | believes it can send advertisements more frequently than the current master. |
1353 | Disabled by default. | | 1354 | Disabled by default. |
1354 | .It Li ip.allowsrcrt | | 1355 | .It Li ip.allowsrcrt |
1355 | If set to 1, the host accepts source routed packets. | | 1356 | If set to 1, the host accepts source routed packets. |
1356 | .It Li ip.anonportalgo.available | | 1357 | .It Li ip.anonportalgo.available |
1357 | The available RFC 6056 port randomization algorithms. | | 1358 | The available RFC 6056 port randomization algorithms. |
1358 | .It Li ip.anonportalgo.reserve | | 1359 | .It Li ip.anonportalgo.reserve |
1359 | A bitmask of ports that will not be used during anonymous or privileged | | 1360 | A bitmask of ports that will not be used during anonymous or privileged |
1360 | port selection. | | 1361 | port selection. |
1361 | .It Li ip.anonportalgo.selected | | 1362 | .It Li ip.anonportalgo.selected |
1362 | The currently selected RFC 6056 port randomization algorithm. | | 1363 | The currently selected RFC 6056 port randomization algorithm. |
1363 | .It Li ip.anonportmax | | 1364 | .It Li ip.anonportmax |
1364 | The highest port number to use for TCP and UDP ephemeral port allocation. | | 1365 | The highest port number to use for TCP and UDP ephemeral port allocation. |
1365 | This cannot be set to less than 1024 or greater than 65535, and must | | 1366 | This cannot be set to less than 1024 or greater than 65535, and must |
1366 | be greater than | | 1367 | be greater than |
1367 | .Li ip.anonportmin . | | 1368 | .Li ip.anonportmin . |
1368 | .It Li ip.anonportmin | | 1369 | .It Li ip.anonportmin |
1369 | The lowest port number to use for TCP and UDP ephemeral port allocation. | | 1370 | The lowest port number to use for TCP and UDP ephemeral port allocation. |
1370 | This cannot be set to less than 1024 or greater than 65535. | | 1371 | This cannot be set to less than 1024 or greater than 65535. |
1371 | .It Li ip.checkinterface | | 1372 | .It Li ip.checkinterface |
1372 | If set to non-zero, the host will reject packets addressed to it | | 1373 | If set to non-zero, the host will reject packets addressed to it |
1373 | that arrive on an interface not bound to that address. | | 1374 | that arrive on an interface not bound to that address. |
1374 | Currently, this must be disabled if ipnat is used to translate the | | 1375 | Currently, this must be disabled if ipnat is used to translate the |
1375 | destination address to another local interface, or if addresses | | 1376 | destination address to another local interface, or if addresses |
1376 | are added to the loopback interface instead of the interface where | | 1377 | are added to the loopback interface instead of the interface where |
1377 | the packets for those packets are received. | | 1378 | the packets for those packets are received. |
| | | 1379 | .It Li ip.dad_count |
| | | 1380 | The number of |
| | | 1381 | .Xr arp 4 |
| | | 1382 | probes sent for Address Conflict Detection. |
| | | 1383 | Set to 0 to disable this. |
1378 | .It Li ip.directed-broadcast | | 1384 | .It Li ip.directed-broadcast |
1379 | If set to 1, enables directed broadcast behavior for the host. | | 1385 | If set to 1, enables directed broadcast behavior for the host. |
1380 | .It Li ip.do_loopback_cksum | | 1386 | .It Li ip.do_loopback_cksum |
1381 | Perform IP checksum on loopback. | | 1387 | Perform IP checksum on loopback. |
1382 | .It Li ip.forwarding | | 1388 | .It Li ip.forwarding |
1383 | If set to 1, enables IP forwarding for the host, | | 1389 | If set to 1, enables IP forwarding for the host, |
1384 | meaning that the host is acting as a router. | | 1390 | meaning that the host is acting as a router. |
1385 | .It Li ip.forwsrcrt | | 1391 | .It Li ip.forwsrcrt |
1386 | If set to 1, enables forwarding of source-routed packets for the host. | | 1392 | If set to 1, enables forwarding of source-routed packets for the host. |
1387 | This value may only be changed if the kernel security level is less than 1. | | 1393 | This value may only be changed if the kernel security level is less than 1. |
1388 | .It Li ip.gifttl | | 1394 | .It Li ip.gifttl |
1389 | The maximum time-to-live (hop count) value for an IPv4 packet generated by | | 1395 | The maximum time-to-live (hop count) value for an IPv4 packet generated by |
1390 | .Xr gif 4 | | 1396 | .Xr gif 4 |
1391 | tunnel interface. | | 1397 | tunnel interface. |
1392 | .It Li ip.grettl | | 1398 | .It Li ip.grettl |
1393 | The maximum time-to-live (hop count) value for an IPv4 packet generated by | | 1399 | The maximum time-to-live (hop count) value for an IPv4 packet generated by |
1394 | .Xr gre 4 | | 1400 | .Xr gre 4 |
1395 | tunnel interface. | | 1401 | tunnel interface. |
1396 | .It Li ip.hashsize | | 1402 | .It Li ip.hashsize |
1397 | The size of IPv4 Fast Forward hash table. | | 1403 | The size of IPv4 Fast Forward hash table. |
1398 | This value must be a power of 2 (64, 256...). | | 1404 | This value must be a power of 2 (64, 256...). |
1399 | A larger hash table size results in fewer collisions. | | 1405 | A larger hash table size results in fewer collisions. |
1400 | Also see | | 1406 | Also see |
1401 | .Li ip.maxflows . | | 1407 | .Li ip.maxflows . |
1402 | .It Li ip.hostzerobroadcast | | 1408 | .It Li ip.hostzerobroadcast |
1403 | All zeroes address is broadcast address. | | 1409 | All zeroes address is broadcast address. |
1404 | .It Li ip.lowportmax | | 1410 | .It Li ip.lowportmax |
1405 | The highest port number to use for TCP and UDP reserved port allocation. | | 1411 | The highest port number to use for TCP and UDP reserved port allocation. |
1406 | This cannot be set to less than 0 or greater than 1024, and must | | 1412 | This cannot be set to less than 0 or greater than 1024, and must |
1407 | be greater than | | 1413 | be greater than |
1408 | .Li ip.lowportmin . | | 1414 | .Li ip.lowportmin . |
1409 | .It Li ip.lowportmin | | 1415 | .It Li ip.lowportmin |
1410 | The lowest port number to use for TCP and UDP reserved port allocation. | | 1416 | The lowest port number to use for TCP and UDP reserved port allocation. |
1411 | This cannot be set to less than 0 or greater than 1024, and must | | 1417 | This cannot be set to less than 0 or greater than 1024, and must |
1412 | be smaller than | | 1418 | be smaller than |
1413 | .Li ip.lowportmax . | | 1419 | .Li ip.lowportmax . |
1414 | .It Li ip.maxflows | | 1420 | .It Li ip.maxflows |
1415 | IPv4 Fast Forwarding is enabled by default. | | 1421 | IPv4 Fast Forwarding is enabled by default. |
1416 | If set to 0, IPv4 Fast Forwarding is disabled. | | 1422 | If set to 0, IPv4 Fast Forwarding is disabled. |
1417 | .Li ip.maxflows | | 1423 | .Li ip.maxflows |
1418 | controls the maximum amount of flows which can be created. | | 1424 | controls the maximum amount of flows which can be created. |
1419 | The default value is 256. | | 1425 | The default value is 256. |
1420 | .It Li ip.maxfragpackets | | 1426 | .It Li ip.maxfragpackets |
1421 | The maximum number of fragmented packets the node will accept. | | 1427 | The maximum number of fragmented packets the node will accept. |
1422 | 0 means that the node will not accept any fragmented packets. | | 1428 | 0 means that the node will not accept any fragmented packets. |
1423 | \-1 means that the node will accept as many fragmented packets as it receives. | | 1429 | \-1 means that the node will accept as many fragmented packets as it receives. |
1424 | The flag is provided basically for avoiding possible DoS attacks. | | 1430 | The flag is provided basically for avoiding possible DoS attacks. |
1425 | .It Li ip.mtudisc | | 1431 | .It Li ip.mtudisc |
1426 | If set to 1, enables Path MTU Discovery (RFC 1191). | | 1432 | If set to 1, enables Path MTU Discovery (RFC 1191). |
1427 | When Path MTU Discovery is enabled, the transmitted TCP segment | | 1433 | When Path MTU Discovery is enabled, the transmitted TCP segment |
1428 | size will be determined by the advertised maximum segment size | | 1434 | size will be determined by the advertised maximum segment size |
1429 | (MSS) from the remote end, as constrained by the path MTU. | | 1435 | (MSS) from the remote end, as constrained by the path MTU. |
1430 | If MTU Discovery is disabled, the transmitted segment size will | | 1436 | If MTU Discovery is disabled, the transmitted segment size will |
1431 | never be greater than | | 1437 | never be greater than |
1432 | .Li tcp.mssdflt | | 1438 | .Li tcp.mssdflt |
1433 | (the local maximum segment size). | | 1439 | (the local maximum segment size). |
1434 | .It Li ip.mtudisctimeout | | 1440 | .It Li ip.mtudisctimeout |
1435 | The number of seconds in which a route added by the Path MTU | | 1441 | The number of seconds in which a route added by the Path MTU |
1436 | Discovery engine will time out. | | 1442 | Discovery engine will time out. |
1437 | When the route times out, the Path | | 1443 | When the route times out, the Path |
1438 | MTU Discovery engine will attempt to probe a larger path MTU. | | 1444 | MTU Discovery engine will attempt to probe a larger path MTU. |
1439 | .It Li ip.random_id | | 1445 | .It Li ip.random_id |
1440 | Assign random ip_id values. | | 1446 | Assign random ip_id values. |
1441 | .It Li ip.redirect | | 1447 | .It Li ip.redirect |
1442 | If set to 1, ICMP redirects may be sent by the host. | | 1448 | If set to 1, ICMP redirects may be sent by the host. |
1443 | This option is ignored unless the host is routing IP packets, | | 1449 | This option is ignored unless the host is routing IP packets, |
1444 | and should normally be enabled on all systems. | | 1450 | and should normally be enabled on all systems. |
1445 | .It Li ip.subnetsarelocal | | 1451 | .It Li ip.subnetsarelocal |
1446 | If set to 1, subnets are to be considered local addresses. | | 1452 | If set to 1, subnets are to be considered local addresses. |
1447 | .It Li ip.ttl | | 1453 | .It Li ip.ttl |
1448 | The maximum time-to-live (hop count) value for an IP packet sourced by | | 1454 | The maximum time-to-live (hop count) value for an IP packet sourced by |
1449 | the system. | | 1455 | the system. |
1450 | This value applies to normal transport protocols, not to ICMP. | | 1456 | This value applies to normal transport protocols, not to ICMP. |
1451 | .It Li icmp.errppslimit | | 1457 | .It Li icmp.errppslimit |
1452 | The variable specifies the maximum number of outgoing ICMP error messages, | | 1458 | The variable specifies the maximum number of outgoing ICMP error messages, |
1453 | per second. | | 1459 | per second. |
1454 | ICMP error messages that exceeded the value are subject to rate limitation | | 1460 | ICMP error messages that exceeded the value are subject to rate limitation |
1455 | and will not go out from the node. | | 1461 | and will not go out from the node. |
1456 | Negative value disables rate limitation. | | 1462 | Negative value disables rate limitation. |
1457 | .It Li icmp.maskrepl | | 1463 | .It Li icmp.maskrepl |
1458 | If set to 1, ICMP network mask requests are to be answered. | | 1464 | If set to 1, ICMP network mask requests are to be answered. |
1459 | .It Li icmp.rediraccept | | 1465 | .It Li icmp.rediraccept |
1460 | If set to non-zero, the host will accept ICMP redirect packets. | | 1466 | If set to non-zero, the host will accept ICMP redirect packets. |
1461 | Note that routers will never accept ICMP redirect packets, | | 1467 | Note that routers will never accept ICMP redirect packets, |
1462 | and the variable is meaningful on IP hosts only. | | 1468 | and the variable is meaningful on IP hosts only. |
1463 | .It Li icmp.redirtimeout | | 1469 | .It Li icmp.redirtimeout |
1464 | The variable specifies lifetime of routing entries generated by incoming | | 1470 | The variable specifies lifetime of routing entries generated by incoming |
1465 | ICMP redirect. | | 1471 | ICMP redirect. |
1466 | This defaults to 600 seconds. | | 1472 | This defaults to 600 seconds. |
1467 | .It Li icmp.returndatabytes | | 1473 | .It Li icmp.returndatabytes |
1468 | Number of bytes to return in an ICMP error message. | | 1474 | Number of bytes to return in an ICMP error message. |
1469 | .It Li icmp.bmcastecho | | 1475 | .It Li icmp.bmcastecho |
1470 | If set to 1, enables responding to ICMP echo or timestamp request to the | | 1476 | If set to 1, enables responding to ICMP echo or timestamp request to the |
1471 | broadcast address. | | 1477 | broadcast address. |
1472 | .It Li tcp.ack_on_push | | 1478 | .It Li tcp.ack_on_push |
1473 | If set to 1, TCP is to immediately transmit an ACK upon reception of | | 1479 | If set to 1, TCP is to immediately transmit an ACK upon reception of |
1474 | a packet with PUSH set. | | 1480 | a packet with PUSH set. |
1475 | This can avoid losing a round trip time in some rare situations, | | 1481 | This can avoid losing a round trip time in some rare situations, |
1476 | but has the caveat of potentially defeating TCP's delayed ACK algorithm. | | 1482 | but has the caveat of potentially defeating TCP's delayed ACK algorithm. |
1477 | Use of this option is generally not recommended, but | | 1483 | Use of this option is generally not recommended, but |
1478 | the variable exists in case your configuration really needs it. | | 1484 | the variable exists in case your configuration really needs it. |
1479 | .It Li tcp.compat_42 | | 1485 | .It Li tcp.compat_42 |
1480 | If set to 1, enables work-arounds for bugs in the 4.2BSD TCP implementation. | | 1486 | If set to 1, enables work-arounds for bugs in the 4.2BSD TCP implementation. |
1481 | Use of this option is not recommended, although it may be | | 1487 | Use of this option is not recommended, although it may be |
1482 | required in order to communicate with extremely old TCP implementations. | | 1488 | required in order to communicate with extremely old TCP implementations. |
1483 | .It Li tcp.cwm | | 1489 | .It Li tcp.cwm |
1484 | If set to 1, enables use of the Hughes/Touch/Heidemann Congestion Window | | 1490 | If set to 1, enables use of the Hughes/Touch/Heidemann Congestion Window |
1485 | Monitoring algorithm. | | 1491 | Monitoring algorithm. |
1486 | This algorithm prevents line-rate bursts of packets that could | | 1492 | This algorithm prevents line-rate bursts of packets that could |
1487 | otherwise occur when data begins flowing on an idle TCP connection. | | 1493 | otherwise occur when data begins flowing on an idle TCP connection. |
1488 | These line-rate bursts can contribute to network and router congestion. | | 1494 | These line-rate bursts can contribute to network and router congestion. |
1489 | This can be particularly useful on World Wide Web servers | | 1495 | This can be particularly useful on World Wide Web servers |
1490 | which support HTTP/1.1, which has lingering connections. | | 1496 | which support HTTP/1.1, which has lingering connections. |
1491 | .It Li tcp.cwm_burstsize | | 1497 | .It Li tcp.cwm_burstsize |
1492 | The Congestion Window Monitoring allowed burst size, in terms | | 1498 | The Congestion Window Monitoring allowed burst size, in terms |
1493 | of packet count. | | 1499 | of packet count. |
1494 | .It Li tcp.delack_ticks | | 1500 | .It Li tcp.delack_ticks |
1495 | Number of ticks to delay sending an ACK. | | 1501 | Number of ticks to delay sending an ACK. |
1496 | .It Li tcp.do_loopback_cksum | | 1502 | .It Li tcp.do_loopback_cksum |
1497 | Perform TCP checksum on loopback. | | 1503 | Perform TCP checksum on loopback. |
1498 | .It Li tcp.init_win | | 1504 | .It Li tcp.init_win |
1499 | A value indicating the TCP initial congestion window. | | 1505 | A value indicating the TCP initial congestion window. |
1500 | The valid range | | 1506 | The valid range |
1501 | is 0 to 10 (maximum specified by RFC6928), | | 1507 | is 0 to 10 (maximum specified by RFC6928), |
1502 | with a default of 4 (approximately 4K per RFC3390). | | 1508 | with a default of 4 (approximately 4K per RFC3390). |
1503 | .It Li tcp.init_win_local | | 1509 | .It Li tcp.init_win_local |
1504 | Like | | 1510 | Like |
1505 | .Li tcp.init_win , | | 1511 | .Li tcp.init_win , |
1506 | but used when communicating with hosts on a local network. | | 1512 | but used when communicating with hosts on a local network. |
1507 | .It Li tcp.keepcnt | | 1513 | .It Li tcp.keepcnt |
1508 | Number of keepalive probes sent before declaring a connection dead. | | 1514 | Number of keepalive probes sent before declaring a connection dead. |
1509 | If set to zero, there is no limit; | | 1515 | If set to zero, there is no limit; |
1510 | keepalives will be sent until some kind of | | 1516 | keepalives will be sent until some kind of |
1511 | response is received from the peer. | | 1517 | response is received from the peer. |
1512 | .It Li tcp.keepidle | | 1518 | .It Li tcp.keepidle |
1513 | Time a connection must be idle before keepalives are sent (if keepalives | | 1519 | Time a connection must be idle before keepalives are sent (if keepalives |
1514 | are enabled for the connection). | | 1520 | are enabled for the connection). |
1515 | See also tcp.slowhz. | | 1521 | See also tcp.slowhz. |
1516 | .It Li tcp.keepintvl | | 1522 | .It Li tcp.keepintvl |
1517 | Time after a keepalive probe is sent until, in the absence of any response, | | 1523 | Time after a keepalive probe is sent until, in the absence of any response, |
1518 | another probe is sent. | | 1524 | another probe is sent. |
1519 | See also tcp.slowhz. | | 1525 | See also tcp.slowhz. |
1520 | .It Li tcp.log_refused | | 1526 | .It Li tcp.log_refused |
1521 | If set to 1, refused TCP connections to the host will be logged. | | 1527 | If set to 1, refused TCP connections to the host will be logged. |
1522 | .It Li tcp.keepinit | | 1528 | .It Li tcp.keepinit |
1523 | Timeout in seconds during connection establishment. | | 1529 | Timeout in seconds during connection establishment. |
1524 | .It Li tcp.mss_ifmtu | | 1530 | .It Li tcp.mss_ifmtu |
1525 | If set to 1, TCP calculates the outgoing maximum segment size based on | | 1531 | If set to 1, TCP calculates the outgoing maximum segment size based on |
1526 | the MTU of the appropriate interface. | | 1532 | the MTU of the appropriate interface. |
1527 | If set to 0, it is calculated based on the greater of the MTU of the | | 1533 | If set to 0, it is calculated based on the greater of the MTU of the |
1528 | interface, and the largest (non-loopback) interface MTU on the system. | | 1534 | interface, and the largest (non-loopback) interface MTU on the system. |
1529 | .It Li tcp.mssdflt | | 1535 | .It Li tcp.mssdflt |
1530 | The default maximum segment size both advertised to the peer | | 1536 | The default maximum segment size both advertised to the peer |
1531 | and to use when either the peer does not advertise a maximum segment size to | | 1537 | and to use when either the peer does not advertise a maximum segment size to |
1532 | us during connection setup or Path MTU Discovery | | 1538 | us during connection setup or Path MTU Discovery |
1533 | .Li ( ip.mtudisc ) | | 1539 | .Li ( ip.mtudisc ) |
1534 | is disabled. | | 1540 | is disabled. |
1535 | Do not change this value unless you really know what you are doing. | | 1541 | Do not change this value unless you really know what you are doing. |
1536 | .It Li tcp.recvspace | | 1542 | .It Li tcp.recvspace |
1537 | The default TCP receive buffer size. | | 1543 | The default TCP receive buffer size. |
1538 | .It Li tcp.rfc1323 | | 1544 | .It Li tcp.rfc1323 |
1539 | If set to 1, enables RFC 1323 extensions to TCP. | | 1545 | If set to 1, enables RFC 1323 extensions to TCP. |
1540 | .It Li tcp.rstppslimit | | 1546 | .It Li tcp.rstppslimit |
1541 | The variable specifies the maximum number of outgoing TCP RST packets, | | 1547 | The variable specifies the maximum number of outgoing TCP RST packets, |
1542 | per second. | | 1548 | per second. |
1543 | TCP RST packet that exceeded the value are subject to rate limitation | | 1549 | TCP RST packet that exceeded the value are subject to rate limitation |
1544 | and will not go out from the node. | | 1550 | and will not go out from the node. |
1545 | Negative value disables rate limitation. | | 1551 | Negative value disables rate limitation. |
1546 | .It Li tcp.ident | | 1552 | .It Li tcp.ident |
1547 | Return the user ID of a connected socket pair. | | 1553 | Return the user ID of a connected socket pair. |
1548 | (RFC1413 Identification Protocol lookups.) | | 1554 | (RFC1413 Identification Protocol lookups.) |
1549 | .It Li tcp.drop | | 1555 | .It Li tcp.drop |
1550 | Drop a TCP socket pair connection. | | 1556 | Drop a TCP socket pair connection. |
1551 | .It Li tcp.sack.enable | | 1557 | .It Li tcp.sack.enable |
1552 | If set to 1, enables RFC 2018 Selective ACKnowledgement. | | 1558 | If set to 1, enables RFC 2018 Selective ACKnowledgement. |
1553 | .It Li tcp.sack.globalholes | | 1559 | .It Li tcp.sack.globalholes |
1554 | Global number of TCP SACK holes. | | 1560 | Global number of TCP SACK holes. |
1555 | .It Li tcp.sack.globalmaxholes | | 1561 | .It Li tcp.sack.globalmaxholes |
1556 | Global maximum number of TCP SACK holes. | | 1562 | Global maximum number of TCP SACK holes. |
1557 | .It Li tcp.sack.maxholes | | 1563 | .It Li tcp.sack.maxholes |
1558 | Maximum number of TCP SACK holes allowed per connection. | | 1564 | Maximum number of TCP SACK holes allowed per connection. |
1559 | .It Li tcp.ecn.enable | | 1565 | .It Li tcp.ecn.enable |
1560 | If set to 1, enables RFC 3168 Explicit Congestion Notification. | | 1566 | If set to 1, enables RFC 3168 Explicit Congestion Notification. |
1561 | .It Li tcp.ecn.maxretries | | 1567 | .It Li tcp.ecn.maxretries |
1562 | Number of times to retry sending the ECN-setup packet. | | 1568 | Number of times to retry sending the ECN-setup packet. |
1563 | .It Li tcp.sendspace | | 1569 | .It Li tcp.sendspace |
1564 | The default TCP send buffer size. | | 1570 | The default TCP send buffer size. |
1565 | .It Li tcp.slowhz | | 1571 | .It Li tcp.slowhz |
1566 | The units for tcp.keepidle and tcp.keepintvl; those variables are in ticks | | 1572 | The units for tcp.keepidle and tcp.keepintvl; those variables are in ticks |
1567 | of a clock that ticks tcp.slowhz times per second. | | 1573 | of a clock that ticks tcp.slowhz times per second. |
1568 | (That is, their values | | 1574 | (That is, their values |
1569 | must be divided by the tcp.slowhz value to get times in seconds.) | | 1575 | must be divided by the tcp.slowhz value to get times in seconds.) |
1570 | .It Li tcp.syn_bucket_limit | | 1576 | .It Li tcp.syn_bucket_limit |
1571 | The maximum number of entries allowed per hash bucket in the TCP | | 1577 | The maximum number of entries allowed per hash bucket in the TCP |
1572 | compressed state engine. | | 1578 | compressed state engine. |
1573 | .It Li tcp.syn_cache_limit | | 1579 | .It Li tcp.syn_cache_limit |
1574 | The maximum number of entries allowed in the TCP compressed state | | 1580 | The maximum number of entries allowed in the TCP compressed state |
1575 | engine. | | 1581 | engine. |
1576 | .It Li tcp.timestamps | | 1582 | .It Li tcp.timestamps |
1577 | If rfc1323 is enabled, a value of 1 indicates RFC 1323 time stamp options, | | 1583 | If rfc1323 is enabled, a value of 1 indicates RFC 1323 time stamp options, |
1578 | used for measuring TCP round trip times, are enabled. | | 1584 | used for measuring TCP round trip times, are enabled. |
1579 | .It Li tcp.win_scale | | 1585 | .It Li tcp.win_scale |
1580 | If rfc1323 is enabled, a value of 1 indicates RFC 1323 window scale options, | | 1586 | If rfc1323 is enabled, a value of 1 indicates RFC 1323 window scale options, |
1581 | for increasing the TCP window size, are enabled. | | 1587 | for increasing the TCP window size, are enabled. |
1582 | .It Li tcp.congctl.available | | 1588 | .It Li tcp.congctl.available |
1583 | The available TCP congestion control algorithms. | | 1589 | The available TCP congestion control algorithms. |
1584 | .It Li tcp.congctl.selected | | 1590 | .It Li tcp.congctl.selected |
1585 | The currently selected TCP congestion control algorithm. | | 1591 | The currently selected TCP congestion control algorithm. |
1586 | .It Li tcp.abc.enable | | 1592 | .It Li tcp.abc.enable |
1587 | If set to 1, use RFC 3465 Appropriate Byte Counting (ABC). | | 1593 | If set to 1, use RFC 3465 Appropriate Byte Counting (ABC). |
1588 | If set to 0, use traditional Packet Counting. | | 1594 | If set to 0, use traditional Packet Counting. |
1589 | .It Li tcp.abc.aggressive | | 1595 | .It Li tcp.abc.aggressive |
1590 | Choose the L parameter found in RFC 3465. | | 1596 | Choose the L parameter found in RFC 3465. |
1591 | L is the maximum cwnd increase for an ack during slow start. | | 1597 | L is the maximum cwnd increase for an ack during slow start. |
1592 | If set to 1, use L=2*SMSS. | | 1598 | If set to 1, use L=2*SMSS. |
1593 | If set to 0, use L=1*SMSS. | | 1599 | If set to 0, use L=1*SMSS. |
1594 | It has no effect unless tcp.abc.enable is set to 1. | | 1600 | It has no effect unless tcp.abc.enable is set to 1. |
1595 | .It Li udp.checksum | | 1601 | .It Li udp.checksum |
1596 | If set to 1, UDP checksums are being computed. | | 1602 | If set to 1, UDP checksums are being computed. |
1597 | Received non-zero UDP checksums are always checked. | | 1603 | Received non-zero UDP checksums are always checked. |
1598 | Disabling UDP checksums is strongly discouraged. | | 1604 | Disabling UDP checksums is strongly discouraged. |
1599 | .It Li udp.recvspace | | 1605 | .It Li udp.recvspace |
1600 | The default UDP receive buffer size. | | 1606 | The default UDP receive buffer size. |
1601 | .It Li udp.sendspace | | 1607 | .It Li udp.sendspace |
1602 | The default UDP send buffer size. | | 1608 | The default UDP send buffer size. |
1603 | .El | | 1609 | .El |
1604 | .Pp | | 1610 | .Pp |
1605 | For variables net.*.ipsec, please refer to | | 1611 | For variables net.*.ipsec, please refer to |
1606 | .Xr ipsec 4 . | | 1612 | .Xr ipsec 4 . |
1607 | .It Li net.inet6 ( Dv PF_INET6 ) | | 1613 | .It Li net.inet6 ( Dv PF_INET6 ) |
1608 | Get or set various global information about the IPv6 | | 1614 | Get or set various global information about the IPv6 |
1609 | .Pq Internet Protocol version 6 . | | 1615 | .Pq Internet Protocol version 6 . |
1610 | The third level name is the protocol. | | 1616 | The third level name is the protocol. |
1611 | The fourth level name is the variable name. | | 1617 | The fourth level name is the variable name. |
1612 | The currently defined protocols and names are: | | 1618 | The currently defined protocols and names are: |
1613 | .Bl -column "Protocol" "anonportalgo.available" "integer" "Changeable" -offset indent | | 1619 | .Bl -column "Protocol" "anonportalgo.available" "integer" "Changeable" -offset indent |
1614 | .It Sy Protocol Variable Sy Type Sy Changeable | | 1620 | .It Sy Protocol Variable Sy Type Sy Changeable |
1615 | .It icmp6 errppslimit integer yes | | 1621 | .It icmp6 errppslimit integer yes |
1616 | .It icmp6 mtudisc_hiwat integer yes | | 1622 | .It icmp6 mtudisc_hiwat integer yes |
1617 | .It icmp6 mtudisc_lowat integer yes | | 1623 | .It icmp6 mtudisc_lowat integer yes |
1618 | .It icmp6 nd6_debug integer yes | | 1624 | .It icmp6 nd6_debug integer yes |
1619 | .It icmp6 nd6_delay integer yes | | 1625 | .It icmp6 nd6_delay integer yes |
1620 | .It icmp6 nd6_maxnudhint integer yes | | 1626 | .It icmp6 nd6_maxnudhint integer yes |
1621 | .It icmp6 nd6_mmaxtries integer yes | | 1627 | .It icmp6 nd6_mmaxtries integer yes |
1622 | .It icmp6 nd6_prune integer yes | | 1628 | .It icmp6 nd6_prune integer yes |
1623 | .It icmp6 nd6_umaxtries integer yes | | 1629 | .It icmp6 nd6_umaxtries integer yes |
1624 | .It icmp6 nd6_useloopback integer yes | | 1630 | .It icmp6 nd6_useloopback integer yes |
1625 | .It icmp6 nodeinfo integer yes | | 1631 | .It icmp6 nodeinfo integer yes |
1626 | .It icmp6 rediraccept integer yes | | 1632 | .It icmp6 rediraccept integer yes |
1627 | .It icmp6 redirtimeout integer yes | | 1633 | .It icmp6 redirtimeout integer yes |
1628 | .It ip6 accept_rtadv integer yes | | 1634 | .It ip6 accept_rtadv integer yes |
1629 | .It ip6 addctlpolicy struct in6_addrpolicy no | | 1635 | .It ip6 addctlpolicy struct in6_addrpolicy no |
1630 | .It ip6 anonportalgo.selected string yes | | 1636 | .It ip6 anonportalgo.selected string yes |
1631 | .It ip6 anonportalgo.available string yes | | 1637 | .It ip6 anonportalgo.available string yes |
1632 | .It ip6 anonportalgo.reserve struct yes | | 1638 | .It ip6 anonportalgo.reserve struct yes |
1633 | .It ip6 anonportmax integer yes | | 1639 | .It ip6 anonportmax integer yes |
1634 | .It ip6 anonportmin integer yes | | 1640 | .It ip6 anonportmin integer yes |
1635 | .It ip6 auto_flowlabel integer yes | | 1641 | .It ip6 auto_flowlabel integer yes |
1636 | .It ip6 dad_count integer yes | | 1642 | .It ip6 dad_count integer yes |
1637 | .It ip6 defmcasthlim integer yes | | 1643 | .It ip6 defmcasthlim integer yes |
1638 | .It ip6 forwarding integer yes | | 1644 | .It ip6 forwarding integer yes |
1639 | .It ip6 gifhlim integer yes | | 1645 | .It ip6 gifhlim integer yes |
1640 | .It ip6 hashsize integer yes | | 1646 | .It ip6 hashsize integer yes |
1641 | .It ip6 hlim integer yes | | 1647 | .It ip6 hlim integer yes |
1642 | .It ip6 hdrnestlimit integer yes | | 1648 | .It ip6 hdrnestlimit integer yes |
1643 | .It ip6 kame_version string no | | 1649 | .It ip6 kame_version string no |
1644 | .It ip6 keepfaith integer yes | | 1650 | .It ip6 keepfaith integer yes |
1645 | .It ip6 log_interval integer yes | | 1651 | .It ip6 log_interval integer yes |
1646 | .It ip6 lowportmax integer yes | | 1652 | .It ip6 lowportmax integer yes |
1647 | .It ip6 lowportmin integer yes | | 1653 | .It ip6 lowportmin integer yes |
1648 | .It ip6 maxdynroutes integer yes | | 1654 | .It ip6 maxdynroutes integer yes |
1649 | .It ip6 maxifprefixes integer yes | | 1655 | .It ip6 maxifprefixes integer yes |
1650 | .It ip6 maxifdefrouters integer yes | | 1656 | .It ip6 maxifdefrouters integer yes |
1651 | .It ip6 maxflows integer yes | | 1657 | .It ip6 maxflows integer yes |
1652 | .It ip6 maxfragpackets integer yes | | 1658 | .It ip6 maxfragpackets integer yes |
1653 | .It ip6 maxfrags integer yes | | 1659 | .It ip6 maxfrags integer yes |
1654 | .It ip6 neighborgcthresh integer yes | | 1660 | .It ip6 neighborgcthresh integer yes |
1655 | .It ip6 redirect integer yes | | 1661 | .It ip6 redirect integer yes |
1656 | .It ip6 rr_prune integer yes | | 1662 | .It ip6 rr_prune integer yes |
1657 | .It ip6 use_deprecated integer yes | | 1663 | .It ip6 use_deprecated integer yes |
1658 | .It ip6 v6only integer yes | | 1664 | .It ip6 v6only integer yes |
1659 | .It udp6 do_loopback_cksum integer yes | | 1665 | .It udp6 do_loopback_cksum integer yes |
1660 | .It udp6 recvspace integer yes | | 1666 | .It udp6 recvspace integer yes |
1661 | .It udp6 sendspace integer yes | | 1667 | .It udp6 sendspace integer yes |
1662 | .El | | 1668 | .El |
1663 | .Pp | | 1669 | .Pp |
1664 | The variables are as follows: | | 1670 | The variables are as follows: |
1665 | .Bl -tag -width "123456" | | 1671 | .Bl -tag -width "123456" |
1666 | .It Li ip6.accept_rtadv | | 1672 | .It Li ip6.accept_rtadv |
1667 | If set to non-zero, the node will accept ICMPv6 router advertisement packets | | 1673 | If set to non-zero, the node will accept ICMPv6 router advertisement packets |
1668 | and autoconfigures address prefixes and default routers. | | 1674 | and autoconfigures address prefixes and default routers. |
1669 | The node must be a host | | 1675 | The node must be a host |
1670 | .Pq not a router | | 1676 | .Pq not a router |
1671 | for the option to be meaningful. | | 1677 | for the option to be meaningful. |
1672 | .It Li ip6.anonportalgo.available | | 1678 | .It Li ip6.anonportalgo.available |
1673 | The available RFC 6056 port randomization algorithms. | | 1679 | The available RFC 6056 port randomization algorithms. |
1674 | .It Li ip6.anonportalgo.reserve | | 1680 | .It Li ip6.anonportalgo.reserve |
1675 | A bitmask of ports that will not be used during anonymous or privileged | | 1681 | A bitmask of ports that will not be used during anonymous or privileged |
1676 | port selection. | | 1682 | port selection. |
1677 | .It Li ip6.anonportalgo.selected | | 1683 | .It Li ip6.anonportalgo.selected |
1678 | The currently selected RFC 6056 port randomization algorithm. | | 1684 | The currently selected RFC 6056 port randomization algorithm. |
1679 | .It Li ip6.anonportmax | | 1685 | .It Li ip6.anonportmax |
1680 | The highest port number to use for TCP and UDP ephemeral port allocation. | | 1686 | The highest port number to use for TCP and UDP ephemeral port allocation. |
1681 | This cannot be set to less than 1024 or greater than 65535, and must | | 1687 | This cannot be set to less than 1024 or greater than 65535, and must |
1682 | be greater than | | 1688 | be greater than |
1683 | .Li ip6.anonportmin . | | 1689 | .Li ip6.anonportmin . |
1684 | .It Li ip6.anonportmin | | 1690 | .It Li ip6.anonportmin |
1685 | The lowest port number to use for TCP and UDP ephemeral port allocation. | | 1691 | The lowest port number to use for TCP and UDP ephemeral port allocation. |
1686 | This cannot be set to less than 1024 or greater than 65535. | | 1692 | This cannot be set to less than 1024 or greater than 65535. |
1687 | .It Li ip6.auto_flowlabel | | 1693 | .It Li ip6.auto_flowlabel |
1688 | On connected transport protocol packets, | | 1694 | On connected transport protocol packets, |
1689 | fill IPv6 flowlabel field to help intermediate routers to identify packet flows. | | 1695 | fill IPv6 flowlabel field to help intermediate routers to identify packet flows. |
1690 | .It Li ip6.dad_count | | 1696 | .It Li ip6.dad_count |
1691 | The variable configures number of IPv6 DAD | | 1697 | The variable configures number of IPv6 DAD |
1692 | .Pq duplicated address detection | | 1698 | .Pq duplicated address detection |
1693 | probe packets. | | 1699 | probe packets. |
1694 | The packets will be generated when IPv6 interface addresses are configured. | | 1700 | The packets will be generated when IPv6 interface addresses are configured. |
1695 | .It Li ip6.defmcasthlim | | 1701 | .It Li ip6.defmcasthlim |
1696 | The default hop limit value for an IPv6 multicast packet sourced by the node. | | 1702 | The default hop limit value for an IPv6 multicast packet sourced by the node. |
1697 | This value applies to all the transport protocols on top of IPv6. | | 1703 | This value applies to all the transport protocols on top of IPv6. |
1698 | There are APIs to override the value, as documented in | | 1704 | There are APIs to override the value, as documented in |
1699 | .Xr ip6 4 . | | 1705 | .Xr ip6 4 . |
1700 | .It Li ip6.forwarding | | 1706 | .It Li ip6.forwarding |
1701 | If set to 1, enables IPv6 forwarding for the node, | | 1707 | If set to 1, enables IPv6 forwarding for the node, |
1702 | meaning that the node is acting as a router. | | 1708 | meaning that the node is acting as a router. |
1703 | If set to 0, disables IPv6 forwarding for the node, | | 1709 | If set to 0, disables IPv6 forwarding for the node, |
1704 | meaning that the node is acting as a host. | | 1710 | meaning that the node is acting as a host. |
1705 | IPv6 specification defines node behavior for | | 1711 | IPv6 specification defines node behavior for |
1706 | .Dq router | | 1712 | .Dq router |
1707 | case and | | 1713 | case and |
1708 | .Dq host | | 1714 | .Dq host |
1709 | case quite differently, and changing this variable during operation | | 1715 | case quite differently, and changing this variable during operation |
1710 | may cause serious trouble. | | 1716 | may cause serious trouble. |
1711 | It is recommended to configure the variable at bootstrap time, | | 1717 | It is recommended to configure the variable at bootstrap time, |
1712 | and bootstrap time only. | | 1718 | and bootstrap time only. |
1713 | .It Li ip6.gifhlim | | 1719 | .It Li ip6.gifhlim |
1714 | The maximum hop limit value for an IPv6 packet generated by | | 1720 | The maximum hop limit value for an IPv6 packet generated by |
1715 | .Xr gif 4 | | 1721 | .Xr gif 4 |
1716 | tunnel interface. | | 1722 | tunnel interface. |
1717 | .It Li ip6.hdrnestlimit | | 1723 | .It Li ip6.hdrnestlimit |
1718 | The number of IPv6 extension headers permitted on incoming IPv6 packets. | | 1724 | The number of IPv6 extension headers permitted on incoming IPv6 packets. |
1719 | If set to 0, the node will accept as many extension headers as possible. | | 1725 | If set to 0, the node will accept as many extension headers as possible. |
1720 | .It Li ip6.hashsize | | 1726 | .It Li ip6.hashsize |
1721 | The size of IPv6 Fast Forward hash table. | | 1727 | The size of IPv6 Fast Forward hash table. |
1722 | This value must be a power of 2 (64, 256, ...). | | 1728 | This value must be a power of 2 (64, 256, ...). |
1723 | A larger hash table size results in fewer collisions. | | 1729 | A larger hash table size results in fewer collisions. |
1724 | Also see | | 1730 | Also see |
1725 | .Li ip6.maxflows . | | 1731 | .Li ip6.maxflows . |
1726 | .It Li ip6.hlim | | 1732 | .It Li ip6.hlim |
1727 | The default hop limit value for an IPv6 unicast packet sourced by the node. | | 1733 | The default hop limit value for an IPv6 unicast packet sourced by the node. |
1728 | This value applies to all the transport protocols on top of IPv6. | | 1734 | This value applies to all the transport protocols on top of IPv6. |
1729 | There are APIs to override the value, as documented in | | 1735 | There are APIs to override the value, as documented in |
1730 | .Xr ip6 4 . | | 1736 | .Xr ip6 4 . |
1731 | .It Li ip6.kame_version | | 1737 | .It Li ip6.kame_version |
1732 | The string identifies the version of KAME IPv6 stack implemented in the kernel. | | 1738 | The string identifies the version of KAME IPv6 stack implemented in the kernel. |
1733 | .It Li ip6.keepfaith | | 1739 | .It Li ip6.keepfaith |
1734 | If set to non-zero, it enables | | 1740 | If set to non-zero, it enables |
1735 | .Dq FAITH | | 1741 | .Dq FAITH |
1736 | TCP relay IPv6-to-IPv4 translator code in the kernel. | | 1742 | TCP relay IPv6-to-IPv4 translator code in the kernel. |
1737 | Refer | | 1743 | Refer |
1738 | .Xr faith 4 | | 1744 | .Xr faith 4 |
1739 | and | | 1745 | and |
1740 | .Xr faithd 8 | | 1746 | .Xr faithd 8 |
1741 | for detail. | | 1747 | for detail. |
1742 | .It Li ip6.log_interval | | 1748 | .It Li ip6.log_interval |
1743 | The variable controls amount of logs generated by IPv6 packet | | 1749 | The variable controls amount of logs generated by IPv6 packet |
1744 | forwarding engine, by setting interval between log output | | 1750 | forwarding engine, by setting interval between log output |
1745 | .Pq in seconds . | | 1751 | .Pq in seconds . |
1746 | .It Li ip6.lowportmax | | 1752 | .It Li ip6.lowportmax |
1747 | The highest port number to use for TCP and UDP reserved port allocation. | | 1753 | The highest port number to use for TCP and UDP reserved port allocation. |
1748 | This cannot be set to less than 0 or greater than 1024, and must | | 1754 | This cannot be set to less than 0 or greater than 1024, and must |
1749 | be greater than | | 1755 | be greater than |
1750 | .Li ip6.lowportmin . | | 1756 | .Li ip6.lowportmin . |
1751 | .It Li ip6.lowportmin | | 1757 | .It Li ip6.lowportmin |
1752 | The lowest port number to use for TCP and UDP reserved port allocation. | | 1758 | The lowest port number to use for TCP and UDP reserved port allocation. |
1753 | This cannot be set to less than 0 or greater than 1024, and must | | 1759 | This cannot be set to less than 0 or greater than 1024, and must |
1754 | be smaller than | | 1760 | be smaller than |
1755 | .Li ip6.lowportmax . | | 1761 | .Li ip6.lowportmax . |
1756 | .It Li ip6.maxdynroutes | | 1762 | .It Li ip6.maxdynroutes |
1757 | Maximum number of routes created by redirect. | | 1763 | Maximum number of routes created by redirect. |
1758 | Set it to negative to disable. | | 1764 | Set it to negative to disable. |
1759 | The default value is 4096. | | 1765 | The default value is 4096. |
1760 | .It Li ip6.maxifprefixes | | 1766 | .It Li ip6.maxifprefixes |
1761 | Maximum number of prefixes created by route advertisements per interface. | | 1767 | Maximum number of prefixes created by route advertisements per interface. |
1762 | Set it to negative to disable. | | 1768 | Set it to negative to disable. |
1763 | The default value is 16. | | 1769 | The default value is 16. |
1764 | .It Li ip6.maxifdefrouters 16 | | 1770 | .It Li ip6.maxifdefrouters 16 |
1765 | Maximum number of default routers created by route advertisements per interface. | | 1771 | Maximum number of default routers created by route advertisements per interface. |
1766 | Set it to negative to disable. | | 1772 | Set it to negative to disable. |
1767 | The default value is 16. | | 1773 | The default value is 16. |
1768 | .It Li ip6.maxflows | | 1774 | .It Li ip6.maxflows |
1769 | IPv6 Fast Forwarding is enabled by default. | | 1775 | IPv6 Fast Forwarding is enabled by default. |
1770 | If set to 0, IPv6 Fast Forwarding is disabled. | | 1776 | If set to 0, IPv6 Fast Forwarding is disabled. |
1771 | .Li ip6.maxflows | | 1777 | .Li ip6.maxflows |
1772 | controls the maximum amount of flows which can be created. | | 1778 | controls the maximum amount of flows which can be created. |
1773 | The default value is 256. | | 1779 | The default value is 256. |
1774 | .It Li ip6.maxfragpackets | | 1780 | .It Li ip6.maxfragpackets |
1775 | The maximum number of fragmented packets the node will accept. | | 1781 | The maximum number of fragmented packets the node will accept. |
1776 | 0 means that the node will not accept any fragmented packets. | | 1782 | 0 means that the node will not accept any fragmented packets. |
1777 | \-1 means that the node will accept as many fragmented packets as it receives. | | 1783 | \-1 means that the node will accept as many fragmented packets as it receives. |
1778 | The flag is provided basically for avoiding possible DoS attacks. | | 1784 | The flag is provided basically for avoiding possible DoS attacks. |
1779 | .It Li ip6.maxfrags | | 1785 | .It Li ip6.maxfrags |
1780 | The maximum number of fragments the node will accept. | | 1786 | The maximum number of fragments the node will accept. |
1781 | 0 means that the node will not accept any fragments. | | 1787 | 0 means that the node will not accept any fragments. |
1782 | \-1 means that the node will accept as many fragments as it receives. | | 1788 | \-1 means that the node will accept as many fragments as it receives. |
1783 | The flag is provided basically for avoiding possible DoS attacks. | | 1789 | The flag is provided basically for avoiding possible DoS attacks. |
1784 | .It Li ip6.neighborgcthresh | | 1790 | .It Li ip6.neighborgcthresh |
1785 | Maximum number of entries in neighbor cache per interface. | | 1791 | Maximum number of entries in neighbor cache per interface. |
1786 | Set to negative to disable. | | 1792 | Set to negative to disable. |
1787 | The default value is 2048. | | 1793 | The default value is 2048. |
1788 | .It Li ip6.redirect | | 1794 | .It Li ip6.redirect |
1789 | If set to 1, ICMPv6 redirects may be sent by the node. | | 1795 | If set to 1, ICMPv6 redirects may be sent by the node. |
1790 | This option is ignored unless the node is routing IP packets, | | 1796 | This option is ignored unless the node is routing IP packets, |
1791 | and should normally be enabled on all systems. | | 1797 | and should normally be enabled on all systems. |
1792 | .It Li ip6.rr_prune | | 1798 | .It Li ip6.rr_prune |
1793 | The variable specifies interval between IPv6 router renumbering prefix | | 1799 | The variable specifies interval between IPv6 router renumbering prefix |
1794 | babysitting, in seconds. | | 1800 | babysitting, in seconds. |
1795 | .It Li ip6.use_deprecated | | 1801 | .It Li ip6.use_deprecated |
1796 | The variable controls use of deprecated address, specified in RFC 2462 5.5.4. | | 1802 | The variable controls use of deprecated address, specified in RFC 2462 5.5.4. |
1797 | .It Li ip6.v6only | | 1803 | .It Li ip6.v6only |
1798 | The variable specifies initial value for | | 1804 | The variable specifies initial value for |
1799 | .Dv IPV6_V6ONLY | | 1805 | .Dv IPV6_V6ONLY |
1800 | socket option for | | 1806 | socket option for |
1801 | .Dv AF_INET6 | | 1807 | .Dv AF_INET6 |
1802 | socket. | | 1808 | socket. |
1803 | Please refer to | | 1809 | Please refer to |
1804 | .Xr ip6 4 | | 1810 | .Xr ip6 4 |
1805 | for detail. | | 1811 | for detail. |
1806 | .It Li icmp6.errppslimit | | 1812 | .It Li icmp6.errppslimit |
1807 | The variable specifies the maximum number of outgoing ICMPv6 error messages, | | 1813 | The variable specifies the maximum number of outgoing ICMPv6 error messages, |
1808 | per second. | | 1814 | per second. |
1809 | ICMPv6 error messages that exceeded the value are subject to rate limitation | | 1815 | ICMPv6 error messages that exceeded the value are subject to rate limitation |
1810 | and will not go out from the node. | | 1816 | and will not go out from the node. |
1811 | Negative value disables rate limitation. | | 1817 | Negative value disables rate limitation. |
1812 | .It Li icmp6.mtudisc_hiwat | | 1818 | .It Li icmp6.mtudisc_hiwat |
1813 | .It Li icmp6.mtudisc_lowat | | 1819 | .It Li icmp6.mtudisc_lowat |
1814 | The variables define the maximum number of routing table entries, | | 1820 | The variables define the maximum number of routing table entries, |
1815 | created due to path MTU discovery | | 1821 | created due to path MTU discovery |
1816 | .Pq prevents denial-of-service attacks with ICMPv6 too big messages . | | 1822 | .Pq prevents denial-of-service attacks with ICMPv6 too big messages . |
1817 | When IPv6 path MTU discovery happens, we keep path MTU information into | | 1823 | When IPv6 path MTU discovery happens, we keep path MTU information into |
1818 | the routing table. | | 1824 | the routing table. |
1819 | If the number of routing table entries exceed the value, | | 1825 | If the number of routing table entries exceed the value, |
1820 | the kernel will not attempt to keep the path MTU information. | | 1826 | the kernel will not attempt to keep the path MTU information. |
1821 | .Li icmp6.mtudisc_hiwat | | 1827 | .Li icmp6.mtudisc_hiwat |
1822 | is used when we have verified ICMPv6 too big messages. | | 1828 | is used when we have verified ICMPv6 too big messages. |
1823 | .Li icmp6.mtudisc_lowat | | 1829 | .Li icmp6.mtudisc_lowat |
1824 | is used when we have unverified ICMPv6 too big messages. | | 1830 | is used when we have unverified ICMPv6 too big messages. |
1825 | Verification is performed by using address/port pairs kept in connected pcbs. | | 1831 | Verification is performed by using address/port pairs kept in connected pcbs. |
1826 | Negative value disables the upper limit. | | 1832 | Negative value disables the upper limit. |
1827 | .It Li icmp6.nd6_debug | | 1833 | .It Li icmp6.nd6_debug |
1828 | If set to non-zero, kernel IPv6 neighbor discovery code will generate | | 1834 | If set to non-zero, kernel IPv6 neighbor discovery code will generate |
1829 | debugging messages. | | 1835 | debugging messages. |
1830 | The debug outputs are useful to diagnose IPv6 interoperability issues. | | 1836 | The debug outputs are useful to diagnose IPv6 interoperability issues. |
1831 | The flag must be set to 0 for normal operation. | | 1837 | The flag must be set to 0 for normal operation. |
1832 | .It Li icmp6.nd6_delay | | 1838 | .It Li icmp6.nd6_delay |
1833 | The variable specifies | | 1839 | The variable specifies |
1834 | .Dv DELAY_FIRST_PROBE_TIME | | 1840 | .Dv DELAY_FIRST_PROBE_TIME |
1835 | timing constant in IPv6 neighbor discovery specification | | 1841 | timing constant in IPv6 neighbor discovery specification |
1836 | .Pq RFC 2461 , | | 1842 | .Pq RFC 2461 , |
1837 | in seconds. | | 1843 | in seconds. |
1838 | .It Li icmp6.nd6_maxnudhint | | 1844 | .It Li icmp6.nd6_maxnudhint |
1839 | IPv6 neighbor discovery permits upper layer protocols to supply reachability | | 1845 | IPv6 neighbor discovery permits upper layer protocols to supply reachability |
1840 | hints, to avoid unnecessary neighbor discovery exchanges. | | 1846 | hints, to avoid unnecessary neighbor discovery exchanges. |
1841 | The variable defines the number of consecutive hints the neighbor discovery | | 1847 | The variable defines the number of consecutive hints the neighbor discovery |
1842 | layer will take. | | 1848 | layer will take. |
1843 | For example, by setting the variable to 3, neighbor discovery layer | | 1849 | For example, by setting the variable to 3, neighbor discovery layer |
1844 | will take 3 consecutive hints in maximum. | | 1850 | will take 3 consecutive hints in maximum. |
1845 | After receiving 3 hints, neighbor discovery layer will perform | | 1851 | After receiving 3 hints, neighbor discovery layer will perform |
1846 | normal neighbor discovery process. | | 1852 | normal neighbor discovery process. |
1847 | .It Li icmp6.nd6_mmaxtries | | 1853 | .It Li icmp6.nd6_mmaxtries |
1848 | The variable specifies | | 1854 | The variable specifies |
1849 | .Dv MAX_MULTICAST_SOLICIT | | 1855 | .Dv MAX_MULTICAST_SOLICIT |
1850 | constant in IPv6 neighbor discovery specification | | 1856 | constant in IPv6 neighbor discovery specification |
1851 | .Pq RFC 2461 . | | 1857 | .Pq RFC 2461 . |
1852 | .It Li icmp6.nd6_prune | | 1858 | .It Li icmp6.nd6_prune |
1853 | The variable specifies interval between IPv6 neighbor cache babysitting, | | 1859 | The variable specifies interval between IPv6 neighbor cache babysitting, |
1854 | in seconds. | | 1860 | in seconds. |
1855 | .It Li icmp6.nd6_umaxtries | | 1861 | .It Li icmp6.nd6_umaxtries |
1856 | The variable specifies | | 1862 | The variable specifies |
1857 | .Dv MAX_UNICAST_SOLICIT | | 1863 | .Dv MAX_UNICAST_SOLICIT |
1858 | constant in IPv6 neighbor discovery specification | | 1864 | constant in IPv6 neighbor discovery specification |
1859 | .Pq RFC 2461 . | | 1865 | .Pq RFC 2461 . |
1860 | .It Li icmp6.nd6_useloopback | | 1866 | .It Li icmp6.nd6_useloopback |
1861 | If set to non-zero, kernel IPv6 stack will use loopback interface for | | 1867 | If set to non-zero, kernel IPv6 stack will use loopback interface for |
1862 | local traffic. | | 1868 | local traffic. |
1863 | .It Li icmp6.nodeinfo | | 1869 | .It Li icmp6.nodeinfo |
1864 | The variable enables responses to ICMPv6 node information queries. | | 1870 | The variable enables responses to ICMPv6 node information queries. |
1865 | If you set the variable to 0, responses will not be generated for | | 1871 | If you set the variable to 0, responses will not be generated for |
1866 | ICMPv6 node information queries. | | 1872 | ICMPv6 node information queries. |
1867 | Since node information queries can have a security impact, it is | | 1873 | Since node information queries can have a security impact, it is |
1868 | possible to fine tune which responses should be answered. | | 1874 | possible to fine tune which responses should be answered. |
1869 | Two separate bits can be set. | | 1875 | Two separate bits can be set. |
1870 | .Bl -tag -width "12345" | | 1876 | .Bl -tag -width "12345" |
1871 | .It 1 | | 1877 | .It 1 |
1872 | Respond to ICMPv6 FQDN queries, e.g. | | 1878 | Respond to ICMPv6 FQDN queries, e.g. |
1873 | .Li ping6 -w . | | 1879 | .Li ping6 -w . |
1874 | .It 2 | | 1880 | .It 2 |
1875 | Respond to ICMPv6 node addresses queries, e.g. | | 1881 | Respond to ICMPv6 node addresses queries, e.g. |
1876 | .Li ping6 -a . | | 1882 | .Li ping6 -a . |
1877 | .El | | 1883 | .El |
1878 | .It Li icmp6.rediraccept | | 1884 | .It Li icmp6.rediraccept |
1879 | If set to non-zero, the host will accept ICMPv6 redirect packets. | | 1885 | If set to non-zero, the host will accept ICMPv6 redirect packets. |
1880 | Note that IPv6 routers will never accept ICMPv6 redirect packets, | | 1886 | Note that IPv6 routers will never accept ICMPv6 redirect packets, |
1881 | and the variable is meaningful on IPv6 hosts | | 1887 | and the variable is meaningful on IPv6 hosts |
1882 | .Pq non-router | | 1888 | .Pq non-router |
1883 | only. | | 1889 | only. |
1884 | .It Li icmp6.redirtimeout | | 1890 | .It Li icmp6.redirtimeout |
1885 | The variable specifies lifetime of routing entries generated by incoming | | 1891 | The variable specifies lifetime of routing entries generated by incoming |
1886 | ICMPv6 redirect. | | 1892 | ICMPv6 redirect. |
1887 | .It Li udp6.do_loopback_cksum | | 1893 | .It Li udp6.do_loopback_cksum |
1888 | Perform UDP checksum on loopback. | | 1894 | Perform UDP checksum on loopback. |
1889 | .It Li udp6.recvspace | | 1895 | .It Li udp6.recvspace |
1890 | Default UDP receive buffer size. | | 1896 | Default UDP receive buffer size. |
1891 | .It Li udp6.sendspace | | 1897 | .It Li udp6.sendspace |
1892 | Default UDP send buffer size. | | 1898 | Default UDP send buffer size. |
1893 | .El | | 1899 | .El |
1894 | .Pp | | 1900 | .Pp |
1895 | We reuse net.*.tcp for | | 1901 | We reuse net.*.tcp for |
1896 | .Tn TCP | | 1902 | .Tn TCP |
1897 | over | | 1903 | over |
1898 | .Tn IPv6 , | | 1904 | .Tn IPv6 , |
1899 | and therefore we do not have variables net.*.tcp6. | | 1905 | and therefore we do not have variables net.*.tcp6. |
1900 | Variables net.inet6.udp6 have identical meaning to net.inet.udp. | | 1906 | Variables net.inet6.udp6 have identical meaning to net.inet.udp. |
1901 | Please refer to | | 1907 | Please refer to |
1902 | .Li PF_INET | | 1908 | .Li PF_INET |
1903 | section above. | | 1909 | section above. |
1904 | For variables net.*.ipsec6, please refer to | | 1910 | For variables net.*.ipsec6, please refer to |
1905 | .Xr ipsec 4 . | | 1911 | .Xr ipsec 4 . |
1906 | .It Li net.key ( Dv PF_KEY ) | | 1912 | .It Li net.key ( Dv PF_KEY ) |
1907 | Get or set various global information about the IPsec key management. | | 1913 | Get or set various global information about the IPsec key management. |
1908 | The third level name is the variable name. | | 1914 | The third level name is the variable name. |
1909 | The currently defined variable and names are: | | 1915 | The currently defined variable and names are: |
1910 | .Bl -column "blockacq_lifetime" "integer" "Changeable" -offset indent | | 1916 | .Bl -column "blockacq_lifetime" "integer" "Changeable" -offset indent |
1911 | .It Sy Variable Type Sy Changeable | | 1917 | .It Sy Variable Type Sy Changeable |
1912 | .It debug integer yes | | 1918 | .It debug integer yes |
1913 | .It enabled integer yes | | 1919 | .It enabled integer yes |
1914 | .It used integer no | | 1920 | .It used integer no |
1915 | .It spi_try integer yes | | 1921 | .It spi_try integer yes |
1916 | .It spi_min_value integer yes | | 1922 | .It spi_min_value integer yes |
1917 | .It spi_max_value integer yes | | 1923 | .It spi_max_value integer yes |
1918 | .It larval_lifetime integer yes | | 1924 | .It larval_lifetime integer yes |
1919 | .It blockacq_count integer yes | | 1925 | .It blockacq_count integer yes |
1920 | .It blockacq_lifetime integer yes | | 1926 | .It blockacq_lifetime integer yes |
1921 | .It esp_keymin integer yes | | 1927 | .It esp_keymin integer yes |
1922 | .It esp_auth integer yes | | 1928 | .It esp_auth integer yes |
1923 | .It ah_keymin integer yes | | 1929 | .It ah_keymin integer yes |
1924 | .El | | 1930 | .El |
1925 | .Pp | | 1931 | .Pp |
1926 | The variables are as follows: | | 1932 | The variables are as follows: |
1927 | .Bl -tag -width "123456" | | 1933 | .Bl -tag -width "123456" |
1928 | .It Li debug | | 1934 | .It Li debug |
1929 | Turn on debugging message from within the kernel. | | 1935 | Turn on debugging message from within the kernel. |
1930 | The value is a bitmap, as defined in | | 1936 | The value is a bitmap, as defined in |
1931 | .In netkey/key_debug.h . | | 1937 | .In netkey/key_debug.h . |
1932 | .It Li enabled | | 1938 | .It Li enabled |
1933 | Control processing of IPsec control messages. | | 1939 | Control processing of IPsec control messages. |
1934 | .Bl -tag -width indent | | 1940 | .Bl -tag -width indent |
1935 | .It 0 | | 1941 | .It 0 |
1936 | Never allow IPsec processing | | 1942 | Never allow IPsec processing |
1937 | .It 1 | | 1943 | .It 1 |
1938 | Allow IPsec processing when SPD policies are present. | | 1944 | Allow IPsec processing when SPD policies are present. |
1939 | .It 2 | | 1945 | .It 2 |
1940 | Force IPsec processing even when SPD policies are not present. | | 1946 | Force IPsec processing even when SPD policies are not present. |
1941 | .El | | 1947 | .El |
1942 | .It Li used | | 1948 | .It Li used |
1943 | Based on if IPsec is enabled, and SPD rule existance, show if | | 1949 | Based on if IPsec is enabled, and SPD rule existance, show if |
1944 | IPsec is being used. | | 1950 | IPsec is being used. |
1945 | Note that currenly once IPsec is being used, it cannot be disabled. | | 1951 | Note that currenly once IPsec is being used, it cannot be disabled. |
1946 | .It Li spi_try | | 1952 | .It Li spi_try |
1947 | The number of times the kernel will try to obtain an unique SPI | | 1953 | The number of times the kernel will try to obtain an unique SPI |
1948 | when it generates it from random number generator. | | 1954 | when it generates it from random number generator. |
1949 | .It Li spi_min_value | | 1955 | .It Li spi_min_value |
1950 | Minimum SPI value when generating it within the kernel. | | 1956 | Minimum SPI value when generating it within the kernel. |
1951 | .It Li spi_max_value | | 1957 | .It Li spi_max_value |
1952 | Maximum SPI value when generating it within the kernel. | | 1958 | Maximum SPI value when generating it within the kernel. |
1953 | .It Li larval_lifetime | | 1959 | .It Li larval_lifetime |
1954 | Lifetime for LARVAL SAD entries, in seconds. | | 1960 | Lifetime for LARVAL SAD entries, in seconds. |
1955 | .It Li blockacq_count | | 1961 | .It Li blockacq_count |
1956 | Number of ACQUIRE PF_KEY messages to be blocked after an ACQUIRE message. | | 1962 | Number of ACQUIRE PF_KEY messages to be blocked after an ACQUIRE message. |
1957 | It avoids flood of ACQUIRE PF_KEY from being sent from the kernel to the | | 1963 | It avoids flood of ACQUIRE PF_KEY from being sent from the kernel to the |
1958 | key management daemon. | | 1964 | key management daemon. |
1959 | .It Li blockacq_lifetime | | 1965 | .It Li blockacq_lifetime |
1960 | Lifetime of ACQUIRE PF_KEY message. | | 1966 | Lifetime of ACQUIRE PF_KEY message. |
1961 | .It Li esp_keymin | | 1967 | .It Li esp_keymin |
1962 | Minimum ESP key length, in bits. | | 1968 | Minimum ESP key length, in bits. |
1963 | The value is used when the kernel creates proposal payload | | 1969 | The value is used when the kernel creates proposal payload |
1964 | on ACQUIRE PF_KEY message. | | 1970 | on ACQUIRE PF_KEY message. |
1965 | .It Li esp_auth | | 1971 | .It Li esp_auth |
1966 | Whether ESP authentication should be used or not. | | 1972 | Whether ESP authentication should be used or not. |
1967 | Non-zero value indicates that ESP authentication should be used. | | 1973 | Non-zero value indicates that ESP authentication should be used. |
1968 | The value is used when the kernel creates proposal payload | | 1974 | The value is used when the kernel creates proposal payload |
1969 | on ACQUIRE PF_KEY message. | | 1975 | on ACQUIRE PF_KEY message. |
1970 | .It Li ah_keymin | | 1976 | .It Li ah_keymin |
1971 | Minimum AH key length, in bits, | | 1977 | Minimum AH key length, in bits, |
1972 | The value is used when the kernel creates proposal payload | | 1978 | The value is used when the kernel creates proposal payload |
1973 | on ACQUIRE PF_KEY message. | | 1979 | on ACQUIRE PF_KEY message. |
1974 | .El | | 1980 | .El |
1975 | .El | | 1981 | .El |
1976 | .Ss The proc.* subtree | | 1982 | .Ss The proc.* subtree |
1977 | The string and integer information available for the | | 1983 | The string and integer information available for the |
1978 | .Li proc | | 1984 | .Li proc |
1979 | level is detailed below. | | 1985 | level is detailed below. |
1980 | The changeable column shows whether a process with appropriate | | 1986 | The changeable column shows whether a process with appropriate |
1981 | privilege may change the value. | | 1987 | privilege may change the value. |
1982 | These values are per-process, | | 1988 | These values are per-process, |
1983 | and as such may change from one process to another. | | 1989 | and as such may change from one process to another. |
1984 | When a process is created, | | 1990 | When a process is created, |
1985 | the default values are inherited from its parent. | | 1991 | the default values are inherited from its parent. |
1986 | When a set-user-ID or set-group-ID binary is executed, the | | 1992 | When a set-user-ID or set-group-ID binary is executed, the |
1987 | value of PROC_PID_CORENAME is reset to the system default value. | | 1993 | value of PROC_PID_CORENAME is reset to the system default value. |
1988 | The second level name is either the magic value PROC_CURPROC, which | | 1994 | The second level name is either the magic value PROC_CURPROC, which |
1989 | points to the current process, or the PID of the target process. | | 1995 | points to the current process, or the PID of the target process. |
1990 | .Bl -column "proc.pid.corename" "string" "not applicable" -offset indent | | 1996 | .Bl -column "proc.pid.corename" "string" "not applicable" -offset indent |
1991 | .It Sy Third level name Sy Type Sy Changeable | | 1997 | .It Sy Third level name Sy Type Sy Changeable |
1992 | .It proc.pid.corename string yes | | 1998 | .It proc.pid.corename string yes |
1993 | .It proc.pid.rlimit node not applicable | | 1999 | .It proc.pid.rlimit node not applicable |
1994 | .It proc.pid.stopfork int yes | | 2000 | .It proc.pid.stopfork int yes |
1995 | .It proc.pid.stopexec int yes | | 2001 | .It proc.pid.stopexec int yes |
1996 | .It proc.pid.stopexit int yes | | 2002 | .It proc.pid.stopexit int yes |
1997 | .El | | 2003 | .El |
1998 | .Bl -tag -width "123456" | | 2004 | .Bl -tag -width "123456" |
1999 | .It Li proc.pid.corename ( Dv PROC_PID_CORENAME ) | | 2005 | .It Li proc.pid.corename ( Dv PROC_PID_CORENAME ) |
2000 | The template used for the core dump file name (see | | 2006 | The template used for the core dump file name (see |
2001 | .Xr core 5 | | 2007 | .Xr core 5 |
2002 | for details). | | 2008 | for details). |
2003 | The base name must either be | | 2009 | The base name must either be |
2004 | .Pa core | | 2010 | .Pa core |
2005 | or end with the suffix | | 2011 | or end with the suffix |
2006 | .Pa .core | | 2012 | .Pa .core |
2007 | (the super-user may set arbitrary names). | | 2013 | (the super-user may set arbitrary names). |
2008 | By default it points to | | 2014 | By default it points to |
2009 | .Dv KERN_DEFCORENAME . | | 2015 | .Dv KERN_DEFCORENAME . |
2010 | .It Li proc.pid.rlimit ( Dv PROC_PID_LIMIT ) | | 2016 | .It Li proc.pid.rlimit ( Dv PROC_PID_LIMIT ) |
2011 | Return resources limits, as defined for the | | 2017 | Return resources limits, as defined for the |
2012 | .Xr getrlimit 2 | | 2018 | .Xr getrlimit 2 |
2013 | and | | 2019 | and |
2014 | .Xr setrlimit 2 | | 2020 | .Xr setrlimit 2 |
2015 | system calls. | | 2021 | system calls. |
2016 | The fourth level name is one of: | | 2022 | The fourth level name is one of: |
2017 | .Bl -tag -width "123456" | | 2023 | .Bl -tag -width "123456" |
2018 | .It Li proc.pid.rlimit.cputime ( Dv PROC_PID_LIMIT_CPU ) | | 2024 | .It Li proc.pid.rlimit.cputime ( Dv PROC_PID_LIMIT_CPU ) |
2019 | The maximum amount of CPU time (in seconds) to be used by each process. | | 2025 | The maximum amount of CPU time (in seconds) to be used by each process. |
2020 | .It Li proc.pid.rlimit.filesize ( Dv PROC_PID_LIMIT_FSIZE ) | | 2026 | .It Li proc.pid.rlimit.filesize ( Dv PROC_PID_LIMIT_FSIZE ) |
2021 | The largest size (in bytes) file that may be created. | | 2027 | The largest size (in bytes) file that may be created. |
2022 | .It Li proc.pid.rlimit.datasize ( Dv PROC_PID_LIMIT_DATA ) | | 2028 | .It Li proc.pid.rlimit.datasize ( Dv PROC_PID_LIMIT_DATA ) |
2023 | The maximum size (in bytes) of the data segment for a process; | | 2029 | The maximum size (in bytes) of the data segment for a process; |
2024 | this defines how far a program may extend its break with the | | 2030 | this defines how far a program may extend its break with the |
2025 | .Xr sbrk 2 | | 2031 | .Xr sbrk 2 |
2026 | system call. | | 2032 | system call. |
2027 | .It Li proc.pid.rlimit.stacksize ( Dv PROC_PID_LIMIT_STACK ) | | 2033 | .It Li proc.pid.rlimit.stacksize ( Dv PROC_PID_LIMIT_STACK ) |
2028 | The maximum size (in bytes) of the stack segment for a process; | | 2034 | The maximum size (in bytes) of the stack segment for a process; |
2029 | this defines how far a program's stack segment may be extended. | | 2035 | this defines how far a program's stack segment may be extended. |
2030 | Stack extension is performed automatically by the system. | | 2036 | Stack extension is performed automatically by the system. |
2031 | .It Li proc.pid.rlimit.coredumpsize ( Dv PROC_PID_LIMIT_CORE ) | | 2037 | .It Li proc.pid.rlimit.coredumpsize ( Dv PROC_PID_LIMIT_CORE ) |
2032 | The largest size (in bytes) | | 2038 | The largest size (in bytes) |
2033 | .Pa core | | 2039 | .Pa core |
2034 | file that may be created. | | 2040 | file that may be created. |
2035 | .It Li proc.pid.rlimit.memoryuse ( Dv PROC_PID_LIMIT_RSS ) | | 2041 | .It Li proc.pid.rlimit.memoryuse ( Dv PROC_PID_LIMIT_RSS ) |
2036 | The maximum size (in bytes) to which a process's resident set size may | | 2042 | The maximum size (in bytes) to which a process's resident set size may |
2037 | grow. | | 2043 | grow. |
2038 | This imposes a limit on the amount of physical memory to be given to | | 2044 | This imposes a limit on the amount of physical memory to be given to |
2039 | a process; if memory is tight, the system will prefer to take memory | | 2045 | a process; if memory is tight, the system will prefer to take memory |
2040 | from processes that are exceeding their declared resident set size. | | 2046 | from processes that are exceeding their declared resident set size. |
2041 | .It Li proc.pid.rlimit.memorylocked ( Dv PROC_PID_LIMIT_MEMLOCK ) | | 2047 | .It Li proc.pid.rlimit.memorylocked ( Dv PROC_PID_LIMIT_MEMLOCK ) |
2042 | The maximum size (in bytes) which a process may lock into memory | | 2048 | The maximum size (in bytes) which a process may lock into memory |
2043 | using the | | 2049 | using the |
2044 | .Xr mlock 2 | | 2050 | .Xr mlock 2 |
2045 | function. | | 2051 | function. |
2046 | .It Li proc.pid.rlimit.maxproc ( Dv PROC_PID_LIMIT_NPROC ) | | 2052 | .It Li proc.pid.rlimit.maxproc ( Dv PROC_PID_LIMIT_NPROC ) |
2047 | The maximum number of simultaneous processes for this user id. | | 2053 | The maximum number of simultaneous processes for this user id. |
2048 | .It Li proc.pid.rlimit.descriptors ( Dv PROC_PID_LIMIT_NOFILE ) | | 2054 | .It Li proc.pid.rlimit.descriptors ( Dv PROC_PID_LIMIT_NOFILE ) |
2049 | The maximum number of open files for this process. | | 2055 | The maximum number of open files for this process. |
2050 | .It Li proc.pid.rlimit.sbsize ( Dv PROC_PID_LIMIT_SBSIZE ) | | 2056 | .It Li proc.pid.rlimit.sbsize ( Dv PROC_PID_LIMIT_SBSIZE ) |
2051 | The maximum size (in bytes) of the socket buffers | | 2057 | The maximum size (in bytes) of the socket buffers |
2052 | set by the | | 2058 | set by the |
2053 | .Xr setsockopt 2 | | 2059 | .Xr setsockopt 2 |
2054 | .Dv SO_RCVBUF | | 2060 | .Dv SO_RCVBUF |
2055 | and | | 2061 | and |
2056 | .Dv SO_SNDBUF | | 2062 | .Dv SO_SNDBUF |
2057 | options. | | 2063 | options. |
2058 | .It Li proc.pid.rlimit.vmemoryuse ( Dv PROC_PID_LIMIT_AS ) | | 2064 | .It Li proc.pid.rlimit.vmemoryuse ( Dv PROC_PID_LIMIT_AS ) |
2059 | The maximum size (in bytes) which a process can obtain. | | 2065 | The maximum size (in bytes) which a process can obtain. |
2060 | .It Li proc.pid.rlimit.maxlwp ( Dv PROC_PID_LIMIT_NTHR ) | | 2066 | .It Li proc.pid.rlimit.maxlwp ( Dv PROC_PID_LIMIT_NTHR ) |
2061 | The maximum number of threads that cen be created and running at one time in | | 2067 | The maximum number of threads that cen be created and running at one time in |
2062 | the process. | | 2068 | the process. |
2063 | The first thread of each process is not counted against this. | | 2069 | The first thread of each process is not counted against this. |
2064 | .El | | 2070 | .El |
2065 | .Pp | | 2071 | .Pp |
2066 | The fifth level name is one of | | 2072 | The fifth level name is one of |
2067 | .Li soft ( Dv PROC_PID_LIMIT_TYPE_SOFT ) | | 2073 | .Li soft ( Dv PROC_PID_LIMIT_TYPE_SOFT ) |
2068 | or | | 2074 | or |
2069 | .Li hard ( Dv PROC_PID_LIMIT_TYPE_HARD ) , | | 2075 | .Li hard ( Dv PROC_PID_LIMIT_TYPE_HARD ) , |
2070 | to select respectively the soft or hard limit. | | 2076 | to select respectively the soft or hard limit. |
2071 | Both are of type integer. | | 2077 | Both are of type integer. |
2072 | .It Li proc.pid.stopfork ( Dv PROC_PID_STOPFORK ) | | 2078 | .It Li proc.pid.stopfork ( Dv PROC_PID_STOPFORK ) |
2073 | If non zero, the process' children will be stopped after | | 2079 | If non zero, the process' children will be stopped after |
2074 | .Xr fork 2 | | 2080 | .Xr fork 2 |
2075 | calls. | | 2081 | calls. |
2076 | The children is created in the SSTOP state and is never scheduled | | 2082 | The children is created in the SSTOP state and is never scheduled |
2077 | for running before being stopped. | | 2083 | for running before being stopped. |
2078 | This feature helps attaching a process with a debugger such as | | 2084 | This feature helps attaching a process with a debugger such as |
2079 | .Xr gdb 1 | | 2085 | .Xr gdb 1 |
2080 | before it had the opportunity to actually do anything. | | 2086 | before it had the opportunity to actually do anything. |
2081 | .Pp | | 2087 | .Pp |
2082 | This value is inherited by the process's children, and it also | | 2088 | This value is inherited by the process's children, and it also |
2083 | apply to emulation specific system calls that fork a new process, such as | | 2089 | apply to emulation specific system calls that fork a new process, such as |
2084 | .Fn sproc | | 2090 | .Fn sproc |
2085 | or | | 2091 | or |
2086 | .Fn clone . | | 2092 | .Fn clone . |
2087 | .It Li proc.pid.stopexec ( Dv PROC_PID_STOPEXEC ) | | 2093 | .It Li proc.pid.stopexec ( Dv PROC_PID_STOPEXEC ) |
2088 | If non zero, the process will be stopped on next | | 2094 | If non zero, the process will be stopped on next |
2089 | .Xr exec 3 | | 2095 | .Xr exec 3 |
2090 | call. | | 2096 | call. |
2091 | The process created by | | 2097 | The process created by |
2092 | .Xr exec 3 | | 2098 | .Xr exec 3 |
2093 | is created in the SSTOP state and is never scheduled for running | | 2099 | is created in the SSTOP state and is never scheduled for running |
2094 | before being stopped. | | 2100 | before being stopped. |
2095 | This feature helps attaching a process with a debugger such as | | 2101 | This feature helps attaching a process with a debugger such as |
2096 | .Xr gdb 1 | | 2102 | .Xr gdb 1 |
2097 | before it had the opportunity to actually do anything. | | 2103 | before it had the opportunity to actually do anything. |
2098 | .Pp | | 2104 | .Pp |
2099 | This value is inherited by the process's children. | | 2105 | This value is inherited by the process's children. |
2100 | .It Li proc.pid.stopexit ( Dv PROC_PID_STOPEXIT ) | | 2106 | .It Li proc.pid.stopexit ( Dv PROC_PID_STOPEXIT ) |
2101 | If non zero, the process will be stopped on when it has cause to exit, | | 2107 | If non zero, the process will be stopped on when it has cause to exit, |
2102 | either by way of calling | | 2108 | either by way of calling |
2103 | .Xr exit 3 , | | 2109 | .Xr exit 3 , |
2104 | .Xr _exit 2 , | | 2110 | .Xr _exit 2 , |
2105 | or by the receipt of a specific signal. | | 2111 | or by the receipt of a specific signal. |
2106 | The process is stopped before any of its resources or vm space is | | 2112 | The process is stopped before any of its resources or vm space is |
2107 | released allowing examination of the termination state of a process | | 2113 | released allowing examination of the termination state of a process |
2108 | before it disappears. | | 2114 | before it disappears. |
2109 | This feature can be used to examine the final conditions of the | | 2115 | This feature can be used to examine the final conditions of the |
2110 | process's vmspace via | | 2116 | process's vmspace via |
2111 | .Xr pmap 1 | | 2117 | .Xr pmap 1 |
2112 | or its resource settings with | | 2118 | or its resource settings with |
2113 | .Xr sysctl 8 | | 2119 | .Xr sysctl 8 |
2114 | before it disappears. | | 2120 | before it disappears. |
2115 | .Pp | | 2121 | .Pp |
2116 | This value is also inherited by the process's children. | | 2122 | This value is also inherited by the process's children. |
2117 | .El | | 2123 | .El |
2118 | .Ss The user.* subtree ( Dv CTL_USER ) | | 2124 | .Ss The user.* subtree ( Dv CTL_USER ) |
2119 | The string and integer information available for the | | 2125 | The string and integer information available for the |
2120 | .Li user | | 2126 | .Li user |
2121 | level is detailed below. | | 2127 | level is detailed below. |
2122 | The changeable column shows whether a process with appropriate | | 2128 | The changeable column shows whether a process with appropriate |
2123 | privilege may change the value. | | 2129 | privilege may change the value. |
2124 | .Bl -column "user.coll_weights_max" "integer" "Changeable" -offset indent | | 2130 | .Bl -column "user.coll_weights_max" "integer" "Changeable" -offset indent |
2125 | .It Sy Second level name Sy Type Sy Changeable | | 2131 | .It Sy Second level name Sy Type Sy Changeable |
2126 | .It user.atexit_max integer no | | 2132 | .It user.atexit_max integer no |
2127 | .It user.bc_base_max integer no | | 2133 | .It user.bc_base_max integer no |
2128 | .It user.bc_dim_max integer no | | 2134 | .It user.bc_dim_max integer no |
2129 | .It user.bc_scale_max integer no | | 2135 | .It user.bc_scale_max integer no |
2130 | .It user.bc_string_max integer no | | 2136 | .It user.bc_string_max integer no |
2131 | .It user.coll_weights_max integer no | | 2137 | .It user.coll_weights_max integer no |
2132 | .It user.cs_path string no | | 2138 | .It user.cs_path string no |
2133 | .It user.expr_nest_max integer no | | 2139 | .It user.expr_nest_max integer no |
2134 | .It user.line_max integer no | | 2140 | .It user.line_max integer no |
2135 | .It user.posix2_c_bind integer no | | 2141 | .It user.posix2_c_bind integer no |
2136 | .It user.posix2_c_dev integer no | | 2142 | .It user.posix2_c_dev integer no |
2137 | .It user.posix2_char_term integer no | | 2143 | .It user.posix2_char_term integer no |
2138 | .It user.posix2_fort_dev integer no | | 2144 | .It user.posix2_fort_dev integer no |
2139 | .It user.posix2_fort_run integer no | | 2145 | .It user.posix2_fort_run integer no |
2140 | .It user.posix2_localedef integer no | | 2146 | .It user.posix2_localedef integer no |
2141 | .It user.posix2_sw_dev integer no | | 2147 | .It user.posix2_sw_dev integer no |
2142 | .It user.posix2_upe integer no | | 2148 | .It user.posix2_upe integer no |
2143 | .It user.posix2_version integer no | | 2149 | .It user.posix2_version integer no |
2144 | .It user.re_dup_max integer no | | 2150 | .It user.re_dup_max integer no |
2145 | .It user.stream_max integer no | | 2151 | .It user.stream_max integer no |
2146 | .It user.stream_max integer no | | 2152 | .It user.stream_max integer no |
2147 | .It user.tzname_max integer no | | 2153 | .It user.tzname_max integer no |
2148 | .El | | 2154 | .El |
2149 | .Bl -tag -width "123456" | | 2155 | .Bl -tag -width "123456" |
2150 | .It Li user.atexit_max ( Dv USER_ATEXIT_MAX ) | | 2156 | .It Li user.atexit_max ( Dv USER_ATEXIT_MAX ) |
2151 | The maximum number of functions that may be registered with | | 2157 | The maximum number of functions that may be registered with |
2152 | .Xr atexit 3 . | | 2158 | .Xr atexit 3 . |
2153 | .It Li user.bc_base_max ( Dv USER_BC_BASE_MAX ) | | 2159 | .It Li user.bc_base_max ( Dv USER_BC_BASE_MAX ) |
2154 | The maximum ibase/obase values in the | | 2160 | The maximum ibase/obase values in the |
2155 | .Xr bc 1 | | 2161 | .Xr bc 1 |
2156 | utility. | | 2162 | utility. |
2157 | .It Li user.bc_dim_max ( Dv USER_BC_DIM_MAX ) | | 2163 | .It Li user.bc_dim_max ( Dv USER_BC_DIM_MAX ) |
2158 | The maximum array size in the | | 2164 | The maximum array size in the |
2159 | .Xr bc 1 | | 2165 | .Xr bc 1 |
2160 | utility. | | 2166 | utility. |
2161 | .It Li user.bc_scale_max ( Dv USER_BC_SCALE_MAX ) | | 2167 | .It Li user.bc_scale_max ( Dv USER_BC_SCALE_MAX ) |
2162 | The maximum scale value in the | | 2168 | The maximum scale value in the |
2163 | .Xr bc 1 | | 2169 | .Xr bc 1 |
2164 | utility. | | 2170 | utility. |
2165 | .It Li user.bc_string_max ( Dv USER_BC_STRING_MAX ) | | 2171 | .It Li user.bc_string_max ( Dv USER_BC_STRING_MAX ) |
2166 | The maximum string length in the | | 2172 | The maximum string length in the |
2167 | .Xr bc 1 | | 2173 | .Xr bc 1 |
2168 | utility. | | 2174 | utility. |
2169 | .It Li user.coll_weights_max ( Dv USER_COLL_WEIGHTS_MAX ) | | 2175 | .It Li user.coll_weights_max ( Dv USER_COLL_WEIGHTS_MAX ) |
2170 | The maximum number of weights that can be assigned to any entry of | | 2176 | The maximum number of weights that can be assigned to any entry of |
2171 | the LC_COLLATE order keyword in the locale definition file. | | 2177 | the LC_COLLATE order keyword in the locale definition file. |
2172 | .It Li user.cs_path ( USER_CS_PATH ) | | 2178 | .It Li user.cs_path ( USER_CS_PATH ) |
2173 | Return a value for the | | 2179 | Return a value for the |
2174 | .Ev PATH | | 2180 | .Ev PATH |
2175 | environment variable that finds all the standard utilities. | | 2181 | environment variable that finds all the standard utilities. |
2176 | .It Li user.expr_nest_max ( Dv USER_EXPR_NEST_MAX ) | | 2182 | .It Li user.expr_nest_max ( Dv USER_EXPR_NEST_MAX ) |
2177 | The maximum number of expressions that can be nested within | | 2183 | The maximum number of expressions that can be nested within |
2178 | parenthesis by the | | 2184 | parenthesis by the |
2179 | .Xr expr 1 | | 2185 | .Xr expr 1 |
2180 | utility. | | 2186 | utility. |
2181 | .It Li user.line_max ( Dv USER_LINE_MAX ) | | 2187 | .It Li user.line_max ( Dv USER_LINE_MAX ) |
2182 | The maximum length in bytes of a text-processing utility's input | | 2188 | The maximum length in bytes of a text-processing utility's input |
2183 | line. | | 2189 | line. |
2184 | .It Li user.posix2_char_term ( Dv USER_POSIX2_CHAR_TERM ) | | 2190 | .It Li user.posix2_char_term ( Dv USER_POSIX2_CHAR_TERM ) |
2185 | Return 1 if the system supports at least one terminal type capable of | | 2191 | Return 1 if the system supports at least one terminal type capable of |
2186 | all operations described in | | 2192 | all operations described in |
2187 | .St -p1003.2 , | | 2193 | .St -p1003.2 , |
2188 | otherwise\ 0. | | 2194 | otherwise\ 0. |
2189 | .It Li user.posix2_c_bind ( Dv USER_POSIX2_C_BIND ) | | 2195 | .It Li user.posix2_c_bind ( Dv USER_POSIX2_C_BIND ) |
2190 | Return 1 if the system's C-language development facilities support the | | 2196 | Return 1 if the system's C-language development facilities support the |
2191 | C-Language Bindings Option, otherwise\ 0. | | 2197 | C-Language Bindings Option, otherwise\ 0. |
2192 | .It Li user.posix2_c_dev ( Dv USER_POSIX2_C_DEV ) | | 2198 | .It Li user.posix2_c_dev ( Dv USER_POSIX2_C_DEV ) |
2193 | Return 1 if the system supports the C-Language Development Utilities Option, | | 2199 | Return 1 if the system supports the C-Language Development Utilities Option, |
2194 | otherwise\ 0. | | 2200 | otherwise\ 0. |
2195 | .It Li user.posix2_fort_dev ( Dv USER_POSIX2_FORT_DEV ) | | 2201 | .It Li user.posix2_fort_dev ( Dv USER_POSIX2_FORT_DEV ) |
2196 | Return 1 if the system supports the FORTRAN Development Utilities Option, | | 2202 | Return 1 if the system supports the FORTRAN Development Utilities Option, |
2197 | otherwise\ 0. | | 2203 | otherwise\ 0. |
2198 | .It Li user.posix2_fort_run ( Dv USER_POSIX2_FORT_RUN ) | | 2204 | .It Li user.posix2_fort_run ( Dv USER_POSIX2_FORT_RUN ) |
2199 | Return 1 if the system supports the FORTRAN Runtime Utilities Option, | | 2205 | Return 1 if the system supports the FORTRAN Runtime Utilities Option, |
2200 | otherwise\ 0. | | 2206 | otherwise\ 0. |
2201 | .It Li user.posix2_localedef ( Dv USER_POSIX2_LOCALEDEF ) | | 2207 | .It Li user.posix2_localedef ( Dv USER_POSIX2_LOCALEDEF ) |
2202 | Return 1 if the system supports the creation of locales, otherwise\ 0. | | 2208 | Return 1 if the system supports the creation of locales, otherwise\ 0. |
2203 | .It Li user.posix2_sw_dev ( Dv USER_POSIX2_SW_DEV ) | | 2209 | .It Li user.posix2_sw_dev ( Dv USER_POSIX2_SW_DEV ) |
2204 | Return 1 if the system supports the Software Development Utilities Option, | | 2210 | Return 1 if the system supports the Software Development Utilities Option, |
2205 | otherwise\ 0. | | 2211 | otherwise\ 0. |
2206 | .It Li user.posix2_upe ( Dv USER_POSIX2_UPE ) | | 2212 | .It Li user.posix2_upe ( Dv USER_POSIX2_UPE ) |
2207 | Return 1 if the system supports the User Portability Utilities Option, | | 2213 | Return 1 if the system supports the User Portability Utilities Option, |
2208 | otherwise\ 0. | | 2214 | otherwise\ 0. |
2209 | .It Li user.posix2_version ( Dv USER_POSIX2_VERSION ) | | 2215 | .It Li user.posix2_version ( Dv USER_POSIX2_VERSION ) |
2210 | The version of | | 2216 | The version of |
2211 | .St -p1003.2 | | 2217 | .St -p1003.2 |
2212 | with which the system attempts to comply. | | 2218 | with which the system attempts to comply. |
2213 | .It Li user.re_dup_max ( Dv USER_RE_DUP_MAX ) | | 2219 | .It Li user.re_dup_max ( Dv USER_RE_DUP_MAX ) |
2214 | The maximum number of repeated occurrences of a regular expression | | 2220 | The maximum number of repeated occurrences of a regular expression |
2215 | permitted when using interval notation. | | 2221 | permitted when using interval notation. |
2216 | .It Li user.stream_max ( Dv USER_STREAM_MAX ) | | 2222 | .It Li user.stream_max ( Dv USER_STREAM_MAX ) |
2217 | The minimum maximum number of streams that a process may have open | | 2223 | The minimum maximum number of streams that a process may have open |
2218 | at any one time. | | 2224 | at any one time. |
2219 | .It Li user.tzname_max ( Dv USER_TZNAME_MAX ) | | 2225 | .It Li user.tzname_max ( Dv USER_TZNAME_MAX ) |
2220 | The minimum maximum number of types supported for the name of a | | 2226 | The minimum maximum number of types supported for the name of a |
2221 | timezone. | | 2227 | timezone. |
2222 | .El | | 2228 | .El |
2223 | .Ss The vm.* subtree ( Dv CTL_VM ) | | 2229 | .Ss The vm.* subtree ( Dv CTL_VM ) |
2224 | The string and integer information available for the | | 2230 | The string and integer information available for the |
2225 | .Li vm | | 2231 | .Li vm |
2226 | level is detailed below. | | 2232 | level is detailed below. |
2227 | The changeable column shows whether a process with appropriate | | 2233 | The changeable column shows whether a process with appropriate |
2228 | privilege may change the value. | | 2234 | privilege may change the value. |
2229 | .Bl -column "Second level name" "struct uvmexp_sysctl" "Changeable" -offset indent | | 2235 | .Bl -column "Second level name" "struct uvmexp_sysctl" "Changeable" -offset indent |
2230 | .It Sy Second level name Sy Type Sy Changeable | | 2236 | .It Sy Second level name Sy Type Sy Changeable |
2231 | .It vm.anonmax int yes | | 2237 | .It vm.anonmax int yes |
2232 | .It vm.anonmin int yes | | 2238 | .It vm.anonmin int yes |
2233 | .It vm.bufcache int yes | | 2239 | .It vm.bufcache int yes |
2234 | .It vm.bufmem int no | | 2240 | .It vm.bufmem int no |
2235 | .It vm.bufmem_hiwater int yes | | 2241 | .It vm.bufmem_hiwater int yes |
2236 | .It vm.bufmem_lowater int yes | | 2242 | .It vm.bufmem_lowater int yes |
2237 | .It vm.execmax int yes | | 2243 | .It vm.execmax int yes |
2238 | .It vm.execmin int yes | | 2244 | .It vm.execmin int yes |
2239 | .It vm.filemax int yes | | 2245 | .It vm.filemax int yes |
2240 | .It vm.filemin int yes | | 2246 | .It vm.filemin int yes |
2241 | .It vm.loadavg struct loadavg no | | 2247 | .It vm.loadavg struct loadavg no |
2242 | .It vm.maxslp int no | | 2248 | .It vm.maxslp int no |
2243 | .It vm.nkmempages int no | | 2249 | .It vm.nkmempages int no |
2244 | .It vm.uspace int no | | 2250 | .It vm.uspace int no |
2245 | .It vm.uvmexp struct uvmexp no | | 2251 | .It vm.uvmexp struct uvmexp no |
2246 | .It vm.uvmexp2 struct uvmexp_sysctl no | | 2252 | .It vm.uvmexp2 struct uvmexp_sysctl no |
2247 | .It vm.vmmeter struct vmtotal no | | 2253 | .It vm.vmmeter struct vmtotal no |
2248 | .It vm.proc.map struct kinfo_vmentry no | | 2254 | .It vm.proc.map struct kinfo_vmentry no |
2249 | .El | | 2255 | .El |
2250 | .Bl -tag -width "123456" | | 2256 | .Bl -tag -width "123456" |
2251 | .It Li vm.anonmax ( Dv VM_ANONMAX ) | | 2257 | .It Li vm.anonmax ( Dv VM_ANONMAX ) |
2252 | The percentage of physical memory which will be reclaimed | | 2258 | The percentage of physical memory which will be reclaimed |
2253 | from other types of memory usage to store anonymous application data. | | 2259 | from other types of memory usage to store anonymous application data. |
2254 | .It Li vm.anonmin ( Dv VM_ANONMIN ) | | 2260 | .It Li vm.anonmin ( Dv VM_ANONMIN ) |
2255 | The percentage of physical memory which will be always be available for | | 2261 | The percentage of physical memory which will be always be available for |
2256 | anonymous application data. | | 2262 | anonymous application data. |
2257 | .It Li vm.bufcache ( Dv VM_BUFCACHE ) | | 2263 | .It Li vm.bufcache ( Dv VM_BUFCACHE ) |
2258 | The percentage of physical memory which will be available | | 2264 | The percentage of physical memory which will be available |
2259 | for the buffer cache. | | 2265 | for the buffer cache. |
2260 | .It Li vm.bufmem ( Dv VM_BUFMEM ) | | 2266 | .It Li vm.bufmem ( Dv VM_BUFMEM ) |
2261 | The amount of kernel memory that is being used by the buffer cache. | | 2267 | The amount of kernel memory that is being used by the buffer cache. |
2262 | .It Li vm.bufmem_lowater ( Dv VM_BUFMEM_LOWATER ) | | 2268 | .It Li vm.bufmem_lowater ( Dv VM_BUFMEM_LOWATER ) |
2263 | The minimum amount of kernel memory to reserve for the | | 2269 | The minimum amount of kernel memory to reserve for the |
2264 | buffer cache. | | 2270 | buffer cache. |
2265 | .It Li vm.bufmem_hiwater ( Dv VM_BUFMEM_HIWATER ) | | 2271 | .It Li vm.bufmem_hiwater ( Dv VM_BUFMEM_HIWATER ) |
2266 | The maximum amount of kernel memory to be used for the | | 2272 | The maximum amount of kernel memory to be used for the |
2267 | buffer cache. | | 2273 | buffer cache. |
2268 | .It Li vm.execmax ( Dv VM_EXECMAX ) | | 2274 | .It Li vm.execmax ( Dv VM_EXECMAX ) |
2269 | The percentage of physical memory which will be reclaimed | | 2275 | The percentage of physical memory which will be reclaimed |
2270 | from other types of memory usage to store cached executable data. | | 2276 | from other types of memory usage to store cached executable data. |
2271 | .It Li vm.execmin ( Dv VM_EXECMIN ) | | 2277 | .It Li vm.execmin ( Dv VM_EXECMIN ) |
2272 | The percentage of physical memory which will be always be available for | | 2278 | The percentage of physical memory which will be always be available for |
2273 | cached executable data. | | 2279 | cached executable data. |
2274 | .It Li vm.filemax ( Dv VM_FILEMAX ) | | 2280 | .It Li vm.filemax ( Dv VM_FILEMAX ) |
2275 | The percentage of physical memory which will be reclaimed | | 2281 | The percentage of physical memory which will be reclaimed |
2276 | from other types of memory usage to store cached file data. | | 2282 | from other types of memory usage to store cached file data. |
2277 | .It Li vm.filemin ( Dv VM_FILEMIN ) | | 2283 | .It Li vm.filemin ( Dv VM_FILEMIN ) |
2278 | The percentage of physical memory which will be always be available for | | 2284 | The percentage of physical memory which will be always be available for |
2279 | cached file data. | | 2285 | cached file data. |
2280 | .It Li vm.loadavg ( Dv VM_LOADAVG ) | | 2286 | .It Li vm.loadavg ( Dv VM_LOADAVG ) |
2281 | Return the load average history. | | 2287 | Return the load average history. |
2282 | The returned data consists of a | | 2288 | The returned data consists of a |
2283 | .Vt struct loadavg . | | 2289 | .Vt struct loadavg . |
2284 | .It Li vm.maxslp ( Dv VM_MAXSLP ) | | 2290 | .It Li vm.maxslp ( Dv VM_MAXSLP ) |
2285 | The value of the maxslp kernel global variable. | | 2291 | The value of the maxslp kernel global variable. |
2286 | .It Li vm.vmmeter ( Dv VM_METER ) | | 2292 | .It Li vm.vmmeter ( Dv VM_METER ) |
2287 | Return system wide virtual memory statistics. | | 2293 | Return system wide virtual memory statistics. |
2288 | The returned data consists of a | | 2294 | The returned data consists of a |
2289 | .Vt struct vmtotal . | | 2295 | .Vt struct vmtotal . |
2290 | .It vm.user_va0_disable | | 2296 | .It vm.user_va0_disable |
2291 | A flag which controls whether user processes can map virtual address\ 0. | | 2297 | A flag which controls whether user processes can map virtual address\ 0. |
2292 | .It Li vm.proc.map ( Dv VM_PROC ) | | 2298 | .It Li vm.proc.map ( Dv VM_PROC ) |
2293 | The third level is | | 2299 | The third level is |
2294 | .dv VM_PROC_MAP , | | 2300 | .dv VM_PROC_MAP , |
2295 | the fourth is the pid of the process to display the vm object entries for, and | | 2301 | the fourth is the pid of the process to display the vm object entries for, and |
2296 | the fifth is the size of | | 2302 | the fifth is the size of |
2297 | .Vt struct kinfo_vmentry . | | 2303 | .Vt struct kinfo_vmentry . |
2298 | Returns an array of | | 2304 | Returns an array of |
2299 | .Vt struct kinfo_vmentry | | 2305 | .Vt struct kinfo_vmentry |
2300 | objects. | | 2306 | objects. |
2301 | .It Li vm.uspace ( Dv VM_USPACE ) | | 2307 | .It Li vm.uspace ( Dv VM_USPACE ) |
2302 | The number of bytes allocated for each kernel stack. | | 2308 | The number of bytes allocated for each kernel stack. |
2303 | .It Li vm.uvmexp ( Dv VM_UVMEXP ) | | 2309 | .It Li vm.uvmexp ( Dv VM_UVMEXP ) |
2304 | Return system wide virtual memory statistics. | | 2310 | Return system wide virtual memory statistics. |
2305 | The returned data consists of a | | 2311 | The returned data consists of a |
2306 | .Vt struct uvmexp . | | 2312 | .Vt struct uvmexp . |
2307 | .It Li vm.uvmexp2 ( Dv VM_UVMEXP2 ) | | 2313 | .It Li vm.uvmexp2 ( Dv VM_UVMEXP2 ) |
2308 | Return system wide virtual memory statistics. | | 2314 | Return system wide virtual memory statistics. |
2309 | The returned data consists of a | | 2315 | The returned data consists of a |
2310 | .Vt struct uvmexp_sysctl . | | 2316 | .Vt struct uvmexp_sysctl . |
2311 | .\" XXX vm.idlezero | | 2317 | .\" XXX vm.idlezero |
2312 | .El | | 2318 | .El |
2313 | .Ss The ddb.* subtree ( Dv CTL_DDB ) | | 2319 | .Ss The ddb.* subtree ( Dv CTL_DDB ) |
2314 | The information available for the | | 2320 | The information available for the |
2315 | .Li ddb | | 2321 | .Li ddb |
2316 | level is detailed below. | | 2322 | level is detailed below. |
2317 | The changeable column shows whether a process with appropriate | | 2323 | The changeable column shows whether a process with appropriate |
2318 | privilege may change the value. | | 2324 | privilege may change the value. |
2319 | .\" XXX sort | | 2325 | .\" XXX sort |
2320 | .Bl -column "Second level name" "integer" "Changeable" -offset indent | | 2326 | .Bl -column "Second level name" "integer" "Changeable" -offset indent |
2321 | .It Sy Second level name Sy Type Sy Changeable | | 2327 | .It Sy Second level name Sy Type Sy Changeable |
2322 | .It ddb.radix integer yes | | 2328 | .It ddb.radix integer yes |
2323 | .It ddb.maxoff integer yes | | 2329 | .It ddb.maxoff integer yes |
2324 | .It ddb.maxwidth integer yes | | 2330 | .It ddb.maxwidth integer yes |
2325 | .It ddb.lines integer yes | | 2331 | .It ddb.lines integer yes |
2326 | .It ddb.tabstops integer yes | | 2332 | .It ddb.tabstops integer yes |
2327 | .It ddb.onpanic integer yes | | 2333 | .It ddb.onpanic integer yes |
2328 | .It ddb.fromconsole integer yes | | 2334 | .It ddb.fromconsole integer yes |
2329 | .It ddb.tee_msgbuf integer yes | | 2335 | .It ddb.tee_msgbuf integer yes |
2330 | .It ddb.commandonenter string yes | | 2336 | .It ddb.commandonenter string yes |
2331 | .El | | 2337 | .El |
2332 | .Bl -tag -width "123456" | | 2338 | .Bl -tag -width "123456" |
2333 | .It Li ddb.radix ( Dv DDBCTL_RADIX ) | | 2339 | .It Li ddb.radix ( Dv DDBCTL_RADIX ) |
2334 | The input and output radix. | | 2340 | The input and output radix. |
2335 | .It Li ddb.maxoff ( Dv DDBCTL_MAXOFF ) | | 2341 | .It Li ddb.maxoff ( Dv DDBCTL_MAXOFF ) |
2336 | The maximum symbol offset. | | 2342 | The maximum symbol offset. |
2337 | .It Li ddb.maxwidth ( Dv DDBCTL_MAXWIDTH ) | | 2343 | .It Li ddb.maxwidth ( Dv DDBCTL_MAXWIDTH ) |
2338 | The maximum output line width. | | 2344 | The maximum output line width. |
2339 | .It Li ddb.lines ( Dv DDBCTL_LINES ) | | 2345 | .It Li ddb.lines ( Dv DDBCTL_LINES ) |
2340 | Number of display lines. | | 2346 | Number of display lines. |
2341 | .It Li ddb.tabstops ( Dv DDBCTL_TABSTOPS ) | | 2347 | .It Li ddb.tabstops ( Dv DDBCTL_TABSTOPS ) |
2342 | Tab width. | | 2348 | Tab width. |
2343 | .It Li ddb.onpanic ( Dv DDBCTL_ONPANIC ) | | 2349 | .It Li ddb.onpanic ( Dv DDBCTL_ONPANIC ) |
2344 | If greater than zero, DDB will be entered if the kernel panics. | | 2350 | If greater than zero, DDB will be entered if the kernel panics. |
2345 | A value of 1 causes the system to enter DDB on panic, while a value of 2 | | 2351 | A value of 1 causes the system to enter DDB on panic, while a value of 2 |
2346 | causes the kernel to attempt to print out a stack trace before entering DDB. | | 2352 | causes the kernel to attempt to print out a stack trace before entering DDB. |
2347 | A value of 0 causes the kernel to attempt to print a stack trace, then | | 2353 | A value of 0 causes the kernel to attempt to print a stack trace, then |
2348 | reboot, while a value of \-1 means neither a stack trace will be printed | | 2354 | reboot, while a value of \-1 means neither a stack trace will be printed |
2349 | nor DDB entered. | | 2355 | nor DDB entered. |
2350 | .It Li ddb.fromconsole ( Dv DDBCTL_FROMCONSOLE ) | | 2356 | .It Li ddb.fromconsole ( Dv DDBCTL_FROMCONSOLE ) |
2351 | If not zero, DDB may be entered by sending a break on a serial | | 2357 | If not zero, DDB may be entered by sending a break on a serial |
2352 | console or by a special key sequence on a graphics console. | | 2358 | console or by a special key sequence on a graphics console. |
2353 | .It Li ddb.tee_msgbuf | | 2359 | .It Li ddb.tee_msgbuf |
2354 | If not zero, DDB will output also to the kernel message buffer. | | 2360 | If not zero, DDB will output also to the kernel message buffer. |
2355 | .It Li ddb.commandonenter | | 2361 | .It Li ddb.commandonenter |
2356 | If not empty, a command to be executed on each enter to the | | 2362 | If not empty, a command to be executed on each enter to the |
2357 | .Tn DDB . | | 2363 | .Tn DDB . |
2358 | .\" | | 2364 | .\" |
2359 | .\" XXX: (a) ddb.commandonenter is missing in ddb(4); | | 2365 | .\" XXX: (a) ddb.commandonenter is missing in ddb(4); |
2360 | .\" (b) No DDBCTL definitions for tee_msgbuf and commandonenter. | | 2366 | .\" (b) No DDBCTL definitions for tee_msgbuf and commandonenter. |
2361 | .El | | 2367 | .El |
2362 | .Pp | | 2368 | .Pp |
2363 | Some of these | | 2369 | Some of these |
2364 | .Tn MIB | | 2370 | .Tn MIB |
2365 | nodes are also available as variables from within the debugger. | | 2371 | nodes are also available as variables from within the debugger. |
2366 | See | | 2372 | See |
2367 | .Xr ddb 4 | | 2373 | .Xr ddb 4 |
2368 | for more details. | | 2374 | for more details. |
2369 | .Ss The security.* subtree ( Dv CTL_SECURITY ) | | 2375 | .Ss The security.* subtree ( Dv CTL_SECURITY ) |
2370 | The | | 2376 | The |
2371 | .Li security | | 2377 | .Li security |
2372 | level contains various security-related settings for | | 2378 | level contains various security-related settings for |
2373 | the system. | | 2379 | the system. |
2374 | The available second level names are: | | 2380 | The available second level names are: |
2375 | .Bl -column "Second level name" "integer" "Changeable" -offset indent | | 2381 | .Bl -column "Second level name" "integer" "Changeable" -offset indent |
2376 | .It Sy Second level name Sy Type Sy Changeable | | 2382 | .It Sy Second level name Sy Type Sy Changeable |