tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
183 stars 16 forks source link

[Bug] Incorrect information about memory capacity #124

Closed Limych closed 5 months ago

Limych commented 9 months ago

Describe the issue

Sensor truenas_system_memory_usage contains incorrect data about memory capacity.

I have 16 GiB of memory installed on my system. As you can see in the pictures, 5 GiB of this is used by services, 10.1 is used as ZFS cache, and 0.5 GiB is free.

But the sensor attributes indicates that the total memory is 10.5 GiB, which is incorrect. In fact, this value is equal to (total_memory - memory_for_services).

How to reproduce the issue

Expected behavior

Screenshots

Screenshot

Screenshot

Software versions

Diagnostics data

Traceback/Error logs

Additional context

tomaae commented 9 months ago

actually, truenas does not provide this value. its sum of used_value, free_value and cache_size-arc_value it does nto have anything to do with what you see on that pie chart

tomaae commented 5 months ago

tested it using both core and scale, works according to graph.