From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 0/3] add support for HTM lock elision for x86 Date: Fri, 19 Jun 2015 16:38:06 +0200 Message-ID: <22085904.U2abn9Fdft@xps13> References: <1434475006-13732-1-git-send-email-roman.dementiev@intel.com> <1434712103-7500-1-git-send-email-roman.dementiev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Roman Dementiev Return-path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 2ED04C850 for ; Fri, 19 Jun 2015 16:39:09 +0200 (CEST) Received: by wgbhy7 with SMTP id hy7so91452586wgb.2 for ; Fri, 19 Jun 2015 07:39:09 -0700 (PDT) In-Reply-To: <1434712103-7500-1-git-send-email-roman.dementiev@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-06-19 13:08, Roman Dementiev: > This series of patches adds methods that use hardware memory transactions (HTM) > on fast-path for DPDK locks (a.k.a. lock elision). Here the methods are > implemented for x86 using Restricted Transactional Memory instructions (Intel(r) > Transactional Synchronization Extensions). The implementation fall-backs to > the normal DPDK lock if HTM is not available or memory transactions fail. This > is not a replacement for ALL lock usages since not all critical sections > protected by locks are friendly to HTM. For example, an attempt to perform > a HW I/O operation inside a hardware memory transaction always 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. > > Acked-by: Bruce Richardson > > v3 changes > -resolved a conflict in app/test/Makefile > -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_hash Applied, thanks