blob: 3ca0ad94b4c999fbd1ab89b0eff2169c4afbae92 [file] [log] [blame]
Ian Wienand2bbc9bb2019-02-11 12:25:38 +11001=====================
2System-wide debugging
3=====================
4
5A lot can go wrong during a devstack run, and there are a few inbuilt
6tools to help you.
7
8dstat
9-----
10
11Enable the ``dstat`` service to produce performance logs during the
12devstack run. These will be logged to the journal and also as a CSV
13file.
14
15memory_tracker
16--------------
17
18The ``memory_tracker`` service periodically monitors RAM usage and
19provides consumption output when available memory is seen to be
20falling (i.e. processes are consuming memory). It also provides
21output showing locked (unswappable) memory.
22
Rodolfo Alonso Hernandezd1c2bf52022-11-02 16:43:41 +010023file_tracker
24------------
25
26The ``file_tracker`` service periodically monitors the number of
27open files in the system.
28
Ian Wienand2bbc9bb2019-02-11 12:25:38 +110029tcpdump
30-------
31
32Enable the ``tcpdump`` service to run a background tcpdump. You must
33set the ``TCPDUMP_ARGS`` variable to something suitable (there is no
34default). For example, to trace iSCSI communication during a job in
35the OpenStack gate and copy the result into the log output, you might
36use:
37
38.. code-block:: yaml
39
40 job:
41 name: devstack-job
42 parent: devstack
43 vars:
44 devstack_services:
45 tcpdump: true
46 devstack_localrc:
47 TCPDUMP_ARGS: "-i any tcp port 3260"
48 zuul_copy_output:
49 '{{ devstack_log_dir }}/tcpdump.pcap': logs
50
51
52