| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: sysctl.7,v 1.53 2010/12/14 16:23:59 jruoho Exp $ | | 1 | .\" $NetBSD: sysctl.7,v 1.54 2011/01/09 16:55:59 christos 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 |
| @@ -19,27 +19,27 @@ | | | @@ -19,27 +19,27 @@ |
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 December 14, 2010 | | 32 | .Dd January 9, 2010 |
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 |
| @@ -123,34 +123,48 @@ Note that the dynamic implementation of | | | @@ -123,34 +123,48 @@ Note that the dynamic implementation of |
123 | currently in use largely makes this particular | | 123 | currently in use largely makes this particular |
124 | .Nm | | 124 | .Nm |
125 | interface obsolete. | | 125 | interface obsolete. |
126 | See | | 126 | See |
127 | .Xr sysctl 8 | | 127 | .Xr sysctl 8 |
128 | .\" and | | 128 | .\" and |
129 | .\" .Xr sysctl 9 | | 129 | .\" .Xr sysctl 9 |
130 | for more information. | | 130 | for more information. |
131 | .Ss The vfs.* subtree | | 131 | .Ss The vfs.* subtree |
132 | A distinguished second level name, | | 132 | A distinguished second level name, |
133 | .Li vfs.generic ( VFS_GENERIC ) , | | 133 | .Li vfs.generic ( VFS_GENERIC ) , |
134 | is used to get general information about all filesystems. | | 134 | is used to get general information about all filesystems. |
135 | It has the following third level identifiers: | | 135 | It has the following third level identifiers: |
136 | .Bl -tag -width compact | | 136 | .Bl -tag -width "vfs.generic.maxtypenum (VFS_MAXTYPENUM)" |
137 | .It vfs.generic.maxtypenum ( VFS_MAXTYPENUM ) | | 137 | .It vfs.generic.maxtypenum ( VFS_MAXTYPENUM ) |
138 | The highest valid filesystem type number. | | 138 | The highest valid filesystem type number. |
139 | .It vfs.generic.conf ( VFS_CONF ) | | 139 | .It vfs.generic.conf ( VFS_CONF ) |
140 | Returns configuration information about the file-system type given as a fourth | | 140 | Returns configuration information about the file-system type given as a fourth |
141 | level identifier. | | 141 | level identifier. |
142 | .El | | 142 | .El |
143 | .Pp | | 143 | .Pp |
| | | 144 | A second level name for controlling the |
| | | 145 | .Xr wapbl 4 |
| | | 146 | (Write Ahead Physical Block Logging file system journalling) |
| | | 147 | capabilities with the following third level identifiers: |
| | | 148 | .Bl -tag -width "vfs.wapbl.flush_disk_cache" |
| | | 149 | .It vfs.wapbl.flush_disk_cache Controls whether to attempt to flush the |
| | | 150 | disk cache on each commit. |
| | | 151 | It defaults to 1 and it should always be on to ensure data integrity in |
| | | 152 | case of a crash. |
| | | 153 | For slow disks, turning it off can improve performance. |
| | | 154 | .It vfs.wapbl.verbose_commit For each transaction log commit, print the |
| | | 155 | number of bytes written and the time it took to commit as seconds.nanoseconds. |
| | | 156 | .El |
| | | 157 | .Pp |
144 | The remaining second level identifiers are the file-system names, identified | | 158 | The remaining second level identifiers are the file-system names, identified |
145 | by the type number returned by a | | 159 | by the type number returned by a |
146 | .Xr statvfs 2 | | 160 | .Xr statvfs 2 |
147 | call or from | | 161 | call or from |
148 | .Li vfs.generic.conf . | | 162 | .Li vfs.generic.conf . |
149 | The third level identifiers available for each filesystem | | 163 | The third level identifiers available for each filesystem |
150 | are given in the header file that defines the mount | | 164 | are given in the header file that defines the mount |
151 | argument structure for that filesystem. | | 165 | argument structure for that filesystem. |
152 | .Ss The hw.* subtree | | 166 | .Ss The hw.* subtree |
153 | The string and integer information available for the | | 167 | The string and integer information available for the |
154 | .Li hw | | 168 | .Li hw |
155 | level is detailed below. | | 169 | level is detailed below. |
156 | The changeable column shows whether a process with appropriate | | 170 | The changeable column shows whether a process with appropriate |