docs: fix memory troubleshooting doc 32/29932/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 13 Nov 2020 17:43:30 +0000 (18:43 +0100)
committerDave Barach <openvpp@barachs.net>
Mon, 16 Nov 2020 13:03:19 +0000 (13:03 +0000)
Type: docs

Change-Id: Id9f8f6f13e4a41567adf7dc68e6c9be42dd82de7
Signed-off-by: Benoît Ganne <bganne@cisco.com>
docs/troubleshooting/index.rst
docs/troubleshooting/mem.rst

index f652f3f..5dee98a 100644 (file)
@@ -12,3 +12,4 @@ problem with FD.io VPP implementations.
     reportingissues/index.rst
     cpuusage
     sanitizer
+    mem
index 5475051..207b277 100644 (file)
@@ -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.