nickbabcock / OhmGraphite

Expose hardware sensor data to Graphite / InfluxDB / Prometheus / Postgres / Timescaledb
Other
426 stars 38 forks source link

Improve CPU/mem efficiency by avoiding tracking multiple values #442

Closed nickbabcock closed 7 months ago

nickbabcock commented 7 months ago

By default, LibreHardwareMonitor will track 24 hours worth of values, this does not bode well for CPU (which needs to manage the in memory list) as well as memory usage.

This commit improves the efficiency by not tracking existing values (as this is for the the downstream metric store).

In practice memory usage fell by ~3MB and change CPU seemed negligible, but it's better than nothing!