5f9afdb795aad4e507508945fd71fa2e398eb34e
[dpdk.git] / doc / guides / tools / proc_info.rst
1 ..  SPDX-License-Identifier: BSD-3-Clause
2     Copyright(c) 2015 Intel Corporation.
3
4 dpdk-procinfo Application
5 =========================
6
7 The dpdk-procinfo application is a Data Plane Development Kit (DPDK) application
8 that runs as a DPDK secondary process and is capable of retrieving port
9 statistics, resetting port statistics, printing DPDK memory information and
10 displaying debug information for port.
11 This application extends the original functionality that was supported by
12 dump_cfg.
13
14 Running the Application
15 -----------------------
16 The application has a number of command line options:
17
18 .. code-block:: console
19
20    ./$(RTE_TARGET)/app/dpdk-procinfo -- -m | [-p PORTMASK] [--stats | --xstats |
21    --stats-reset | --xstats-reset] [ --show-port | --show-tm ]
22
23 Parameters
24 ~~~~~~~~~~
25 **-p PORTMASK**: Hexadecimal bitmask of ports to configure.
26
27 **--stats**
28 The stats parameter controls the printing of generic port statistics. If no
29 port mask is specified stats are printed for all DPDK ports.
30
31 **--xstats**
32 The xstats parameter controls the printing of extended port statistics. If no
33 port mask is specified xstats are printed for all DPDK ports.
34
35 **--stats-reset**
36 The stats-reset parameter controls the resetting of generic port statistics. If
37 no port mask is specified, the generic stats are reset for all DPDK ports.
38
39 **--xstats-reset**
40 The xstats-reset parameter controls the resetting of extended port statistics.
41 If no port mask is specified xstats are reset for all DPDK ports.
42
43 **-m**: Print DPDK memory information.
44
45 **--show-port**
46 The show-port parameter displays port level various configuration informationi
47 associated to RX port queue pair.
48
49 **--show-tm**
50 The show-tm parameter displays per port traffic manager settings, current
51 configurations and statistics.
52
53 Limitations
54 -----------
55
56 * dpdk-procinfo should run alongside primary process with same DPDK version.
57
58 * When running ``dpdk-procinfo`` with shared library mode, it is required to
59   pass the same NIC PMD libraries as used for the primary application. Any
60   mismatch in PMD library arguments can lead to undefined behaviour and results
61   affecting primary application too.
62
63 * Stats retrieval using ``dpdk-procinfo`` is not supported for virtual devices like PCAP and TAP.
64
65 * Since default DPDK EAL arguments for ``dpdk-procinfo`` are ``-c1, -n4 & --proc-type=secondary``,
66   It is not expected that the user passes any EAL arguments.