Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-27 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin > Sent: Monday, April 27, 2020 4:45 PM > To: Liu, Yong ; Ye, Xiaolong ; > Wang, Zhihong > Cc: dev@dpdk.org > Subject: Re: [PATCH v2 2/2] vhost: cache gpa to hpa translation > > Hi Marvin, > > On 4/1/20 4:50 PM, Marvin Liu wrote: > > If Tx

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-27 Thread Maxime Coquelin
Hi Marvin, On 4/1/20 4:50 PM, 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 add cached mapping table which will sorted by using > sequence. Address translation will first

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-03 Thread Ma, LihongX
v2 2/2] vhost: cache gpa to hpa translation > -Original Message- > From: Gavin Hu > Sent: Wednesday, April 1, 2020 6:07 PM > To: Liu, Yong ; maxime.coque...@redhat.com; Ye, > Xiaolong ; Wang, Zhihong > > Cc: dev@dpdk.org; nd > Subject: RE: [dpdk-dev] [PATCH

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-01 Thread Liu, Yong
> -Original Message- > From: Gavin Hu > Sent: Thursday, April 2, 2020 11:05 AM > To: Liu, Yong ; maxime.coque...@redhat.com; Ye, > Xiaolong ; Wang, Zhihong > > Cc: dev@dpdk.org; nd ; nd > Subject: RE: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa tr

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-01 Thread Gavin Hu
Hi Marvin, > -Original Message- > From: Liu, Yong > Sent: Wednesday, April 1, 2020 9:01 PM > To: Gavin Hu ; maxime.coque...@redhat.com; Ye, > Xiaolong ; Wang, Zhihong > > Cc: dev@dpdk.org; nd > Subject: RE: [dpdk-dev] [PATCH v2 2/2] vhost: cach

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-01 Thread Ye Xiaolong
On 04/01, 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 add cached mapping table which will sorted by using >sequence. Address translation will first check cached mapping tab

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-01 Thread Liu, Yong
> -Original Message- > From: Gavin Hu > Sent: Wednesday, April 1, 2020 6:07 PM > To: Liu, Yong ; maxime.coque...@redhat.com; Ye, > Xiaolong ; Wang, Zhihong > > Cc: dev@dpdk.org; nd > Subject: RE: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa tr

Re: [dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-01 Thread Gavin Hu
Hi Marvin, > -Original Message- > From: dev On Behalf Of Marvin Liu > Sent: Wednesday, April 1, 2020 10:50 PM > To: maxime.coque...@redhat.com; xiaolong...@intel.com; > zhihong.w...@intel.com > Cc: dev@dpdk.org; Marvin Liu > Subject: [dpdk-dev] [PATCH v2 2/2] vh

[dpdk-dev] [PATCH v2 2/2] vhost: cache gpa to hpa translation

2020-04-01 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 add cached mapping table which will sorted by using sequence. Address translation will first check cached mapping table, then check unsorted mapping