[dpdk-dev] RTM instruction compile failure for XABORT when AVX is active

2015-06-29 Thread Roman Dementiev
Hello Thomas, Sunday, June 28, 2015, 9:38:14 PM, you wrote: > 2015-06-28 10:59, Matthew Hall: >> It would appear there is some bug in the new lock elision patches that is >> preventing it from compiling with clang. Any suggestions? > It builds with clang. > My suggestion is to add the patch aut

[dpdk-dev] [PATCH v3 3/3] test scaling of HTM lock elision protecting rte_hash

2015-06-19 Thread Roman Dementiev
This patch adds a new auto-test for testing the scaling of concurrent inserts into rte_hash when protected by the normal spinlock vs. the spinlock with HTM lock elision. The test also benchmarks single-threaded access without any locks. Signed-off-by: Roman Dementiev Acked-by: Bruce Richardson

[dpdk-dev] [PATCH v3 2/3] rwlock: add support for HTM lock elision for x86

2015-06-19 Thread Roman Dementiev
transaction since the CPU is not able to roll-back should the transaction fail. Therefore, hardware transactional locks are not advised to be used around rte_eth_rx_burst() and rte_eth_tx_burst() calls. Signed-off-by: Roman Dementiev Acked-by: Bruce Richardson --- lib/librte_eal/common/Makefile

[dpdk-dev] [PATCH v3 1/3] spinlock: add support for HTM lock elision for x86

2015-06-19 Thread Roman Dementiev
aborts the transaction since the CPU is not able to roll-back should the transaction fail. Therefore, hardware transactional locks are not advised to be used around rte_eth_rx_burst() and rte_eth_tx_burst() calls. Signed-off-by: Roman Dementiev Acked-by: Bruce Richardson --- .../common/include/arch

[dpdk-dev] [PATCH v3 0/3] add support for HTM lock elision for x86

2015-06-19 Thread Roman Dementiev
-don't use angle brackets for rte_common.h include v2 changes -added a documentation note about hardware limitations Roman Dementiev (3): spinlock: add support for HTM lock elision for x86 rwlock: add support for HTM lock elision for x86 test scaling of HTM lock elision protecting rte

[dpdk-dev] [PATCH v2 3/3] test scaling of HTM lock elision protecting rte_hash

2015-06-16 Thread Roman Dementiev
This patch adds a new auto-test for testing the scaling of concurrent inserts into rte_hash when protected by the normal spinlock vs. the spinlock with HTM lock elision. The test also benchmarks single-threaded access without any locks. Signed-off-by: Roman Dementiev --- app/test/Makefile

[dpdk-dev] [PATCH v2 2/3] rwlock: add support for HTM lock elision for x86

2015-06-16 Thread Roman Dementiev
transaction since the CPU is not able to roll-back should the transaction fail. Therefore, hardware transactional locks are not advised to be used around rte_eth_rx_burst() and rte_eth_tx_burst() calls. Signed-off-by: Roman Dementiev --- lib/librte_eal/common/Makefile | 4

[dpdk-dev] [PATCH v2 1/3] spinlock: add support for HTM lock elision for x86

2015-06-16 Thread Roman Dementiev
aborts the transaction since the CPU is not able to roll-back should the transaction fail. Therefore, hardware transactional locks are not advised to be used around rte_eth_rx_burst() and rte_eth_tx_burst() calls. Signed-off-by: Roman Dementiev --- .../common/include/arch/ppc_64/rte_spinlock.h

[dpdk-dev] [PATCH v2 0/3] add support for HTM lock elision for x86

2015-06-16 Thread Roman Dementiev
aborts the transaction since the CPU is not able to roll-back should the transaction fail. Therefore, hardware transactional locks are not advised to be used around rte_eth_rx_burst() and rte_eth_tx_burst() calls. v2 changes -added a documentation note about hardware limitations Roman Dementiev

[dpdk-dev] add support for HTM lock elision for x86

2015-06-05 Thread Roman Dementiev
Hello Stephen, Wednesday, June 3, 2015, 8:40:14 PM, you wrote: > On Tue, 2 Jun 2015 15:11:30 +0200 > Roman Dementiev wrote: >> >> This series of patches adds methods that use hardware memory transactions >> (HTM) >> on fast-path for DPDK locks (a.k.a. lock

[dpdk-dev] add support for HTM lock elision for x86

2015-06-02 Thread Roman Dementiev
Hello Jay, Tuesday, June 2, 2015, 3:21:24 PM, you wrote: > On Tue, Jun 2, 2015 at 8:11 AM, Roman Dementiev intel.com>wrote: > This series of patches adds methods that use hardware memory transactions > (HTM) > on fast-path for DPDK locks (a.k.a. lock elision). Here

[dpdk-dev] [PATCH 3/3] test scaling of HTM lock elision protecting rte_hash

2015-06-02 Thread Roman Dementiev
This patch adds a new auto-test for testing the scaling of concurrent inserts into rte_hash when protected by the normal spinlock vs. the spinlock with HTM lock elision. The test also benchmarks single-threaded access without any locks. Signed-off-by: Roman Dementiev --- app/test/Makefile

[dpdk-dev] [PATCH 2/3] rwlock: add support for HTM lock elision for x86

2015-06-02 Thread Roman Dementiev
normal rwlock if HTM is not available or memory transactions fail. This is not a replacement for all rwlock usages since not all critical sections protected by locks are friendly to HTM. Signed-off-by: Roman Dementiev --- lib/librte_eal/common/Makefile | 4 +- .../common

[dpdk-dev] [PATCH 1/3] spinlock: add support for HTM lock elision for x86

2015-06-02 Thread Roman Dementiev
the normal spinlock if HTM is not available or memory transactions fail. This is not a replacement for all spinlock usages since not all critical sections protected by spinlocks are friendly to HTM. Signed-off-by: Roman Dementiev --- .../common/include/arch/ppc_64/rte_spinlock.h | 41

[dpdk-dev] add support for HTM lock elision for x86

2015-06-02 Thread Roman Dementiev
implementation fall-backs to the normal DPDK lock if HTM is not available or memory transactions fail. This is not a replacement for lock usages since not all critical sections protected by locks are friendly to HTM. Roman Dementiev (3): spinlock: add support for HTM lock elision for x86 rwlock: add