-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add func BdevGetIostat #192
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,30 @@ type BdevLvolFragmap struct { | |
NumAllocatedClusters uint64 `json:"num_allocated_clusters"` | ||
Fragmap string `json:"fragmap"` | ||
} | ||
|
||
type BdevIostatRequest struct { | ||
Name string `json:"name,omitempty"` | ||
PerChannel bool `json:"per_channel,omitempty"` | ||
} | ||
|
||
type BdevIostatResponse struct { | ||
TickRate uint64 `json:"tick_rate"` | ||
Ticks uint64 `json:"ticks"` | ||
Bdevs []BdevStats `json:"bdevs"` | ||
} | ||
|
||
type BdevStats struct { | ||
Name string `json:"name"` | ||
BytesRead uint64 `json:"bytes_read"` | ||
NumReadOps uint64 `json:"num_read_ops"` | ||
BytesWritten uint64 `json:"bytes_written"` | ||
NumWriteOps uint64 `json:"num_write_ops"` | ||
BytesUnmapped uint64 `json:"bytes_unmapped"` | ||
NumUnmapOps uint64 `json:"num_unmap_ops"` | ||
ReadLatencyTicks uint64 `json:"read_latency_ticks"` | ||
WriteLatencyTicks uint64 `json:"write_latency_ticks"` | ||
UnmapLatencyTicks uint64 `json:"unmap_latency_ticks"` | ||
QueueDepth uint64 `json:"queue_depth"` | ||
IoTime uint64 `json:"io_time"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hookak What is io_time and weighted_io_time in the stat? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @derekbit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know. Thank you @hookak. |
||
WeightedIoTime uint64 `json:"weighted_io_time"` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref: https://github.com/spdk/spdk/blob/e01cb43b8578f9155d07a9bc6eee4e70a3af96b0/scripts/iostat.py#L35-L68