Skip to content

improve telemetry support with in-memory mode

Bruce Richardson dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 2 repliesIn review
  2. v84 patches 5 repliesSuperseded
  3. v75 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v65 patches9 repliesSuperseded
v55 patches0 repliesSuperseded
v45 patches0 repliesSuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4eal: limit telemetry to primary processeslib/eal/freebsd/eal.c lib/eal/linux/eal.c+2 -20 replies
2/4telemetry: fix socket path conflicts for in-memory modelib/telemetry/telemetry.c+49 -160 replies
3/4usertools/dpdk-telemetry: connect to separate instancesdoc/guides/howto/telemetry.rst usertools/dpdk-telemetry.py+47 -10 replies
4/4usertools/dpdk-telemetry: provide info on available socketsusertools/dpdk-telemetry.py+37 -50 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCiara PowerConor WalshKevin Traynor
1/4A-b T-b
2/4A-b T-b A-b
3/4A-b T-b
4/4A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v9 thread

Cover letter [dpdk-dev] [PATCH v9 0/4] improve telemetry support with in-memory mode

This patchset cleans up telemetry support for "in-memory" mode, so that multiple independent processes can be run using that mode and still have telemetry support. It also removes problems of one process removing the socket of another - which was the original issue reported. The main changes in this set are to:

* disable telemetry for secondary processes, which prevents any socket conflicts in multi-process cases.
* when multiple processes are run using the same runtime directory (i.e. "in-memory" mode or similar), add a counter suffix to the socket names to avoid conflicts over the socket. Each process will use the lowest available suffix, with the first process using the directory, not adding any suffix.
* update the telemetry script and documentation to allow it to connect to in-memory DPDK processes.

---
V9: sort output lines in help text in script

V8: Merged patches 2 & 3 of the set together. Fixed some checkpatch warnings flagged by the CI.

V7: Change from adding a pid suffix generally in "in-memory" mode, to adding an increasing counter as a suffix in case of name conflicts generally. This achieves the same result in terms of connectivity, but keeps compatibility of behaviour for the case of a single in-memory process, while also providing predictable more socket names for each process i.e. 4 running in-memory instances they will always use suffixes 1-3 for the extra 3 sockets, even across restarts.

V6: fixed issue whereby the failing of the legacy telemetry init would roll-back init of the v2 telemetry, causing the socket to be deleted, even though it was still necessary.

V5: Rebase on latest main after other script cleanups were merged

V4: Move from simple-fix patch to proper fix patchset

V3: Drop CC stable, as will have separate backport patch which does not error out, so avoiding causing problems with currently running application

V2: fix build error on FreeBSD

Bruce Richardson (4):
eal: limit telemetry to primary processes
telemetry: fix socket path conflicts for in-memory mode usertools/dpdk-telemetry: connect to separate instances usertools/dpdk-telemetry: provide info on available sockets

 doc/guides/howto/telemetry.rst | 41 +++++++++++++++++++++
 lib/eal/freebsd/eal.c          |  2 +-
 lib/eal/linux/eal.c            |  2 +-
 lib/telemetry/telemetry.c      | 65 +++++++++++++++++++++++++---------
 usertools/dpdk-telemetry.py    | 45 ++++++++++++++++++++---
 5 files changed, 133 insertions(+), 22 deletions(-)

--
2.30.2