8000 processes plugin: wrong disk I/O metric types/values · Issue #1990 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
processes plugin: wrong disk I/O metric types/values #1990
Closed
@rpv-tomsk

Description

@rpv-tomsk

Collectd reports /proc/PID/io fields io_rchar/io_wchar as ps_disk_octets type and io_syscr/io_syscw as ps_disk_ops type.
The names of these types do not match values they represent.

  1. For io_rchar/io_wchar data type should be named as ps_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 existing ps_disk_octets for which values can be obtained from read_bytes/write_bytes of /proc/PID/io. These values will be much more correct for reporting as ps_disk_octets than existing io_rchar/io_wchar. Please note what read_bytes/write_bytes is real disk I/O, it does not account file I/O from cache.

  2. For io_syscr/io_syscw correct type should be named ps_io_ops.
    Reported values do not match any real disk ops.

My proposal is to fix these issues.

Related documentation: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/proc.txt?id=HEAD#n1558

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0