From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2018 21:39:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,337,1520924400"; d="scan'208";a="45227908" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 27 Apr 2018 21:39:11 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 27 Apr 2018 21:39:11 -0700 Received: from bgsmsx103.gar.corp.intel.com (10.223.4.130) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 27 Apr 2018 21:39:10 -0700 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.242]) by BGSMSX103.gar.corp.intel.com ([169.254.4.161]) with mapi id 14.03.0319.002; Sat, 28 Apr 2018 10:09:08 +0530 From: "Yang, Zhiyong" To: "Liu, Yong" , "dev@dpdk.org" CC: "Liu, Yong" , "Wang, Zhihong" Thread-Topic: [dpdk-dev] [PATCH] mk: using initial-exec model for thread local variable Thread-Index: AQHT3pWCrFuZI13RVEmSZ8NuA8GogqQVlqOw Date: Sat, 28 Apr 2018 04:39:06 +0000 Message-ID: References: <1524909247-6581-1-git-send-email-yong.liu@intel.com> In-Reply-To: <1524909247-6581-1-git-send-email-yong.liu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] mk: using initial-exec model for thread local variable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 04:39:13 -0000 > -----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