[rancid] High cpu on large configs

frnkblk at iname.com frnkblk at iname.com
Fri Apr 1 01:05:46 UTC 2016


What about copying the configuration file over instead, and processing that?

 

Frank

 

From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of nachofw
Sent: Tuesday, March 29, 2016 8:24 AM
To: heasley <heas at shrubbery.net>
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] High cpu on large configs

 

It is very inconvinient for my scenario, high cpu causes alerts on the monitoring systems creating false positive alerts. Also on other platforms causes packet loss por example cisco 3k series with large configs

 

 

 

Enviado desde mi smartphone Samsung Galaxy.

-------- Mensaje original --------

De: heasley <heas at shrubbery.net <mailto:heas at shrubbery.net> > 

Fecha: 29/03/2016 9:46 AM (GMT-03:00) 

Para: nachofw <nachofw at adinet.com.uy <mailto:nachofw at adinet.com.uy> > 

Cc: rancid-discuss at shrubbery.net <mailto:rancid-discuss at shrubbery.net>  

Asunto: Re: High cpu on large configs 

 

Mon, Mar 28, 2016 at 03:10:16PM -0300, nachofw:
> Thanks for the input.I ended up taking advantage of the fact that asa doesn't support 'terminal length'and 'terminal width'. And changed the file lee mentioned:-> /usr/share/perl5/rancid/ios.pm        # the pager can not be disabled per-session on the PIX        if (/^(<-+ More -+>)/) {            my($len) = length($1);            s/^$1s{$len}//;+            select(undef, undef, undef, 0.15);        }
> I cant use the 'terminal pager 0' because that displays all the config in one shot and causes the cpu to spike to 97%, i needed for rancid to use the ---more--- feature when displaying the config.Again thanks to all-------- 

Why is it an issue if the cpu jumps for 97%?  So what.  It is temporary and
the scheduler should prioritize processes appropriately.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20160331/4915d99a/attachment.html>


More information about the Rancid-discuss mailing list