DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Is VFIO driver's performance better than IGB_UIO?
@ 2014-08-08  7:41 Linhaifeng
  2014-08-08  7:45 ` Vincent JARDIN
  0 siblings, 1 reply; 5+ messages in thread
From: Linhaifeng @ 2014-08-08  7:41 UTC (permalink / raw)
  To: dev; +Cc: lixiao (H), Guofeng (E)

I have test the VFIO driver and IGB_UIO driver by l2fwd for many times. I find that the VFIO driver’s performance is not better than the IGB_UIO.

Is something wrong with my test? My test is as follow:

1.       bind two 82599 ether to VFIO  ./tools/dpdk_nic_bind.py -b vfio-pci 03:00.0 03:00.1

2.       run the l2fwd to watch the stats info.

3.       Bind the 82599 ehter to IGB_UIO  ./tools/dpdk_nic_bind.py -b igb_uio 03:00.0 03:00.1

4.       run the l2fwd to watch the stats info.




The result of test is :(Mpps)
VFIO-64-PHY-PHY

IGBUIO-64-PHY-PHY

VFIO-512-PHY-PHY

IGBUIO-512-PHY-PHY

2.6235456

2.3467793

1.9432854

1.9432753

2.5724822

2.5405128

1.9432777

1.9432832

2.2418318

2.5154781

1.9395376

1.9432291

2.470847

2.551112

1.9432767

1.9432756

2.5092176

2.4965851

1.9432705

1.9432733

2.51572

2.4703292

1.9432637

1.9432669

2.6293656

2.472452

1.9432719

1.943283

2.480364

2.6295004

1.9432775

1.943286

2.4242182

2.613162

1.943268

1.9432663



I have two questions:

1.       If the result is wrong how can I test the VFIO and IGB_UIO

2.       If the result is normal why use VFIO?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] Is VFIO driver's performance better than IGB_UIO?
  2014-08-08  7:41 [dpdk-dev] Is VFIO driver's performance better than IGB_UIO? Linhaifeng
@ 2014-08-08  7:45 ` Vincent JARDIN
  2014-08-08  7:54   ` [dpdk-dev] 答复: " Linhaifeng
  0 siblings, 1 reply; 5+ messages in thread
From: Vincent JARDIN @ 2014-08-08  7:45 UTC (permalink / raw)
  To: Linhaifeng; +Cc: dev, Guofeng (E), lixiao (H)

On 08/08/2014 09:41, Linhaifeng wrote:
> I have test the VFIO driver and IGB_UIO driver by l2fwd for many times. I find that the VFIO driver’s performance is not better than the IGB_UIO.

You are right, under some conditions UIO is faster, VFIO provides
safety. The best solution is a PMD without UIO, neither VFIO.

which CPU are you using?

Best regards,
  Vincent

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] 答复:  Is VFIO driver's performance better than IGB_UIO?
  2014-08-08  7:45 ` Vincent JARDIN
@ 2014-08-08  7:54   ` Linhaifeng
  2014-08-08  9:23     ` [dpdk-dev] " Vincent JARDIN
  0 siblings, 1 reply; 5+ messages in thread
From: Linhaifeng @ 2014-08-08  7:54 UTC (permalink / raw)
  To: Vincent JARDIN; +Cc: dev, Guofeng (E), lixiao (H)

Thank you very much.

My cpu is "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz" 


-----邮件原件-----
发件人: Vincent JARDIN [mailto:vincent.jardin@6wind.com] 
发送时间: 2014年8月8日 15:46
收件人: Linhaifeng
抄送: dev@dpdk.org; lixiao (H); Guofeng (E)
主题: Re: [dpdk-dev] Is VFIO driver's performance better than IGB_UIO?

On 08/08/2014 09:41, Linhaifeng wrote:
> I have test the VFIO driver and IGB_UIO driver by l2fwd for many times. I find that the VFIO driver’s performance is not better than the IGB_UIO.

You are right, under some conditions UIO is faster, VFIO provides safety. The best solution is a PMD without UIO, neither VFIO.

which CPU are you using?

Best regards,
  Vincent

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev]  Is VFIO driver's performance better than IGB_UIO?
  2014-08-08  7:54   ` [dpdk-dev] 答复: " Linhaifeng
@ 2014-08-08  9:23     ` Vincent JARDIN
  2014-08-08 18:19       ` Chris Wright
  0 siblings, 1 reply; 5+ messages in thread
From: Vincent JARDIN @ 2014-08-08  9:23 UTC (permalink / raw)
  To: Linhaifeng; +Cc: dev, Guofeng (E), lixiao (H)

> My cpu is "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz"

It is a Westmere if I am correct. So,use UIO.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] Is VFIO driver's performance better than IGB_UIO?
  2014-08-08  9:23     ` [dpdk-dev] " Vincent JARDIN
@ 2014-08-08 18:19       ` Chris Wright
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Wright @ 2014-08-08 18:19 UTC (permalink / raw)
  To: Vincent JARDIN; +Cc: dev, Guofeng (E), lixiao (H)

* Vincent JARDIN (vincent.jardin@6wind.com) wrote:
> > My cpu is "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz"
> 
> It is a Westmere if I am correct. So,use UIO.

My experience is that the CPU isn't as an important part of the platform
as the chipset.  IOW, VFIO requires full IOMMU isolation, and the IOMMU
cost depends on the chipset.

Vincent, is that what you were implying by cpu, or do you see something
else?

thanks,
-chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-08 18:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08  7:41 [dpdk-dev] Is VFIO driver's performance better than IGB_UIO? Linhaifeng
2014-08-08  7:45 ` Vincent JARDIN
2014-08-08  7:54   ` [dpdk-dev] 答复: " Linhaifeng
2014-08-08  9:23     ` [dpdk-dev] " Vincent JARDIN
2014-08-08 18:19       ` Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).