Bug #1075

Wrong memory monitoring in im_ganglia

Added by Giovanni Toraldo over 9 years ago. Updated over 7 years ago.

Status:ClosedStart date:01/22/2012
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Drivers - Monitor
Target version:-
Resolution:wontfix Pull request:
Affected Versions:OpenNebula 3.2

Description

Hi,

in remotes/im/ganglia.d/ganglia_probe:

info["TOTALMEMORY"]=data['mem_total']
info["USEDMEMORY"]=data['mem_total'].to_i-data['mem_free'].to_i
info["FREEMEMORY"]=data['mem_free'].to_i

we probably need to keep consideration of mem_cached and mem_buffers counters too:

info["TOTALMEMORY"]=data['mem_total']
info["USEDMEMORY"]=data['mem_total'].to_i-data['mem_free'].to_i-data['mem_cached'].to_i-data['mem_buffers'].to_i
info["FREEMEMORY"]=data['mem_free'].to_i+data['mem_cached'].to_i+data['mem_buffers'].to_i

Before:

MONITORING INFORMATION                                                          
FREEMEMORY=44268
TOTALMEMORY=4051888
USEDMEMORY=4007620

             total       used       free     shared    buffers     cached
Mem:       4051888    4003652      48236          0      31936    3460168
-/+ buffers/cache:     511548    3540340
Swap:      1951668          0    1951668

After:

MONITORING INFORMATION                                                          
FREEMEMORY=3536420
TOTALMEMORY=4051888
USEDMEMORY=515468

             total       used       free     shared    buffers     cached
Mem:       4051888    4002816      49072          0      34588    3453684
-/+ buffers/cache:     514544    3537344
Swap:      1951668          0    1951668

I am wondering if actually anyone is using ganglia integration beside me (and I am using it only for writing the book) :)

History

#1 Updated by olivier sallou about 9 years ago

I am using Ganglia in my labs for open nebula and face the memory cache issue too.

#2 Updated by Ruben S. Montero about 8 years ago

  • Category set to Drivers - Monitor

#3 Updated by Ruben S. Montero about 8 years ago

  • Priority changed from Normal to Low

#4 Updated by Ruben S. Montero almost 8 years ago

  • Resolution set to wontfix

Ganglia moved to ecosystem, closing this

#5 Updated by Tino Vázquez over 7 years ago

  • Status changed from New to Closed

Also available in: Atom PDF