Graphing Real, Swap, Cache and Buffers Memory information

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
gilson
Posts: 27
Joined: Wed Jan 23, 2002 7:00 pm
Contact:

Post by gilson »

I've been trying to understand the correlation between buffers/cached memory with real memory: if they are inside of used or free memory; if they grow/shrink with used ou free memory.

I think I found the answer in a way of a RRD routine:
--------------------------------------------
rrdtool graph ?????????????
--start ????????????
--rigid
--imgformat PNG
DEF:real=RRA????:real:AVERAGE
DEF:swap=RRA????:swap:AVERAGE
DEF:share=RRA????:share:AVERAGE
DEF:buffer=RRA????:buffer:AVERAGE
DEF:cache=RRA????:cache:AVERAGE
DEF:total_real=RRA????:total_real:LAST
DEF:total_swap=RRA????:total_swap:LAST
DEF:total_free=RRA????:total_free:LAST
CDEF:total=total_real,total_swap,+
CDEF:used_total=total_real,total_swap,real,swap,+,-,+
GPRINT:total:LAST:"Total Memory: %%.0lf KB"
GPRINT:total_real:LAST:"( Real: %%.0lf KB"
GPRINT:total_swap:LAST:"Swap: %%.0lf KB )j"
AREA:used_total#FF8080:"USED TOTALn"
STACK:swap#80FF80:"FREE swap"
GPRINT:swap:AVERAGE:"AVE: %%.0lf KB"
GPRINT:swap:MAX:"MAX: %%.0lf KB"
GPRINT:swap:MIN:"MIN: %%.0lf KBj"
STACK:real#8080FF:"FREE real"
GPRINT:real:AVERAGE:"AVE: %%.0lf KB"
GPRINT:real:MAX:"MAX: %%.0lf KB"
GPRINT:real:MIN:"MIN: %%.0lf KBj"
LINE1:share#F0E68C:"Shared"
GPRINT:share:AVERAGE:"AVE: %%.0lf KB"
GPRINT:share:MAX:"MAX %%.0lf KB"
GPRINT:share:MIN:"MIN %%.0lf KBj"
LINE1:buffer#000000:"Buffer"
GPRINT:buffer:AVERAGE:"AVE: %%.0lf KB"
GPRINT:buffer:MAX:"MAX %%.0lf KB"
GPRINT:buffer:MIN:"MIN %%.0lf KBj"
LINE1:cache#00FFFF:"Cached"
GPRINT:cache:AVERAGE:"AVE: %%.0lf KB"
GPRINT:cache:MAX:"MAX %%.0lf KB"
GPRINT:cache:MIN:"MIN %%.0lf KBj"
--------------------------------------------
The produced graph is exactly what I want. See it at http://203.174.72.113/tujige/manage/rrdtool/mem.html (japanese page).

I tried to implement using CACTI, but cannot do it because of CDEF funtions.

Can anyone help me to replicate this in CACTI ?
gilson
Posts: 27
Joined: Wed Jan 23, 2002 7:00 pm
Contact:

Post by gilson »

continuing...

... I also had difficulties in using GPRINT to point to CDEF results.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests