[smokeping-users] extremely slow smokeping execution speed

William Preston bspesq at gmail.com
Wed Aug 3 21:56:00 MEST 2005


I'm having a problem with the smokeping binary, and the .cgi script, being 
extremely slow on a moderately fast system (Athlon1200, 512RAM.)  Top is 
showing almost no CPU or disk utilization while it's running.  Softwares:

OS: Slackware10.1
smokeping: 2.0rc5
perl: 5.8.7
rrd:  1.2.10
echoping: 5.2.0

everything else should be per the smokeping recommended versions.  My 
config file has about 15 hosts, being probed with echoping http, https, and 
smtp.  Only two hosts are probed with fping.

I ran the perl profiler on it (bear with me; I'm not a coder) and it gave 
me this info:

root at pathmon:/usr/local/smokeping/bin# dprofpp tmon.out
<<snip lots of errors about 'unstacked calls in outer'>>
Total Elapsed Time = 1893.947 Seconds
   User+System Time = 0.457851 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
  17.4   0.080  0.238     18   0.0044 0.0132  Smokeping::BEGIN
  8.74   0.040  0.040     10   0.0040 0.0040  RRDs::fetch
  6.55   0.030  0.278      3   0.0100 0.0926  main::BEGIN
  4.37   0.020  0.020      8   0.0025 0.0025  DynaLoader::dl_load_file
  4.37   0.020  0.020     10   0.0020 0.0020  RRDs::info
  4.37   0.020  0.069      7   0.0028 0.0099  SNMP_util::BEGIN
  4.37   0.020  0.030      9   0.0022 0.0033  SNMPv1_Session::BEGIN
  4.37   0.020  0.020      7   0.0028 0.0028  base::import
  4.15   0.019  0.019   2886   0.0000 0.0000  Config::Grammar::_deepcopy
  2.18   0.010  0.010      1   0.0100 0.0100  AutoLoader::AUTOLOAD
  2.18   0.010  0.010      3   0.0033 0.0033  File::Basename::BEGIN
  2.18   0.010  0.010      5   0.0020 0.0020  Smokeping::probes::base::pings
  2.18   0.010  0.010      3   0.0033 0.0033  vars::BEGIN
  2.18   0.010  0.131      1   0.0100 0.1309  Config::Grammar::parse
  2.18   0.010  0.010      3   0.0033 0.0033  Config::BEGIN

So, it's certainly spending a lot of time in the Grammar loop, which may be 
per design.  Following the perl dprof page, I ran it dprof with some other 
options:

root at pathmon:/usr/local/smokeping/bin# dprofpp -u smoke.out
Total Elapsed Time = 1893.938 Seconds
          User Time = 0.428925 Seconds

OK, not much time in user.  Or in System:

root at pathmon:/usr/local/smokeping/bin# dprofpp -s smoke.out
Total Elapsed Time = 1893.964 Seconds
        System Time = 0.034463 Seconds

However, real time shows this:

root at pathmon:/usr/local/smokeping/bin# dprofpp -r smoke.out
Total Elapsed Time = 1893.922 Seconds
          Real Time = 1893.922 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
  89.9   1703. 1703.8      3   567.96 567.96 
Smokeping::probes::EchoPing::test_
                   80                     00  usage
  9.98   188.9 756.99      1   188.99 756.99 
Smokeping::probes::EchoPingHttps::
                    0                     00  test_usage
  0.03   0.510  0.510      1   0.5100 0.5100  Smokeping::probes::FPing::new
  0.00   0.090  0.227     18   0.0050 0.0126  Smokeping::BEGIN
  0.00   0.080 1136.0      2   0.0400 568.00 
Smokeping::probes::EchoPingHttp::t
                   00                     00  est_usage
  0.00   0.040  0.267      3   0.0133 0.0891  main::BEGIN
  0.00   0.040  0.040     78   0.0005 0.0005  Exporter::import
  0.00   0.030  0.070     10   0.0030 0.0070  Smokeping::RRDtools::info2create
  0.00   0.026  0.026   2886   0.0000 0.0000  Config::Grammar::_deepcopy
  0.00   0.020 567.98      1   0.0200 567.98 
Smokeping::probes::EchoPingSmtp::t
                    0                     00  est_usage
  0.00   0.020  0.020     10   0.0020 0.0020  RRDs::fetch
  0.00   0.020  0.020     10   0.0020 0.0020  RRDs::info
  0.00   0.020  0.020      3   0.0067 0.0066  CGI::BEGIN
  0.00   0.020 -0.000     12   0.0017      -  Exporter::export
  0.00   0.020  0.030      7   0.0028 0.0042  base::import


(Sorry about the text wrapping.)  It looks like Smokeping is spending all 
of its time lost in smokeping never-neverland.  Can anyone give me any 
ideas why it might be doing this?  Note that most of it is in 
'EchoPing:test-usage', whatever that might be.

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list