Returns a data.frame of system-wide disk I/O counters.
Value
A data frame of one row per disk of I/O stats, with columns
name
, read_count
read_merged_count
read_bytes
, read_time
,
write_count
, write_merged_count
, write_bytes
write_time
, and
busy_time
.
Details
Includes the following non-NA fields for all supported platforms:
read_count
: number of readswrite_count
: number of writesread_bytes
: number of bytes readwrite_bytes
: number of bytes written
And for only some platforms:
read_time
: time spent reading from disk (in milliseconds)write_time
: time spent writing to disk (in milliseconds)busy_time
: time spent doing actual I/Os (in milliseconds)read_merged_count
: number of merged reads (see iostats doc)write_merged_count
: number of merged writes (see iostats doc)
See also
Other disk functions:
ps_disk_partitions()
,
ps_disk_usage()
Examples
ps_disk_io_counters()
#> # A data frame: 15 × 10
#> name read_count read_merged_count read_bytes read_time write_count
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 loop0 0 28 0 0 0
#> 2 loop1 0 0 0 0 0
#> 3 loop2 0 0 0 0 0
#> 4 loop3 0 0 0 0 0
#> 5 loop4 0 0 0 0 0
#> 6 loop5 0 0 0 0 0
#> 7 loop6 0 0 0 0 0
#> 8 loop7 0 0 0 0 0
#> 9 sda 9 25698 81408 5400 1262
#> 10 sda1 9 23242 57344 5400 1262
#> 11 sdb 17317 2419461 6692352 29916 76173
#> 12 sdb1 16615 2385239 6586368 29891 76149
#> 13 sdb14 0 1264 37376 0 0
#> 14 sdb15 666 17742 45056 2 0
#> 15 sdb16 36 13248 18432 23 24
#> # ℹ 4 more variables: write_merged_count <dbl>, write_bytes <dbl>,
#> # write_time <dbl>, busy_time <dbl>