From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yang, Zhiyong" Subject: Re: [PATCH] mk: using initial-exec model for thread local variable Date: Sat, 28 Apr 2018 04:39:06 +0000 Message-ID: References: <1524909247-6581-1-git-send-email-yong.liu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Liu, Yong" , "Wang, Zhihong" To: "Liu, Yong" , "dev@dpdk.org" Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 17D6A4F94 for ; Sat, 28 Apr 2018 06:39:12 +0200 (CEST) In-Reply-To: <1524909247-6581-1-git-send-email-yong.liu@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Marvin Liu > Sent: Saturday, April 28, 2018 5:54 PM > To: dev@dpdk.org > Cc: Liu, Yong > Subject: [dpdk-dev] [PATCH] mk: using initial-exec model for thread local > variable >=20 > When building share library, thread-local storage model will be changed t= o > global-dynamic. It will cost additional protect for read thread local var= iable. By > now only lcore id is this kind of varaible and not need to dynamic share = with > other threads. So make TLS model back to initial-exec like static library= for > better performance. >=20 > Signed-off-by: Marvin Liu >=20 For vhost-user,=20 If no this pach, vhost user in shared lib perf drops 14.3% than working in = static. after applying the patch , vhost-user in shared lib can achieve the similar= perf as in static lib. Tested-by: Zhiyong Yang