From: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
To: chandrasekar kannan <kannan.chandrasekar@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend
Date: Sun, 20 Sep 2015 12:13:05 +0300 [thread overview]
Message-ID: <55FE78A1.2090403@gmail.com> (raw)
In-Reply-To: <CAPQVUpDfhBuZxyHnTdkpYOOm76wb3VSxt21mgdSFvL8VO=8BhA@mail.gmail.com>
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
>
next prev parent reply other threads:[~2015-09-20 9:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 17:16 [Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend chandrasekar kannan
2015-09-20 9:13 ` Marcel Apfelbaum [this message]
[not found] <CAMy83uR2UDVu_7dxjRzzEj0EVJipA6QnyovmTOKDAT-4BWs67g@mail.gmail.com>
[not found] ` <55FFBEF6.3020000@redhat.com>
2015-09-21 18:34 ` 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
-- 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FE78A1.2090403@gmail.com \
--to=marcel.apfelbaum@gmail.com \
--cc=kannan.chandrasekar@gmail.com \
--cc=marcel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).