processes: Show real disk IO in addition to process IO (Linux only) #2232
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Collectd reports
/proc/PID/io
fieldsio_rchar/io_wchar
asps_disk_octets
type andio_syscr/io_syscw
asps_disk_ops
type.The names of these types do not match values they represent.
For
io_rchar/io_wchar
data type should be named asps_io_octets
. In Linux, these values represent any I/O of process, not disk I/O only: they include sockets, pipes, console I/O, etc.The
ps_io_octets
type can be added in addition to the existingps_disk_octets
for which values can be obtained fromread_bytes/write_bytes
of /proc/PID/io. These values will be much more correct for reporting asps_disk_octets
than existingio_rchar/io_wchar
. Please note whatread_bytes/write_bytes
is real disk I/O, it does not account file I/O from cache.For
io_syscr/io_syscw
correct type should be namedps_io_ops
.Reported values do not match any real disk ops.
My proposal is to fix these issues.
New, correct mapping implemented:
Related documentation: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/proc.txt?id=HEAD#n1558
Issues: #1990, #1225