* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
[not found] ` <55FFBEF6.3020000@redhat.com>
@ 2015-09-21 18:34 ` Marcel Apfelbaum
2015-09-22 5:43 ` Star Chang
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Apfelbaum @ 2015-09-21 18:34 UTC (permalink / raw)
To: Star Chang; +Cc: qemu-devel
On 09/21/2015 11:25 AM, Marcel Apfelbaum wrote:
> On 09/21/2015 08:01 AM, Star Chang wrote:
>> Hi Marcel:
>>
>> Many thanks for you to contribute wiki page in how to configuring vhost-user type with openvsitch/qemu in VM environment.
>>
>> We bring 2 VMs up with vhost-user type. We can see eth0 interfaces created in 2 VMs with proper mac address we assign. After IP address assignment, 2 VMs could not PING to each other when they are in
>> the same subnet. There are not packets at all in count when running ovs-ofctl dump-ports :(
>>
>> However, we check link up state via ovs-ofctl utility but LINK_DOWN as below. Have any one with experiences and give some helps … Thanks!!
>>
>
> Hi,
>
> I would look into OVS log for specific issues:
>
> journalctl --since `date +%T --date="-10 minutes"`
>
> The above command will show you the last 10 minutes log.
> You are welcomed to show us the log.
>
I forgot to CC the list.
Thanks,
Marcel
> Thanks,
> Marcel
>
>> $ sudo ./utilities/ovs-ofctl show ovsbr0
>> OFPT_FEATURES_REPLY (xid=0x2): dpid:00000670da615e4a
>> n_tables:254, n_buffers:256
>> capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
>> actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
>> 1(vhost-user1): addr:00:00:00:00:00:00
>> config: PORT_DOWN
>> state: LINK_DOWN
>> speed: 0 Mbps now, 0 Mbps max
>> 2(vhost-user2): addr:00:00:00:00:00:00
>> config: PORT_DOWN
>> state: LINK_DOWN
>> speed: 0 Mbps now, 0 Mbps max
>> LOCAL(ovsbr0): addr:06:70:da:61:5e:4a
>> config: PORT_DOWN
>> state: LINK_DOWN
>> current: 10MB-FD COPPER
>> speed: 10 Mbps now, 0 Mbps max
>> OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
>>
>>
>>
>> Thanks,
>> Star
>>
>> --
>> The future belongs to those who believe in the beauty of their dreams.
>>
>>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-21 18:34 ` [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend Marcel Apfelbaum
@ 2015-09-22 5:43 ` Star Chang
2015-09-22 7:06 ` Marcel Apfelbaum
2015-09-22 14:17 ` Alexandre DERUMIER
0 siblings, 2 replies; 11+ messages in thread
From: Star Chang @ 2015-09-22 5:43 UTC (permalink / raw)
To: Marcel Apfelbaum; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 3354 bytes --]
Thanks Marcel!!!
After tailing the logs and basic troubleshooting, we finally can have 2 VMs
to ping to each other. One dpdkvhostuser interface is for each VM and we
have to new add flows based on dpdkvhostuser ofport numbers.
Another issue we might post it to proper mail loop is that we run
pktgen-dpdk 2.9.1 inside of VM but no packets counted from pktgen terminal
display. It is so weird that we only see 128 tx packets bursted out and
then nothing is continue working. After that, we try to dump-flows via
ovs-ofctl utility but it shows "connection refued". I am not sure have any
one of you guys ideas here? Thanks!!!
Bridge "ovsbr0"
Port "ovsbr0"
Interface "ovsbr0"
type: internal
Port "dpdk1"
Interface "dpdk1"
type: dpdk
Port "dpdk0"
Interface "dpdk0"
type: dpdk
Port "vhost-user1"
Interface "vhost-user1"
type: dpdkvhostuser
Port "vhost-user0"
Interface "vhost-user0"
type: dpdkvhostuser
On Tue, Sep 22, 2015 at 2:34 AM, Marcel Apfelbaum <marcel@redhat.com> wrote:
> On 09/21/2015 11:25 AM, Marcel Apfelbaum wrote:
>
>> On 09/21/2015 08:01 AM, Star Chang wrote:
>>
>>> Hi Marcel:
>>>
>>> Many thanks for you to contribute wiki page in how to configuring
>>> vhost-user type with openvsitch/qemu in VM environment.
>>>
>>> We bring 2 VMs up with vhost-user type. We can see eth0 interfaces
>>> created in 2 VMs with proper mac address we assign. After IP address
>>> assignment, 2 VMs could not PING to each other when they are in
>>> the same subnet. There are not packets at all in count when running
>>> ovs-ofctl dump-ports :(
>>>
>>> However, we check link up state via ovs-ofctl utility but LINK_DOWN as
>>> below. Have any one with experiences and give some helps … Thanks!!
>>>
>>>
>> Hi,
>>
>> I would look into OVS log for specific issues:
>>
>> journalctl --since `date +%T --date="-10 minutes"`
>>
>> The above command will show you the last 10 minutes log.
>> You are welcomed to show us the log.
>>
>>
> I forgot to CC the list.
>
> Thanks,
> Marcel
>
>
> Thanks,
>> Marcel
>>
>> $ sudo ./utilities/ovs-ofctl show ovsbr0
>>> OFPT_FEATURES_REPLY (xid=0x2): dpid:00000670da615e4a
>>> n_tables:254, n_buffers:256
>>> capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
>>> actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
>>> mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
>>> 1(vhost-user1): addr:00:00:00:00:00:00
>>> config: PORT_DOWN
>>> state: LINK_DOWN
>>> speed: 0 Mbps now, 0 Mbps max
>>> 2(vhost-user2): addr:00:00:00:00:00:00
>>> config: PORT_DOWN
>>> state: LINK_DOWN
>>> speed: 0 Mbps now, 0 Mbps max
>>> LOCAL(ovsbr0): addr:06:70:da:61:5e:4a
>>> config: PORT_DOWN
>>> state: LINK_DOWN
>>> current: 10MB-FD COPPER
>>> speed: 10 Mbps now, 0 Mbps max
>>> OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
>>>
>>>
>>>
>>> Thanks,
>>> Star
>>>
>>> --
>>> The future belongs to those who believe in the beauty of their dreams.
>>>
>>>
>>>
>>
>
--
The future belongs to those who believe in the beauty of their dreams.
[-- Attachment #2: Type: text/html, Size: 5951 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-22 5:43 ` Star Chang
@ 2015-09-22 7:06 ` Marcel Apfelbaum
2015-09-22 14:17 ` Alexandre DERUMIER
1 sibling, 0 replies; 11+ messages in thread
From: Marcel Apfelbaum @ 2015-09-22 7:06 UTC (permalink / raw)
To: Star Chang; +Cc: qemu-devel
On 09/22/2015 08:43 AM, Star Chang wrote:
> Thanks Marcel!!!
>
> After tailing the logs and basic troubleshooting, we finally can have 2 VMs to ping to each other. One dpdkvhostuser interface is for each VM and we have to new add flows based on dpdkvhostuser ofport
> numbers.
Hi,
Good to hear this!
If you think I should add something to the wiki please do tell.
>
> Another issue we might post it to proper mail loop is that we run pktgen-dpdk 2.9.1 inside of VM but no packets counted from pktgen terminal display. It is so weird that we only see 128 tx packets
> bursted out and then nothing is continue working. After that, we try to dump-flows via ovs-ofctl utility but it shows "connection refued". I am not sure have any one of you guys ideas here? Thanks!!!
>
I am sorry but my OVS knowledge is rather limited. I think this is a question for the OVS mailing list.
Thanks,
Marcel
>
> Bridge "ovsbr0"
>
> Port "ovsbr0"
>
> Interface "ovsbr0"
>
> type: internal
>
> Port "dpdk1"
>
> Interface "dpdk1"
>
> type: dpdk
>
> Port "dpdk0"
>
> Interface "dpdk0"
>
> type: dpdk
>
> Port "vhost-user1"
>
> Interface "vhost-user1"
>
> type: dpdkvhostuser
>
> Port "vhost-user0"
>
> Interface "vhost-user0"
>
> type: dpdkvhostuser
>
>
> On Tue, Sep 22, 2015 at 2:34 AM, Marcel Apfelbaum <marcel@redhat.com <mailto:marcel@redhat.com>> wrote:
>
> On 09/21/2015 11:25 AM, Marcel Apfelbaum wrote:
>
> On 09/21/2015 08:01 AM, Star Chang wrote:
>
> Hi Marcel:
>
> Many thanks for you to contribute wiki page in how to configuring vhost-user type with openvsitch/qemu in VM environment.
>
> We bring 2 VMs up with vhost-user type. We can see eth0 interfaces created in 2 VMs with proper mac address we assign. After IP address assignment, 2 VMs could not PING to each other when
> they are in
> the same subnet. There are not packets at all in count when running ovs-ofctl dump-ports :(
>
> However, we check link up state via ovs-ofctl utility but LINK_DOWN as below. Have any one with experiences and give some helps … Thanks!!
>
>
> Hi,
>
> I would look into OVS log for specific issues:
>
> journalctl --since `date +%T --date="-10 minutes"`
>
> The above command will show you the last 10 minutes log.
> You are welcomed to show us the log.
>
>
> I forgot to CC the list.
>
> Thanks,
> Marcel
>
>
> Thanks,
> Marcel
>
> $ sudo ./utilities/ovs-ofctl show ovsbr0
> OFPT_FEATURES_REPLY (xid=0x2): dpid:00000670da615e4a
> n_tables:254, n_buffers:256
> capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
> actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
> 1(vhost-user1): addr:00:00:00:00:00:00
> config: PORT_DOWN
> state: LINK_DOWN
> speed: 0 Mbps now, 0 Mbps max
> 2(vhost-user2): addr:00:00:00:00:00:00
> config: PORT_DOWN
> state: LINK_DOWN
> speed: 0 Mbps now, 0 Mbps max
> LOCAL(ovsbr0): addr:06:70:da:61:5e:4a
> config: PORT_DOWN
> state: LINK_DOWN
> current: 10MB-FD COPPER
> speed: 10 Mbps now, 0 Mbps max
> OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
>
>
>
> Thanks,
> Star
>
> --
> The future belongs to those who believe in the beauty of their dreams.
>
>
>
>
>
>
>
> --
> The future belongs to those who believe in the beauty of their dreams.
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-22 5:43 ` Star Chang
2015-09-22 7:06 ` Marcel Apfelbaum
@ 2015-09-22 14:17 ` Alexandre DERUMIER
2015-09-22 14:53 ` Marcel Apfelbaum
1 sibling, 1 reply; 11+ messages in thread
From: Alexandre DERUMIER @ 2015-09-22 14:17 UTC (permalink / raw)
To: Star Chang; +Cc: Marcel Apfelbaum, qemu-devel
Hi,
Ovs documentation say that 1GB hugepage are needed
https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md
is is true ? (as the wiki say 2M hugepages)
----- Mail original -----
De: "Star Chang" <star.idv@gmail.com>
À: "Marcel Apfelbaum" <marcel@redhat.com>
Cc: "qemu-devel" <qemu-devel@nongnu.org>
Envoyé: Mardi 22 Septembre 2015 07:43:13
Objet: Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
Thanks Marcel!!!
After tailing the logs and basic troubleshooting, we finally can have 2 VMs to ping to each other. One dpdkvhostuser interface is for each VM and we have to new add flows based on dpdkvhostuser ofport numbers.
Another issue we might post it to proper mail loop is that we run pktgen-dpdk 2.9.1 inside of VM but no packets counted from pktgen terminal display. It is so weird that we only see 128 tx packets bursted out and then nothing is continue working. After that, we try to dump-flows via ovs-ofctl utility but it shows "connection refued". I am not sure have any one of you guys ideas here? Thanks!!!
Bridge "ovsbr0"
Port "ovsbr0"
Interface "ovsbr0"
type: internal
Port "dpdk1"
Interface "dpdk1"
type: dpdk
Port "dpdk0"
Interface "dpdk0"
type: dpdk
Port "vhost-user1"
Interface "vhost-user1"
type: dpdkvhostuser
Port "vhost-user0"
Interface "vhost-user0"
type: dpdkvhostuser
On Tue, Sep 22, 2015 at 2:34 AM, Marcel Apfelbaum < marcel@redhat.com > wrote:
On 09/21/2015 11:25 AM, Marcel Apfelbaum wrote:
BQ_BEGIN
On 09/21/2015 08:01 AM, Star Chang wrote:
BQ_BEGIN
Hi Marcel:
Many thanks for you to contribute wiki page in how to configuring vhost-user type with openvsitch/qemu in VM environment.
We bring 2 VMs up with vhost-user type. We can see eth0 interfaces created in 2 VMs with proper mac address we assign. After IP address assignment, 2 VMs could not PING to each other when they are in
the same subnet. There are not packets at all in count when running ovs-ofctl dump-ports :(
However, we check link up state via ovs-ofctl utility but LINK_DOWN as below. Have any one with experiences and give some helps … Thanks!!
Hi,
I would look into OVS log for specific issues:
journalctl --since `date +%T --date="-10 minutes"`
The above command will show you the last 10 minutes log.
You are welcomed to show us the log.
BQ_END
I forgot to CC the list.
Thanks,
Marcel
BQ_BEGIN
Thanks,
Marcel
BQ_BEGIN
$ sudo ./utilities/ovs-ofctl show ovsbr0
OFPT_FEATURES_REPLY (xid=0x2): dpid:00000670da615e4a
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
1(vhost-user1): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
2(vhost-user2): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
LOCAL(ovsbr0): addr:06:70:da:61:5e:4a
config: PORT_DOWN
state: LINK_DOWN
current: 10MB-FD COPPER
speed: 10 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
Thanks,
Star
--
The future belongs to those who believe in the beauty of their dreams.
BQ_END
BQ_END
BQ_END
--
The future belongs to those who believe in the beauty of their dreams.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-22 14:17 ` Alexandre DERUMIER
@ 2015-09-22 14:53 ` Marcel Apfelbaum
0 siblings, 0 replies; 11+ messages in thread
From: Marcel Apfelbaum @ 2015-09-22 14:53 UTC (permalink / raw)
To: Alexandre DERUMIER, Star Chang; +Cc: qemu-devel
On 09/22/2015 05:17 PM, Alexandre DERUMIER wrote:
> Hi,
>
> Ovs documentation say that 1GB hugepage are needed
> https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md
>
> is is true ? (as the wiki say 2M hugepages)
Not for this scenario :) . For this one 2M hugepages are enough (tested already by a few developers), try it in your laptop!
Thanks,
Marcel
>
>
> ----- Mail original -----
> De: "Star Chang" <star.idv@gmail.com>
> À: "Marcel Apfelbaum" <marcel@redhat.com>
> Cc: "qemu-devel" <qemu-devel@nongnu.org>
> Envoyé: Mardi 22 Septembre 2015 07:43:13
> Objet: Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
>
> Thanks Marcel!!!
>
>
> After tailing the logs and basic troubleshooting, we finally can have 2 VMs to ping to each other. One dpdkvhostuser interface is for each VM and we have to new add flows based on dpdkvhostuser ofport numbers.
>
>
> Another issue we might post it to proper mail loop is that we run pktgen-dpdk 2.9.1 inside of VM but no packets counted from pktgen terminal display. It is so weird that we only see 128 tx packets bursted out and then nothing is continue working. After that, we try to dump-flows via ovs-ofctl utility but it shows "connection refued". I am not sure have any one of you guys ideas here? Thanks!!!
>
>
>
>
>
> Bridge "ovsbr0"
>
> Port "ovsbr0"
>
> Interface "ovsbr0"
>
> type: internal
>
> Port "dpdk1"
>
> Interface "dpdk1"
>
> type: dpdk
>
> Port "dpdk0"
>
> Interface "dpdk0"
>
> type: dpdk
>
> Port "vhost-user1"
>
> Interface "vhost-user1"
>
> type: dpdkvhostuser
>
> Port "vhost-user0"
>
> Interface "vhost-user0"
>
> type: dpdkvhostuser
>
> On Tue, Sep 22, 2015 at 2:34 AM, Marcel Apfelbaum < marcel@redhat.com > wrote:
>
>
> On 09/21/2015 11:25 AM, Marcel Apfelbaum wrote:
>
> BQ_BEGIN
> On 09/21/2015 08:01 AM, Star Chang wrote:
>
> BQ_BEGIN
> Hi Marcel:
>
> Many thanks for you to contribute wiki page in how to configuring vhost-user type with openvsitch/qemu in VM environment.
>
> We bring 2 VMs up with vhost-user type. We can see eth0 interfaces created in 2 VMs with proper mac address we assign. After IP address assignment, 2 VMs could not PING to each other when they are in
> the same subnet. There are not packets at all in count when running ovs-ofctl dump-ports :(
>
> However, we check link up state via ovs-ofctl utility but LINK_DOWN as below. Have any one with experiences and give some helps … Thanks!!
>
>
>
>
> Hi,
>
> I would look into OVS log for specific issues:
>
> journalctl --since `date +%T --date="-10 minutes"`
>
> The above command will show you the last 10 minutes log.
> You are welcomed to show us the log.
>
>
> BQ_END
>
> I forgot to CC the list.
>
> Thanks,
> Marcel
>
>
>
> BQ_BEGIN
> Thanks,
> Marcel
>
>
> BQ_BEGIN
> $ sudo ./utilities/ovs-ofctl show ovsbr0
> OFPT_FEATURES_REPLY (xid=0x2): dpid:00000670da615e4a
> n_tables:254, n_buffers:256
> capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
> actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
> 1(vhost-user1): addr:00:00:00:00:00:00
> config: PORT_DOWN
> state: LINK_DOWN
> speed: 0 Mbps now, 0 Mbps max
> 2(vhost-user2): addr:00:00:00:00:00:00
> config: PORT_DOWN
> state: LINK_DOWN
> speed: 0 Mbps now, 0 Mbps max
> LOCAL(ovsbr0): addr:06:70:da:61:5e:4a
> config: PORT_DOWN
> state: LINK_DOWN
> current: 10MB-FD COPPER
> speed: 10 Mbps now, 0 Mbps max
> OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
>
>
>
> Thanks,
> Star
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
@ 2015-09-18 17:16 chandrasekar kannan
2015-09-20 9:13 ` Marcel Apfelbaum
0 siblings, 1 reply; 11+ messages in thread
From: chandrasekar kannan @ 2015-09-18 17:16 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 2338 bytes --]
http://wiki.qemu.org/Features/vhost-user-ovs-dpdk
I'm running to problems attempting to try this out. qemu errors out with
qemu-system-x86_64: -object
memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on:
unable to map backing store for hugepages: Cannot allocate memory
http://pastebin.com/raw.php?i=kSkU8S03
Could someone take a look at this and see what might be wrong ?
thanks,
-Chandra
On Thu, Sep 17, 2015 at 01:08:36PM +0300, Marcel Apfelbaum wrote:
>* On 09/16/2015 08:44 PM, Flavio Leitner wrote:*
>* >On Thu, Sep 10, 2015 at 10:51:19PM +0300, Marcel Apfelbaum wrote:*
>* >>Hi,*
>* >>*
>* >>The page describes how to setup an environment that allows *
>* >>testing/developing*
>* >>vhost-user using ovs (with dpdk) as backend.*
>* >>*
>* >>A regular pc machine can be used, no need for several hosts, a 'dpdk *
>* >>enabled' NIC or 1G huge-pages.*
>* >>*
>* >>The goal is to connect guests' virtio-net devices having vhost-user backend *
>* >>to OVS dpdkvhostuser ports*
>* >>and be able to run any kind of network traffic between them.*
>* >>*
>* >>The page can be found at:*
>* >>http://wiki.qemu.org/Features/vhost-user-ovs-dpdk <http://wiki.qemu.org/Features/vhost-user-ovs-dpdk>*
>* >>*
>* >>I want to keep it as simple as possible.*
>* >>If you see steps that can be skipped or unneeded configuration please let *
>* >>me know*
>* >>or feel free to update the page.*
>* >*
>* >I gave a quick look and found couple issues. It seems to be missing*
>* >the installing steps for qemu. Also the eventfd_link module is only*
>* >needed for vhost-cuse, so you don't need to build/install/load at all.*
>* Hi Flavio,*
>* Thank you for reviewing the document!*
>
>* For some reason I thought we still need eventfd_link to notify the guests*
>* when new packets arrive. Indeed we don't need this anymore, I updated the *
>* wiki page.*
> We use the one provided by kernel. The eventfd_link on DPDK is special for
> vhost-cuse:
> https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md#dpdk-vhost-cuse-prerequisites
>* Regarding QEMU, can you please point me to the missing setup steps?*
>* (I think I already took care of them, anyway I want to be sure)*
> Yup, I missed that you are running qemu from the builddir, not from
> the system, so you don't need to install it.
> Thanks again,
> fbl
[-- Attachment #2: Type: text/html, Size: 3509 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-18 17:16 chandrasekar kannan
@ 2015-09-20 9:13 ` Marcel Apfelbaum
0 siblings, 0 replies; 11+ messages in thread
From: Marcel Apfelbaum @ 2015-09-20 9:13 UTC (permalink / raw)
To: chandrasekar kannan, qemu-devel
On 09/18/2015 08:16 PM, chandrasekar kannan wrote:
> http://wiki.qemu.org/Features/vhost-user-ovs-dpdk
>
> I'm running to problems attempting to try this out. qemu errors out with
>
> qemu-system-x86_64: -object memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on: unable to map backing store for hugepages: Cannot allocate memory
>
> http://pastebin.com/raw.php?i=kSkU8S03
>
> Could someone take a look at this and see what might be wrong ?
Hi,
It seems all the huge pages are already allocated:
HugePages_Total: 2048
=> HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
You can try to allocate more:
Run as root:
echo 3072 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
Thanks,
Marcel
>
> thanks,
> -Chandra
>
> On Thu, Sep 17, 2015 at 01:08:36PM +0300, Marcel Apfelbaum wrote:
>>/On 09/16/2015 08:44 PM, Flavio Leitner wrote:/
>>/ >On Thu, Sep 10, 2015 at 10:51:19PM +0300, Marcel Apfelbaum wrote:/
>>/ >>Hi,/
>>/ >>/
>>/ >>The page describes how to setup an environment that allows /
>>/ >>testing/developing/
>>/ >>vhost-user using ovs (with dpdk) as backend./
>>/ >>/
>>/ >>A regular pc machine can be used, no need for several hosts, a 'dpdk /
>>/ >>enabled' NIC or 1G huge-pages./
>>/ >>/
>>/ >>The goal is to connect guests' virtio-net devices having vhost-user backend /
>>/ >>to OVS dpdkvhostuser ports/
>>/ >>and be able to run any kind of network traffic between them./
>>/ >>/
>>/ >>The page can be found at:/
>>/ >>http://wiki.qemu.org/Features/vhost-user-ovs-dpdk/
>>/ >>/
>>/ >>I want to keep it as simple as possible./
>>/ >>If you see steps that can be skipped or unneeded configuration please let /
>>/ >>me know/
>>/ >>or feel free to update the page./
>>/ >/
>>/ >I gave a quick look and found couple issues. It seems to be missing/
>>/ >the installing steps for qemu. Also the eventfd_link module is only/
>>/ >needed for vhost-cuse, so you don't need to build/install/load at all./
>>/Hi Flavio,/
>>/Thank you for reviewing the document!/
>>//
>>/For some reason I thought we still need eventfd_link to notify the guests/
>>/when new packets arrive. Indeed we don't need this anymore, I updated the /
>>/wiki page./
>
>> We use the one provided by kernel. The eventfd_link on DPDK is special for
>> vhost-cuse:
>>https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md#dpdk-vhost-cuse-prerequisites
>
>
>>/Regarding QEMU, can you please point me to the missing setup steps?/
>>/(I think I already took care of them, anyway I want to be sure)/
>
>> Yup, I missed that you are running qemu from the builddir, not from
>> the system, so you don't need to install it.
>
>> Thanks again,
>> fbl
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
@ 2015-09-10 19:51 Marcel Apfelbaum
2015-09-16 17:44 ` Flavio Leitner
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Apfelbaum @ 2015-09-10 19:51 UTC (permalink / raw)
To: qemu list
Hi,
The page describes how to setup an environment that allows testing/developing
vhost-user using ovs (with dpdk) as backend.
A regular pc machine can be used, no need for several hosts, a 'dpdk enabled' NIC or 1G huge-pages.
The goal is to connect guests' virtio-net devices having vhost-user backend to OVS dpdkvhostuser ports
and be able to run any kind of network traffic between them.
The page can be found at:
http://wiki.qemu.org/Features/vhost-user-ovs-dpdk
I want to keep it as simple as possible.
If you see steps that can be skipped or unneeded configuration please let me know
or feel free to update the page.
Thanks,
Marcel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-10 19:51 Marcel Apfelbaum
@ 2015-09-16 17:44 ` Flavio Leitner
2015-09-17 10:08 ` Marcel Apfelbaum
0 siblings, 1 reply; 11+ messages in thread
From: Flavio Leitner @ 2015-09-16 17:44 UTC (permalink / raw)
To: Marcel Apfelbaum; +Cc: qemu list
On Thu, Sep 10, 2015 at 10:51:19PM +0300, Marcel Apfelbaum wrote:
> Hi,
>
> The page describes how to setup an environment that allows testing/developing
> vhost-user using ovs (with dpdk) as backend.
>
> A regular pc machine can be used, no need for several hosts, a 'dpdk enabled' NIC or 1G huge-pages.
>
> The goal is to connect guests' virtio-net devices having vhost-user backend to OVS dpdkvhostuser ports
> and be able to run any kind of network traffic between them.
>
> The page can be found at:
> http://wiki.qemu.org/Features/vhost-user-ovs-dpdk
>
> I want to keep it as simple as possible.
> If you see steps that can be skipped or unneeded configuration please let me know
> or feel free to update the page.
I gave a quick look and found couple issues. It seems to be missing
the installing steps for qemu. Also the eventfd_link module is only
needed for vhost-cuse, so you don't need to build/install/load at all.
Thanks for doing that Marcel!
fbl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-16 17:44 ` Flavio Leitner
@ 2015-09-17 10:08 ` Marcel Apfelbaum
2015-09-17 12:46 ` Flavio Leitner
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Apfelbaum @ 2015-09-17 10:08 UTC (permalink / raw)
To: Flavio Leitner; +Cc: qemu list
On 09/16/2015 08:44 PM, Flavio Leitner wrote:
> On Thu, Sep 10, 2015 at 10:51:19PM +0300, Marcel Apfelbaum wrote:
>> Hi,
>>
>> The page describes how to setup an environment that allows testing/developing
>> vhost-user using ovs (with dpdk) as backend.
>>
>> A regular pc machine can be used, no need for several hosts, a 'dpdk enabled' NIC or 1G huge-pages.
>>
>> The goal is to connect guests' virtio-net devices having vhost-user backend to OVS dpdkvhostuser ports
>> and be able to run any kind of network traffic between them.
>>
>> The page can be found at:
>> http://wiki.qemu.org/Features/vhost-user-ovs-dpdk
>>
>> I want to keep it as simple as possible.
>> If you see steps that can be skipped or unneeded configuration please let me know
>> or feel free to update the page.
>
> I gave a quick look and found couple issues. It seems to be missing
> the installing steps for qemu. Also the eventfd_link module is only
> needed for vhost-cuse, so you don't need to build/install/load at all.
Hi Flavio,
Thank you for reviewing the document!
For some reason I thought we still need eventfd_link to notify the guests
when new packets arrive. Indeed we don't need this anymore, I updated the wiki page.
Regarding QEMU, can you please point me to the missing setup steps?
(I think I already took care of them, anyway I want to be sure)
Thanks,
Marcel
>
> Thanks for doing that Marcel!
> fbl
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
2015-09-17 10:08 ` Marcel Apfelbaum
@ 2015-09-17 12:46 ` Flavio Leitner
0 siblings, 0 replies; 11+ messages in thread
From: Flavio Leitner @ 2015-09-17 12:46 UTC (permalink / raw)
To: Marcel Apfelbaum; +Cc: qemu list
On Thu, Sep 17, 2015 at 01:08:36PM +0300, Marcel Apfelbaum wrote:
> On 09/16/2015 08:44 PM, Flavio Leitner wrote:
> >On Thu, Sep 10, 2015 at 10:51:19PM +0300, Marcel Apfelbaum wrote:
> >>Hi,
> >>
> >>The page describes how to setup an environment that allows testing/developing
> >>vhost-user using ovs (with dpdk) as backend.
> >>
> >>A regular pc machine can be used, no need for several hosts, a 'dpdk enabled' NIC or 1G huge-pages.
> >>
> >>The goal is to connect guests' virtio-net devices having vhost-user backend to OVS dpdkvhostuser ports
> >>and be able to run any kind of network traffic between them.
> >>
> >>The page can be found at:
> >>http://wiki.qemu.org/Features/vhost-user-ovs-dpdk
> >>
> >>I want to keep it as simple as possible.
> >>If you see steps that can be skipped or unneeded configuration please let me know
> >>or feel free to update the page.
> >
> >I gave a quick look and found couple issues. It seems to be missing
> >the installing steps for qemu. Also the eventfd_link module is only
> >needed for vhost-cuse, so you don't need to build/install/load at all.
> Hi Flavio,
> Thank you for reviewing the document!
>
> For some reason I thought we still need eventfd_link to notify the guests
> when new packets arrive. Indeed we don't need this anymore, I updated the wiki page.
We use the one provided by kernel. The eventfd_link on DPDK is special for
vhost-cuse:
https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md#dpdk-vhost-cuse-prerequisites
> Regarding QEMU, can you please point me to the missing setup steps?
> (I think I already took care of them, anyway I want to be sure)
Yup, I missed that you are running qemu from the builddir, not from
the system, so you don't need to install it.
Thanks again,
fbl
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-09-22 14:53 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAMy83uR2UDVu_7dxjRzzEj0EVJipA6QnyovmTOKDAT-4BWs67g@mail.gmail.com>
[not found] ` <55FFBEF6.3020000@redhat.com>
2015-09-21 18:34 ` [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend Marcel Apfelbaum
2015-09-22 5:43 ` Star Chang
2015-09-22 7:06 ` Marcel Apfelbaum
2015-09-22 14:17 ` Alexandre DERUMIER
2015-09-22 14:53 ` Marcel Apfelbaum
2015-09-18 17:16 chandrasekar kannan
2015-09-20 9:13 ` Marcel Apfelbaum
-- strict thread matches above, loose matches on Subject: below --
2015-09-10 19:51 Marcel Apfelbaum
2015-09-16 17:44 ` Flavio Leitner
2015-09-17 10:08 ` Marcel Apfelbaum
2015-09-17 12:46 ` Flavio Leitner
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).