CPU hog
Brought to you by:
jkeroes
I have a script which is logging into a alot of routers
executing a list of commands and saving the output to
files. I run the linux mpstat command to monitor the
CPU usage and I notice that when the script executes
any command that returns large amounts of data eg "show
ip route" or "show ip bgp" the CPU usage goes really high.
If I execute the same commands using plain old telnet I
dont see the same spike. Is there anyway to fix this ?
The problem becomes more severe when I use threads and
kick off 10 processes. I basically take up all the CPU.
thanks for any help you can provide