Menu

#8 CPU hog

open
nobody
None
5
2006-02-27
2006-02-27
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.