Skip to content

fixes for rte_hash with TSX

Bruce Richardson dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v14 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hash: fix TSX aborts with newer gcclib/librte_hash/rte_cmp_x86.h lib/librte_hash/rte_cuckoo_hash.c+3 -20 replies
2/4hash: add local cache for TSX regionlib/librte_hash/rte_cuckoo_hash.c+3 -15 replies
3/4eal/x86: reduce contention when retrying TSXlib/librte_eal/common/include/arch/x86/rte_spinlock.h lib/librte_eal/linuxapp/eal/eal_alarm.c+19 -40 replies
4/4test/test: improve output for hash read-write testtest/test/test_hash_readwrite.c+11 -90 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchBruce Richardson
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] fixes for rte_hash with TSX

When testing with rte_hash library and TSX, a higher level of transaction aborts was observed in some cases, especially with newer compilers. These patches reduce aborts by ensuring that the compiler does not accidentally insert instructions that cause aborts, and by adding in delays on retry to avoid repeated collisions.

Bruce Richardson (2):
eal/x86: reduce contention when retrying TSX test/test: improve output for hash read-write test

Yipeng Wang (2):
hash: fix TSX aborts with newer gcc
hash: add local cache for TSX region

 .../common/include/arch/x86/rte_spinlock.h          | 21 +++++++++++++++++----
 lib/librte_eal/linuxapp/eal/eal_alarm.c             |  2 ++
 lib/librte_hash/rte_cmp_x86.h                       |  2 ++
 lib/librte_hash/rte_cuckoo_hash.c                   |  7 ++++---
 test/test/test_hash_readwrite.c                     | 20 +++++++++++---------
 5 files changed, 36 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.5.6