Skip to contentSkip to conversation

Is vhost vring_avail size tunable?

DISCUSSION Tim Deng 3 participants 4 messages Jun 7, 2015 – Jun 10, 2015

lore
Share & tools
lore

Tim Deng

author
#0 lore raw

Hi,

Under heavy work load, I found there were some packet lost caused by "Failed to get enough desc from vring...", is there any way to get the vring size larger?

Thanks,
Tim

#1 lore raw
Quoted 8 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Tim Deng
Sent: Sunday, June 7, 2015 4:02 PM
To: [email protected]
Subject: [dpdk-dev] Is vhost vring_avail size tunable?

Quoted 6 lines

Hi,

Under heavy work load, I found there were some packet lost caused by "Failed to get enough desc from vring...", is there any way to get the vring size larger?

Qemu has hard code to set the vring size as 256, you need change the value to a bigger one if you want to enlarge it.

Thanks
Changchun

author
#2 lore raw

Thank you Changchun!

Tim

Quoted 20 lines · Changchun
Quoted 8 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Tim Deng
Sent: Sunday, June 7, 2015 4:02 PM
To: [email protected]
Subject: [dpdk-dev] Is vhost vring_avail size tunable?

Quoted 6 lines

Hi,

Under heavy work load, I found there were some packet lost caused by "Failed to get enough desc from vring...", is there any way to get the vring size larger?

Qemu has hard code to set the vring size as 256, you need change the value to a bigger one if you want to enlarge it.

Thanks
Changchun

#3 lore raw
In reply to Tim Deng
Quoted 9 lines · On Sun, 7 Jun 2015 16:02:04 +0800 (CST) "Tim Deng" <[email protected]> wrote:

Hi,

Under heavy work load, I found there were some packet lost caused by "Failed to get enough desc from vring...", is there any way to get the vring size larger?

Thanks,
Tim

One thing that could help the DPDK virtio driver would be to support INDIRECT descriptors. By using that, it is possible to get 256 packets into the 256 slots in QEMU. Currently half the slots are taken by headers.

The implementation of vhost driver likewise needs to get support for INDIRECT descriptors and some other features in order to use slots more efficiently.