cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
393
Views
0
Helpful
3
Replies

Lowering DEBUG process for less CPU I/O

cachaves
Level 1
Level 1

Does anyone know about a command that can lower the DEBUG process at the IOS so that it doesn't jam the CPU?

3 Replies 3

paolo bevilacqua
Hall of Fame
Hall of Fame

The main limiting factor when doing debugs is that debug is sent to console port and terminal moonitor, tha can be slow. So disable that with "no loggign console" and "no logging monito", and log debug instead to a memory buffer "logging buffer".

Carlos

I do not know of any command which will lower the debug process. I do agree with Paolo about the impact of debug output sent to the console, and agree less about the impact of sending debug to terminal monitor. The single best thing you can do to minimize the impact of debug is to prevent debug output from going to the console.

I would take a slightly different approach than Paolo in preventing debug output to the console. His approach will work, but I think it may be a bit drastic to stop all logging to the console. I would suggest setting the logging level of the console to informational, which will stop debug output but still allow other output.

There are several factors which contribute to the impact of debug output being sent to the console: 1) the console usually operates at 9600 and 2) output to the console generates a CPU interrupt per character of output. Neither of these factors are present in output to terminal monitor. Terminal monitor usually is operating at network link speed and this output generates a CPU interrupt per line (much less impact than per character). I would agree that not sending debug output to terminal monitor would reduce SOME overhead. But I doubt that it is very significant.

HTH

Rick

HTH

Rick

Friend,

Debug processes are genreally CPU intensive and i agree with Rick and Paolo that not logging them to console would slightly alleviate the problem.

What you should try most of the times when you debug, is to limit the debug by configuring an access-list around the problem and associating it with the debug.

for eg.. the debug ip packet details would generally crash your router if it has considerable amount of traffic(i saw an 38xx ISR stopped responding to this command). instaead i would use something like this

debug ip packet detail 100 where 100 would reference an access-list which associates with the problem you are trying to troubleshoot

HTH, rate if it does

Narayan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card