|
Lines 223-228
Link Here
|
| 223 |
mount -o async /dev/da0s1d.journal /mnt || \e |
223 |
mount -o async /dev/da0s1d.journal /mnt || \e |
| 224 |
mount /dev/da0s1d /mnt |
224 |
mount /dev/da0s1d /mnt |
| 225 |
.Ed |
225 |
.Ed |
|
|
226 |
.Sh SYSCTLS |
| 227 |
gjournal adds the sysctl level kern.geom.journal |
| 228 |
The string and integer information available |
| 229 |
is detailed below. |
| 230 |
The changeable column shows whether a process with appropriate |
| 231 |
privilege may change the value. |
| 232 |
.Bl -column "accept_immediatelyXXXXXX" integerXXX -offset indent |
| 233 |
.It Sy "sysctl name Type Changeable" |
| 234 |
.It "debug integer yes" |
| 235 |
.It "switch_time integer yes" |
| 236 |
.It "force_switch integer yes" |
| 237 |
.It "parallel_flushes integer yes" |
| 238 |
.It "accept_immediately integer yes" |
| 239 |
.It "parallel_copies integer yes" |
| 240 |
.It "record_entries integer yes" |
| 241 |
.It "optimize integer yes" |
| 242 |
.E1 |
| 243 |
.Pp |
| 244 |
.B1 -tag -width 6n |
| 245 |
.It Li debug |
| 246 |
Setting a non-zero value enables debugging at various levels. Debug level 1 will record actions at a journal level, relating to journal switches, metadata updates etc. Debug level 2 will record actions at a higher level, relating to the numbers of entries in journals, access requests etc. Debug level 3 will record verbose detail, including insetion of I/Os to the journal. |
| 247 |
.It Li switch_time |
| 248 |
The maximum number of seconds a journal is allowed to remain open before switching to a new journal. |
| 249 |
.It Li force_switch |
| 250 |
Force a journal switch when the journal uses more than N% of the free journal space. |
| 251 |
.It Li parallel_flushes |
| 252 |
The number of flush I/O requests to be sent in parallel when flushing the journal to the data provider. |
| 253 |
.It Li accept_immediately |
| 254 |
The maximum number of I/O requests accepted at the same time. |
| 255 |
.It Li parallel_copies |
| 256 |
The number of copy I/O requests to send in parallel. |
| 257 |
.It Li record_entries |
| 258 |
The maximum number of record entries to allow in a single journal. |
| 259 |
.It Li optimize |
| 260 |
Controls whether entries in a journal will be optimized, by combining overlapping I/Os into a single I/O, and reordering the entries in a journal. This can be disabled by setting the sysctl to 0. |
| 261 |
.E1 |
| 262 |
.Ss cache |
| 263 |
The string and integer information available for the cache level |
| 264 |
is detailed below. |
| 265 |
The changeable column shows whether a process with appropriate |
| 266 |
privilege may change the value. |
| 267 |
.Bl -column "alloc_failuresXXXXXX" integerXXX -offset indent |
| 268 |
.It Sy "sysctl name Type Changeable" |
| 269 |
.It "used integer no" |
| 270 |
.It "limit integer yes" |
| 271 |
.It "divisor integer no" |
| 272 |
.It "switch integer yes" |
| 273 |
.It "misses integer yes" |
| 274 |
.It "alloc_failures integer yes" |
| 275 |
.E1 |
| 276 |
.Pp |
| 277 |
.B1 -tag -width 6n |
| 278 |
.It Li used |
| 279 |
The number of bytes currently allocated to the cache. |
| 280 |
.It Li limit |
| 281 |
The maximum number of bytes to be allocated to the cache. |
| 282 |
.It Li divisor |
| 283 |
Sets the cache size to be used as a proportion of kmem_size. A value of 2 (the default) will cause the cache size to be set to 1/2 of the kmem_size. |
| 284 |
.It Li switch |
| 285 |
Force a journal switch when this percentage of cache has been used. |
| 286 |
.It Li misses |
| 287 |
The number of cache misses, when data has been read, but was not found in the cache. |
| 288 |
.It Li alloc_failures |
| 289 |
The number of times memory failed to be allocated to the cache because the cache limit was hit. |
| 290 |
.E1 |
| 291 |
.Ss statistics |
| 292 |
The string and integer information available for the statistics level |
| 293 |
is detailed below. |
| 294 |
The changeable column shows whether a process with appropriate |
| 295 |
privilege may change the value. |
| 296 |
.Bl -column "skipped_bytesXXXXXX" integerXXX -offset indent |
| 297 |
.It Sy "sysctl name Type Changeable" |
| 298 |
.It "skipped_bytes integer yes" |
| 299 |
.It "combined_ios integer yes" |
| 300 |
.It "switches integer yes" |
| 301 |
.It "wait_for_copy integer yes" |
| 302 |
.It "journal_full integer yes" |
| 303 |
.It "low_mem integer yes" |
| 304 |
.E1 |
| 305 |
.Pp |
| 306 |
.B1 -tag -width 6n |
| 307 |
.It Li skipped_bytes |
| 308 |
The number of bytes skipped. |
| 309 |
.It Li combined_ios |
| 310 |
The number of I/Os which were combined by journal optimization. |
| 311 |
.It Li switches |
| 312 |
The number of journal switches. |
| 313 |
.It Li wait_for_copy |
| 314 |
The number of times the journal switch process had to wait for the previous journal copy to complete. |
| 315 |
.It Li journal_full |
| 316 |
The number of times the journal was almost full, forcing a journal switch. |
| 317 |
.It Li low_mem |
| 318 |
The number of times the low_mem hook was called. |
| 319 |
.E1 |
| 226 |
.Sh SEE ALSO |
320 |
.Sh SEE ALSO |
| 227 |
.Xr geom 4 , |
321 |
.Xr geom 4 , |
| 228 |
.Xr geom 8 , |
322 |
.Xr geom 8 , |
|
Lines 237-243
Link Here
|
| 237 |
.Fx 7.0 . |
331 |
.Fx 7.0 . |
| 238 |
.Sh AUTHORS |
332 |
.Sh AUTHORS |
| 239 |
.An Pawel Jakub Dawidek Aq pjd@FreeBSD.org |
333 |
.An Pawel Jakub Dawidek Aq pjd@FreeBSD.org |
| 240 |
.Sh BUGS |
|
|
| 241 |
Documentation for sysctls |
| 242 |
.Va kern.geom.journal.* |
| 243 |
is missing. |