Subject: | pathologic behaviour with "show ip bgp" |
I should have reported this a few weeks ago when I installed the current version along with
module dependencies under perl 5.10 on FreeBSD 7.1
I wrote a script to parse the output of "show ip bgp" from a cisco router which produced
sligthtly over 10K lines, but the script took 260 seconds to run at 100% CPU. By way of
contrast, the script could also fetch the table using Net::SSH2 which took 4 seconds with
little CPU. I reduced the runtime by limiting max_buffer_size (resulting in truncated input).
# and DProf produced
# Total Elapsed Time = 4.215710 Seconds
# User+System Time = 3.846182 Seconds
# Exclusive Times
# %Time ExclSec CumulS #Calls sec/call Csec/c Name
# 75.7 2.912 4.055 102 0.0285 0.0398 Net::Telnet::waitfor
# 8.89 0.342 0.716 99 0.0035 0.0072 Devel::StackTrace::_record_caller_
# data
# 4.47 0.172 0.172 19744 0.0000 0.0000 UNIVERSAL::isa
# 3.51 0.135 0.271 99 0.0014 0.0027 Carp::short_error_loc
# 3.04 0.117 0.157 19998 0.0000 0.0000 overload::AddrRef
# 2.47 0.095 0.136 34254 0.0000 0.0000 Carp::trusts
# 1.20 0.046 0.046 39897 0.0000 0.0000 Scalar::Util::blessed
Execution with the full table dropped to a few seconds after changing prompt to '/[\/a-zA-
Z0-9._-]+#$/'
I'm not saying the default prompt should be changed unless that is sensible, but maybe this
behaviour should get some mention in the docs ?
thanks
Danny