Skip to content

better performance for process_* metrics on linux #85

@jelmd

Description

@jelmd

Current process_* metrics implementation for linux has a huge overhead by re-opening/closing files on each pull. Instead it should keep the process related files open (they do not change over lifetime) and let the OS auto-close them on exit. This way performance can be improved by factor 2..6.

Attaching 2 files as proof of concept/for comparison/micro benchmarking:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions