[dpdk-dev] [PATCH v3 2/2] vhost: binary search address mapping table

2020-04-28 Thread Marvin Liu
If Tx zero copy enabled, gpa to hpa mapping table is updated one by one. This will harm performance when guest memory backend using 2M hugepages. Now utilize binary search to find the entry in mapping table, meanwhile set threshold to 256 entries for linear search. Signed-off-by: Marvin Liu diff

Re: [dpdk-dev] [PATCH v3 2/2] vhost: binary search address mapping table

2020-04-28 Thread Maxime Coquelin
On 4/28/20 11:13 AM, Marvin Liu wrote: > If Tx zero copy enabled, gpa to hpa mapping table is updated one by > one. This will harm performance when guest memory backend using 2M > hugepages. Now utilize binary search to find the entry in mapping > table, meanwhile set threshold to 256 entries fo

Re: [dpdk-dev] [PATCH v3 2/2] vhost: binary search address mapping table

2020-04-28 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin > Sent: Tuesday, April 28, 2020 11:28 PM > To: Liu, Yong ; Ye, Xiaolong ; > Wang, Zhihong > Cc: dev@dpdk.org > Subject: Re: [PATCH v3 2/2] vhost: binary search address mapping table > > > > On 4/28/20 11:13 AM, Marvin Liu wrote: > > If Tx