aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/bufmon/bufmon_doc.rst
blob: 34d5bd354743e4bda77cf9be550dc213403e3c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.. _bufmon_doc:

Buffers monitoring plugin
=========================

This plugin enables to track buffer utilization in the VPP graph nodes.
The main use is to detect buffer leakage. It works by keeping track of
number of buffer allocations and free in graph nodes and also of number
of buffers received in input frames and in output frames. The formula to
compute the number of “buffered” buffers in a node is simply: #buffered
= #alloc + #input - #free - #output Note: monitoring will impact
performances.

Basic usage
-----------

1. Turn buffer traces on:

::

   ~# vppctl set buffer traces on

2. Monitor buffer usage:

::

   ~# vppctl show buffer traces verbose

3. Turn buffer traces off:

::

   ~# vppctl set buffer traces off