Skip to content

Commit 56b2669

Browse files
committed
zpool-events.8: document zio_type and zio_priority
Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Signed-off-by: Rob Norris <[email protected]>
1 parent bf85b63 commit 56b2669

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

man/man8/zpool-events.8

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
2727
.\" Copyright 2017 Nexenta Systems, Inc.
2828
.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
29-
.\" Copyright (c) 2024, Klara Inc.
29+
.\" Copyright (c) 2024, 2025, Klara, Inc.
3030
.\"
31-
.Dd February 28, 2024
31+
.Dd May 27, 2025
3232
.Dt ZPOOL-EVENTS 8
3333
.Os
3434
.
@@ -308,6 +308,16 @@ The valid pipeline stages for the I/O.
308308
See the
309309
.Sy I/O STAGES
310310
section for a full list of all the I/O stages.
311+
.It Sy zio_priority
312+
The queue priority of the I/O request.
313+
See the
314+
.Sy I/O PRIORITIES
315+
section for a full list of all the I/O priorities.
316+
.It Sy zio_tyoe
317+
The type of the I/O request.
318+
See the
319+
.Sy I/O TYPES
320+
section for a full list of all the I/O types.
311321
.It Sy zio_delay
312322
The time elapsed (in nanoseconds) waiting for the block layer to complete the
313323
I/O request.
@@ -477,6 +487,51 @@ ZIO_FLAG_DELEGATED:0x40000000
477487
ZIO_FLAG_FASTWRITE:0x80000000
478488
.TE
479489
.
490+
.Sh I/O TYPES
491+
Every I/O request in the pipeline has a single type value.
492+
This value describes the kind of low-level work the I/O represents.
493+
This value will be set in an event as a
494+
.Sy zio_type
495+
payload entry.
496+
.Pp
497+
.TS
498+
tab(:);
499+
l l l .
500+
Type:Value:Description
501+
_:_:_
502+
ZIO_TYPE_NULL:0x0:internal I/O sync point
503+
ZIO_TYPE_READ:0x1:data read
504+
ZIO_TYPE_WRITE:0x2:data write
505+
ZIO_TYPE_FREE:0x3:block free
506+
ZIO_TYPE_CLAIM:0x4:block claim (ZIL replay)
507+
ZIO_TYPE_FLUSH:0x5:disk cache flush request
508+
ZIO_TYPE_TRIM:0x6:trim (discard)
509+
.TE
510+
.
511+
.Sh I/O PRIORITIES
512+
Every I/O request in the pipeline has a single priority value.
513+
This value is used by the queuing code to decide which I/O to issue next.
514+
This value will be set in an event as a
515+
.Sy zio_priority
516+
payload entry.
517+
.Pp
518+
.TS
519+
tab(:);
520+
l l l .
521+
Type:Value:Description
522+
_:_:_
523+
ZIO_PRIORITY_SYNC_READ:0x0:
524+
ZIO_PRIORITY_SYNC_WRITE:0x1:ZIL
525+
ZIO_PRIORITY_ASYNC_READ:0x2:prefetch
526+
ZIO_PRIORITY_ASYNC_WRITE:0x3:spa_sync()
527+
ZIO_PRIORITY_SCRUB:0x4:asynchronous scrub/resilver reads
528+
ZIO_PRIORITY_REMOVAL:0x5:reads/writes for vdev removal
529+
ZIO_PRIORITY_INITIALIZING:0x6:initializing I/O
530+
ZIO_PRIORITY_TRIM:0x7:trim I/O (discard)
531+
ZIO_PRIORITY_REBUILD:0x8:reads/writes for vdev rebuild
532+
ZIO_PRIORITY_NOW:0xa:non-queued i/os (e.g. free)
533+
.TE
534+
.
480535
.Sh SEE ALSO
481536
.Xr zfs 4 ,
482537
.Xr zed 8 ,

0 commit comments

Comments
 (0)