[mrtg] Re: Memory usage on Cisco 2500

David Mitchell mitchelld at sunman.co.uk
Fri Feb 22 18:13:29 MET 2002


Because it doesn't?

Once the router is running then everything should stabilise and the memory
utilisation will stay the same - otherwise it would either get to zero or
100%... The main variation is when buffers are allocated to handle incoming
packets...

You may notice a difference during busy/non-busy times, but I think that
once the buffers are allocated they stay allocated.

If it does vary (increase consistently) then this is the sign of a memory
leak (==BUG!) which will crash your router once all the memory is in use.

David

-----Original Message-----
From: Anthony Lai [mailto:savedadogs at yahoo.com]
Sent: Friday, February 22, 2002 16:56
To: David Mitchell; mrtg at list.ee.ethz.ch
Subject: Re: [mrtg] Re: Memory usage on Cisco 2500


David,

   I tried it and it seems to be working..but I have a
question to everyone...it seems as if proc mem and i/o
mem stay the same...why does it nor vary??


--- David Mitchell <mitchelld at sunman.co.uk> wrote:
>
> Folks
>
> I have done something similar but used %age of
> memory used - which then
> means that you can scale the graphs to 100%. It also
> is proof against the
> router resizing IO memory - I would think we are
> more interested in how much
> of the allocated memory is in use rather than the
> absolute size?
>
> I have pasted my question and answer below (it was
> in a thread entitled
> 'multiple OIDs in expression')
>
> =====================================
>
> For easy viewing, lets say...
> OID1 = .5.1 Proc mem in use
> OID2 = .6.1 Proc Mem free
> OID3 = .5.2 IO mem in use
> OID4 = .6.2 IO mem free.
>
> You want...
>
> OID1/(OID1+OID2))*100
> 460 /(460 + 564))* 100 = 46%
>
> So for your target you should try...
>
> Target[Proc_IO] (OID1&OID3:public at host  /
>                 (OID1&OID3:public at host +
>                  OID2&OID4:public at host)) * 100
>
> Let me know if this works.
>
>
>
> Dave
>
> -----Original Message-----
> From: David Mitchell [mailto:mitchelld at sunman.co.uk]
>
>
> I want to calculate the percentage memory usage on a
> cisco router.
>
> The table oid is 1.3.6.1.4.1.9.9.48.1.1.
>
> And the OID's I want to use are:
> 1.3.6.1.4.1.9.9.48.1.1.1.5.1 Proc mem in use
> 1.3.6.1.4.1.9.9.48.1.1.1.6.1 Proc Mem free
> 1.3.6.1.4.1.9.9.48.1.1.1.5.2 IO mem in use
> 1.3.6.1.4.1.9.9.48.1.1.1.6.2 IO mem free.
>
> So I want to calculate 100*mem in use / (mem in use
> + mem free) and use the
> Proc mem as the 'in' value and IO mem as the 'out'
> value so they appear on
> the same graph.
>
> The original target I used was:
> Target[$target_name]: 1.3.6.1.4.1.9.9.48.1.1.1.5.1 *
> 00/( 1.3.6.1.4.1.9.9.48.1.1.1.5.1 +
> 1.3.6.1.4.1.9.9.48.1.1.1.6.1 ) &
> 1.3.6.1.4.1.9.9.48.1.1.1.5.2 *100/(
> 1.3.6.1.4.1.9.9.48.1.1.1.5.2 +
> 1.3.6.1.4.1.9.9.48.1.1.1.6.2 ):routeraddress
>
>
> David Mitchell
>
>
> --
> Unsubscribe
>
mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage
> http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list