Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

     

 

Performance Analysis

 In  In order to get  list of unique Source Destination pairs (links) SelectSrcDest1.pm used to traverses through all the raw pinger files for the last 120 days and generateded generated the list. This was extremely expensive in terms  of time consumed so we needed to reduce this. This was reduced to one day which made the code 120 times more faster.

I used the Benchmark library and applied it on create_File function. Here is the result of creating 10 RRDs on nfs space

...

Code Block
CreateRRD took: 4 wallclock secs ( 3.56 usr  0.05 sys \+  0.43 cusr  0.05 csys =  4.09 CPU)
CreateRRD took: 3 wallclock secs ( 3.55 usr  0.04 sys \+  0.44 cusr  0.01 csys =  4.04 CPU)
CreateRRD took: 4 wallclock secs ( 3.57 usr  0.07 sys \+  0.54 cusr  0.09 csys =  4.27 CPU)

The code created new RRD files based on unique source, destination and number of packets sent. Since the number of packets sent is variable for each day, it created a new RRD file each day which is very expensive. An average of 100 additional RRDs were created every day which costs 10 hours time to run. I have set the value of the number of packets sent to 10, so now  only the previous RRDs will be updated and no new RRD will be created. So this will cause the script to run much faster( will takes on average 10 hours less to run daily).

Deployment of PingertoSmokePing

...