Reset Search
 

 

Article

High packet capture CPU utilization

« Go Back

Information

 
TitleHigh packet capture CPU utilization
Symptoms
When packet capture has been enabled on Broadcom interface for a long time and the number of packets are not specified, the CPU utilization will be high. The other problem is, it will flood the internal memory full. 
debug packet capture on interface Broadcom

 
Environment
  • EXOS All
Cause
* SW1.24 # top
Mem: 469172K used, 515016K free, 0K shrd, 18908K buff, 189020K cached
CPU:  9.0% usr 31.8% sys  0.0% nic 36.3% idle  0.0% io 13.6% irq  9.0% sirq
Load average: 8.60 8.68 9.22 9/227 2361
  PID  PPID USER     STAT   RSS %MEM CPU %CPU COMMAND
 2359     1 root     R <   1052  0.1   1 36.3 /exos/tools/tcpdump -i Broadcom -w
 1359     2 root     RW       0  0.0   1 13.6 [bcmRX]
 2361  2360 root     R      660  0.0   0  4.5 top -d 3
 
* SW1.27 # ls internal-memory
-rw-rw-rw-    1 root     root            0 Oct 31 15:04 2016-10-31_15-03-28_rx_tx.pcap
-rw-rw-rw-    1 root     root     16405662 Oct 31 15:43 2016-10-31_15-43-53_rx_tx.pcap
-rw-rw-rw-    1 root     root    404964352 Oct 31 15:51 2016-10-31_15-44-06_rx_tx.pcap
-rw-rw-rw-    1 root     root          139 Oct 31 15:44 capture.log
drwxrwxrwx    2 root     root         1024 Aug 10 15:01 dhcp
-rw-r--r--    1 root     root            0 Oct 20 10:30 pdtrcbgp.log
-rw-r--r--    1 root     root            0 Sep 26 08:23 pdtrcbgp.log.save

 1K-blocks      Used Available Use%
    423648    423648         0 100%

 
Resolution
Disable packet capture and delete the large file from internal memory.
 
debug packet capture off
* SW1.30 # rm /usr/local/tmp/2016-10-31_15-44-06_rx_tx.pcap
Remove 2016-10-31_15-44-06_rx_tx.pcap from /usr/local/tmp? (y/N) Yes
* SW1.31 # rm /usr/local/tmp/2016-10-31_15-43-53_rx_tx.pcap
Remove 2016-10-31_15-43-53_rx_tx.pcap from /usr/local/tmp? (y/N) Yes
* SW1.32 # ls internal-memory
-rw-rw-rw-    1 root     root            0 Oct 31 15:04 2016-10-31_15-03-28_rx_tx.pcap
-rw-rw-rw-    1 root     root            0 Oct 31 15:55 capture.log
drwxrwxrwx    2 root     root         1024 Aug 10 15:01 dhcp
-rw-r--r--    1 root     root            0 Oct 20 10:30 pdtrcbgp.log
-rw-r--r--    1 root     root            0 Sep 26 08:23 pdtrcbgp.log.save

 1K-blocks      Used Available Use%
    423648     10535    413113   2%

 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255