DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] How kernel can share the mem from dpdk hugepage?
@ 2015-10-01 15:53 张伟
  2015-10-02 13:09 ` Kyle Larose
  0 siblings, 1 reply; 2+ messages in thread
From: 张伟 @ 2015-10-01 15:53 UTC (permalink / raw)
  To: dev

Hi all, 


I want to ask does anybody know how kernel can share the info from dpdk hugepage. My project has a requirement which kernel needs to get some info from dpdk application. Eg, in multi-process example, every client has a shared ring buffer with server. The shared ring contains some meta data of packets. Is it possible that dpdk share this info to kernel, then kernel can access it? What are the key points that can help to achieve the goal? 

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

* Re: [dpdk-dev] How kernel can share the mem from dpdk hugepage?
  2015-10-01 15:53 [dpdk-dev] How kernel can share the mem from dpdk hugepage? 张伟
@ 2015-10-02 13:09 ` Kyle Larose
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Larose @ 2015-10-02 13:09 UTC (permalink / raw)
  To: 张伟; +Cc: dev

All of this information is in shared memory, is it not? For example,
you could patch the ring library to give a programmable interface to
the following function:
http://dpdk.org/doc/api/rte__ring_8h.html#a7bfcef0ad324fcc4c03bcb59cd7e867f.
This would allow you to see the full set of rings in a process that
has attached as a secondary to DPDK. Write a process that does this,
and then interfaces with whatever you have running in the kernel.

Ultimately, the architecture is pulling from userspace and pushing
into the kernel, rather than pulling directly from the kernel.

Does that help?

Thanks,

Kyle

On Thu, Oct 1, 2015 at 11:53 AM, 张伟 <zhangwqh@126.com> wrote:
> Hi all,
>
>
> I want to ask does anybody know how kernel can share the info from dpdk hugepage. My project has a requirement which kernel needs to get some info from dpdk application. Eg, in multi-process example, every client has a shared ring buffer with server. The shared ring contains some meta data of packets. Is it possible that dpdk share this info to kernel, then kernel can access it? What are the key points that can help to achieve the goal?

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

end of thread, other threads:[~2015-10-02 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-01 15:53 [dpdk-dev] How kernel can share the mem from dpdk hugepage? 张伟
2015-10-02 13:09 ` Kyle Larose

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).