# [rrd-users] Re: Calculating traffic

Alex van den Bogaerdt alex at ergens.op.HET.NET
Wed Jun 26 13:00:44 MEST 2002

```>  Now i am more confused...... :-(

> > CDP calculation:
> > 0.5 times the amount of PDPs needed per CDP may be unknown.  The RRAs
> > need 1,6,24 and 288 PDPs per CDP.  The RRA stores 600,700,775,3725 of
> > these CDPs.
> >
> > Total time per RRA:
> > The total time per RRA is the time per PDP (your --step time) multiplied
> > with the amount of PDPs per CDP (steps) multiplied by the amount of CDPs.
> > The numbers are:
> > 60*1*600 == 36000 seconds == 10 hours
> > 60*6*700 == 252000 seconds == 70 hours = 2 days 22 hours
> > 60*24*775 == 1116000 seconds == 12 days 22 hours
> > 60*288*3725 == 64368000 seconds == 745 days
>
>  What does this mean????

What is it you don't understand?  I specifically wrote how to do
this calculation.

As a formula:
total_time = time_per_PDP * amount_of_PDPs_per_CDP * amount_of_CDPs

>  i thought that with 3725 i will have a five years rrd file.....

There's *no* way I can come up with this number so explain.  While
you're doing that maybe we can see where you go wrong.

For 5 years worth of data:

5 years would be 5 * 365 days + two extra = 1827 days.  (The two extra
days are for february 29th).

1827 days * 86400 seconds per day = 157852800 seconds.
The amount of steps in the last PDP is 288.
The amount of time per PDP is 60

So:
total_time = time_per_PDP * amount_of_PDPs_per_CDP * amount_of_CDPs
157852800  =      60      *  288                   * amount_of_CDPs

157852800  =      17280                            * amount_of_CDPs
157852800/17280 = amount_of_CDPs
amount_of_CDPs = 9135

--
__________________________________________________________________
/ alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users

```