From 79ad09ae59f697884634898287a448f86c680eba Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 19 Apr 2024 10:25:33 -0400 Subject: [PATCH] Switch virtual memory free to allocated Avoids incorrect reporting if cache/buffers exceeds normal. --- node-daemon/pvcnoded/util/keepalive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/util/keepalive.py b/node-daemon/pvcnoded/util/keepalive.py index 9bd46d46..c5be47f6 100644 --- a/node-daemon/pvcnoded/util/keepalive.py +++ b/node-daemon/pvcnoded/util/keepalive.py @@ -743,7 +743,7 @@ def node_keepalive(logger, config, zkhandler, this_node, netstats): # Get node performance statistics this_node.memtotal = int(psutil.virtual_memory().total / 1024 / 1024) this_node.memused = int(psutil.virtual_memory().used / 1024 / 1024) - this_node.memfree = int(psutil.virtual_memory().free / 1024 / 1024) + this_node.memfree = int(psutil.virtual_memory().available / 1024 / 1024) this_node.cpuload = round(os.getloadavg()[0], 2) # Get node network statistics via netstats instance