Description

    This script provides a quick look at the performance of Monitored Nodes for a Monitoring Side( currently pinger.slac.stanford.edu).

    This script fetches data from pingtable, in tab separated format.

Profiling Results

    For profiling Devel::DProf is used.

perl -d:DProf -wT ./remNodeStatus.pl --tick=allmonthly

    Running the above mentioned script produces the following results:

CGI::script_name has 1 unstacked calls in outer
CGI::query_string has 1 unstacked calls in outer
CGI::request_uri has 1 unstacked calls in outer
CGI::read_from_cmdline has 1 unstacked calls in outer
CGI::AUTOLOAD has -15 unstacked calls in outer
CGI::protocol has 1 unstacked calls in outer
CGI::_name_and_path_from_env has 1 unstacked calls in outer
POSIX::load_imports has 1 unstacked calls in outer
CGI::delete has 1 unstacked calls in outer
POSIX::AUTOLOAD has -1 unstacked calls in outer
CGI::http has 1 unstacked calls in outer
CGI::path_info has 1 unstacked calls in outer
CGI::url has 1 unstacked calls in outer
CGI::https has 1 unstacked calls in outer
CGI::self_url has 1 unstacked calls in outer
CGI::server_port has 1 unstacked calls in outer
CGI::server_name has 1 unstacked calls in outer
CGI::server_protocol has 1 unstacked calls in outer
Total Elapsed Time =  9.71844 Seconds
  User+System Time =  0.90844 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 3.30   0.030  0.049      7   0.0043 0.0070  main::BEGIN
 2.20   0.020  0.020      1   0.0200 0.0200  Tie::IxHash::TIEHASH
 1.10   0.010  0.010      4   0.0025 0.0025  Exporter::import
 1.10   0.010  0.010     15   0.0007 0.0007  CGI::_compile
 0.99   0.009  0.009    169   0.0001 0.0001  CGI::expand_tags
 0.00   0.000  0.000      1   0.0000 0.0000  POSIX::load_imports
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::read_from_cmdline
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::self_url
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::url
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::path_info
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::script_name
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::request_uri
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::query_string
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::protocol
 0.00   0.000  0.000      1   0.0000 0.0000  CGI::https

    Using Firefox plugin Firebug, Loading the page first time, takes about 30secs, to load the page first time. Afterwards, all calls are made using AJAX, which takes 25secs to transfer data, based on the size of rows returned.

    This time includes, the 9.6 secs taken by the script to execute, time taken by firefox to fetch data and then render it.

URL:

        http://www.slac.stanford.edu/cgi-wrap/checkremote.cgi

  • No labels