[dpdk-dev] [PATCH] mk: using initial-exec model for thread local variable
Yang, Zhiyong
zhiyong.yang at intel.com
Sat Apr 28 06:39:06 CEST 2018
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Marvin Liu
> Sent: Saturday, April 28, 2018 5:54 PM
> To: dev at dpdk.org
> Cc: Liu, Yong <yong.liu at intel.com>
> Subject: [dpdk-dev] [PATCH] mk: using initial-exec model for thread local
> variable
>
> When building share library, thread-local storage model will be changed to
> global-dynamic. It will cost additional protect for read thread local variable. 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.
>
> Signed-off-by: Marvin Liu <yong.liu at intel.com>
>
For vhost-user,
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 <zhiyong.yang at intel.com>
More information about the dev
mailing list