2018-02-01 17:18:17 +00:00
|
|
|
.. SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
Copyright(c) 2015 Intel Corporation.
|
2015-07-15 13:11:32 +00:00
|
|
|
|
2016-07-20 13:38:54 +00:00
|
|
|
dpdk-procinfo Application
|
|
|
|
=========================
|
2015-07-15 13:11:32 +00:00
|
|
|
|
2016-07-20 13:38:54 +00:00
|
|
|
The dpdk-procinfo application is a Data Plane Development Kit (DPDK) application
|
2015-07-15 13:11:32 +00:00
|
|
|
that runs as a DPDK secondary process and is capable of retrieving port
|
2019-01-10 21:36:40 +00:00
|
|
|
statistics, resetting port statistics, printing DPDK memory information and
|
|
|
|
displaying debug information for port.
|
2015-07-15 13:11:32 +00:00
|
|
|
This application extends the original functionality that was supported by
|
|
|
|
dump_cfg.
|
|
|
|
|
|
|
|
Running the Application
|
|
|
|
-----------------------
|
|
|
|
The application has a number of command line options:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2020-10-21 08:17:21 +00:00
|
|
|
./<build_dir>/app/dpdk-procinfo -- -m | [-p PORTMASK] [--stats | --xstats |
|
2019-01-10 21:36:43 +00:00
|
|
|
--stats-reset | --xstats-reset] [ --show-port | --show-tm | --show-crypto |
|
2019-01-10 21:36:45 +00:00
|
|
|
--show-ring[=name] | --show-mempool[=name] | --iter-mempool=name ]
|
2015-07-15 13:11:32 +00:00
|
|
|
|
|
|
|
Parameters
|
|
|
|
~~~~~~~~~~
|
|
|
|
**-p PORTMASK**: Hexadecimal bitmask of ports to configure.
|
|
|
|
|
|
|
|
**--stats**
|
|
|
|
The stats parameter controls the printing of generic port statistics. If no
|
|
|
|
port mask is specified stats are printed for all DPDK ports.
|
|
|
|
|
|
|
|
**--xstats**
|
2017-01-05 21:36:09 +00:00
|
|
|
The xstats parameter controls the printing of extended port statistics. If no
|
2015-07-15 13:11:32 +00:00
|
|
|
port mask is specified xstats are printed for all DPDK ports.
|
|
|
|
|
|
|
|
**--stats-reset**
|
|
|
|
The stats-reset parameter controls the resetting of generic port statistics. If
|
|
|
|
no port mask is specified, the generic stats are reset for all DPDK ports.
|
|
|
|
|
|
|
|
**--xstats-reset**
|
|
|
|
The xstats-reset parameter controls the resetting of extended port statistics.
|
|
|
|
If no port mask is specified xstats are reset for all DPDK ports.
|
|
|
|
|
|
|
|
**-m**: Print DPDK memory information.
|
2018-01-24 16:47:26 +00:00
|
|
|
|
2019-01-10 21:36:40 +00:00
|
|
|
**--show-port**
|
2019-04-26 15:14:21 +00:00
|
|
|
The show-port parameter displays port level various configuration information
|
2019-01-10 21:36:40 +00:00
|
|
|
associated to RX port queue pair.
|
|
|
|
|
2019-01-10 21:36:41 +00:00
|
|
|
**--show-tm**
|
|
|
|
The show-tm parameter displays per port traffic manager settings, current
|
|
|
|
configurations and statistics.
|
|
|
|
|
2019-01-10 21:36:42 +00:00
|
|
|
**--show-crypto**
|
|
|
|
The show-crypto parameter displays available cryptodev configurations,
|
|
|
|
settings and stats per node.
|
|
|
|
|
2019-01-10 21:36:43 +00:00
|
|
|
**--show-ring[=name]**
|
2019-04-26 15:14:21 +00:00
|
|
|
The show-ring parameter display current allocation of all ring with
|
2019-01-10 21:36:43 +00:00
|
|
|
debug information. Specifying the name allows to display details for specific
|
|
|
|
ring. For invalid or no ring name, whole list is dump.
|
|
|
|
|
2019-01-10 21:36:44 +00:00
|
|
|
**--show-mempool[=name]**
|
|
|
|
The show-mempool parameter display current allocation of all mempool
|
|
|
|
debug information. Specifying the name allows to display details for specific
|
2019-11-12 19:33:41 +00:00
|
|
|
mempool. For invalid or no mempool name, whole list is dump.
|
2019-01-10 21:36:44 +00:00
|
|
|
|
2019-01-10 21:36:45 +00:00
|
|
|
**--iter-mempool=name**
|
|
|
|
The iter-mempool parameter iterates and displays mempool elements specified
|
|
|
|
by name. For invalid or no mempool name no elements are displayed.
|
|
|
|
|
2018-02-07 21:46:26 +00:00
|
|
|
Limitations
|
|
|
|
-----------
|
|
|
|
|
|
|
|
* dpdk-procinfo should run alongside primary process with same DPDK version.
|
|
|
|
|
|
|
|
* When running ``dpdk-procinfo`` with shared library mode, it is required to
|
|
|
|
pass the same NIC PMD libraries as used for the primary application. Any
|
2019-04-26 15:14:21 +00:00
|
|
|
mismatch in PMD library arguments can lead to undefined behavior and results
|
2018-02-07 21:46:26 +00:00
|
|
|
affecting primary application too.
|
|
|
|
|
|
|
|
* Stats retrieval using ``dpdk-procinfo`` is not supported for virtual devices like PCAP and TAP.
|
2018-01-24 16:47:26 +00:00
|
|
|
|
2018-02-07 21:46:26 +00:00
|
|
|
* Since default DPDK EAL arguments for ``dpdk-procinfo`` are ``-c1, -n4 & --proc-type=secondary``,
|
|
|
|
It is not expected that the user passes any EAL arguments.
|