Adding memory to VM weirds rendering of memory usage graphs

Hi,

We added 2 gigs of RAM to one of our VMs and it skewed the graph strangely, where the pre-expansion memory now shows up as negative 2 gigs of swap usage. It looks like a similar problem to the network ports/RRDTune issue, but I’m not seeing a similar way to equalize memory or CPU. None of the other boxes in LibreNMS so swap as a negative memory value, so I’m assuming that this is not expected behavior. Adding resources to a VM is a pretty common use case, and I’d really like to find a way to equalize this so that my long-term graphs aren’t rendered worthless every time we have to expand a VM. Any help would be much appreciated.

Thanks!

====================================

Component Version
LibreNMS 1.32-14-ga2b9342
DB Schema 210
PHP 7.0.23
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Database connection successful
[OK] Database schema correct

1 Like

this was after rediscovered the device?

Yes. I ran the ‘rediscover device’ button from the device settings, and ran a discover capture from the capture page. I did that before lunch, so it’s been about 3 hours now, and no change.

That seems like a good result to me. You added more RAM and now you have less but still approx. 83MB (graphed as -83MB) of swapping occuring.

I think swap usage always shows negative on that combined system chart which kind of makes sense since it results from lack of physical memory. It should match up with and might make more sense on the charts in Health > Memory.

Here’s one of my VM’s that’s currently swapping, but it has had no HW changes and shows a negative swap value on the Graph > System charts…


And here is its Health > Memory swap chart…

1 Like

It is now showing as negative consistently across all machines, but what had me confused was (and I wish I had screenshotted another machine for comparison) none of the other machines were displaying swap as negative memory on Friday. All other machines had a flat 0.0 at the bottom, and swap was stacked like any other form of used memory.

A consistent graph is my main concern. As long as they’re all doing the same thing, I’m happy. Thanks!