summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-13 18:43:30 +0100
committerDave Barach <openvpp@barachs.net>2020-11-16 13:03:19 +0000
commit34a19b2ddc51c07352ba7972441e6915fe784436 (patch)
treef369b9b8c46457120dc8fe9ec30fe6d853bf53a1
parent69842be389f8a14825e5a4145506b41de39a9d78 (diff)
docs: fix memory troubleshooting doc
Type: docs Change-Id: Id9f8f6f13e4a41567adf7dc68e6c9be42dd82de7 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--docs/troubleshooting/index.rst1
-rw-r--r--docs/troubleshooting/mem.rst3
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/troubleshooting/index.rst b/docs/troubleshooting/index.rst
index f652f3f2184..5dee98a8029 100644
--- a/docs/troubleshooting/index.rst
+++ b/docs/troubleshooting/index.rst
@@ -12,3 +12,4 @@ problem with FD.io VPP implementations.
reportingissues/index.rst
cpuusage
sanitizer
+ mem
diff --git a/docs/troubleshooting/mem.rst b/docs/troubleshooting/mem.rst
index 5475051c085..207b2777c50 100644
--- a/docs/troubleshooting/mem.rst
+++ b/docs/troubleshooting/mem.rst
@@ -19,11 +19,13 @@ where memory leaks happen.
To enable memory traces on main-heap:
.. code-block:: console
+
$ vppctl memory-trace on main-heap
To dump memory traces for analysis:
.. code-block:: console
+
$ vppctl show memory-trace on main-heap
Thread 0 vpp_main
base 0x7fffb6422000, size 1g, locked, unmap-on-destroy, name 'main heap'
@@ -79,6 +81,7 @@ main-heap.
To use it, you need to use the `LD_PRELOAD` mechanism, eg.
.. code-block:: console
+
~# LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libvppmem_preload.so /usr/bin/vpp -c /etc/vpp/startup.conf
You can then use tools such as memory traces as usual.