Re: [lng-odp] continuous memory allocation for drivers

2016-11-17 Thread Maciej Czekaj
On Fri, 11 Nov 2016 11:13:27 +0100 Francois Ozog wrote: On 11 November 2016 at 10:10, Brian Brooks wrote: On 11/10 18:52:49, Christophe Milard wrote: Hi, My hope was that packet segments would all be smaller than one page (either normal pages or huge pages) When is this the case? With a 409

Re: [lng-odp] continuous memory allocation for drivers

2016-11-11 Thread Francois Ozog
On 11 November 2016 at 10:10, Brian Brooks wrote: > On 11/10 18:52:49, Christophe Milard wrote: > > Hi, > > > > My hope was that packet segments would all be smaller than one page > > (either normal pages or huge pages) > > When is this the case? With a 4096 byte page, a couple 1518 byte Ethernet

Re: [lng-odp] continuous memory allocation for drivers

2016-11-11 Thread Francois Ozog
There is no such module. If it was upstreamable, Intel would have obtained it a long ago On 11 November 2016 at 08:50, Christophe Milard < christophe.mil...@linaro.org> wrote: > I hoped such a kernel module would already exist, but I am surprised > that DPDK would not rely on it. Maybe there

Re: [lng-odp] continuous memory allocation for drivers

2016-11-11 Thread Brian Brooks
On 11/10 18:52:49, Christophe Milard wrote: > Hi, > > My hope was that packet segments would all be smaller than one page > (either normal pages or huge pages) When is this the case? With a 4096 byte page, a couple 1518 byte Ethernet packets can fit. A 9038 byte Jumbo wont fit. Or is it to ease

Re: [lng-odp] continuous memory allocation for drivers

2016-11-10 Thread Christophe Milard
I hoped such a kernel module would already exist, but I am surprised that DPDK would not rely on it. Maybe there is a limitation I cannot see. I'll keep searching. Francois, maybe you know the answer? On 10 November 2016 at 19:10, Mike Holmes wrote: > > > On 10 November 2016 at 12:52, Christophe

Re: [lng-odp] continuous memory allocation for drivers

2016-11-10 Thread Mike Holmes
On 10 November 2016 at 12:52, Christophe Milard < christophe.mil...@linaro.org> wrote: > Hi, > > My hope was that packet segments would all be smaller than one page > (either normal pages or huge pages) to guarantee physical memory > continuity which is needed by some drivers (read non vfio driver

[lng-odp] continuous memory allocation for drivers

2016-11-10 Thread Christophe Milard
Hi, My hope was that packet segments would all be smaller than one page (either normal pages or huge pages) to guarantee physical memory continuity which is needed by some drivers (read non vfio drivers for PCI). Francois Ozog's experience (with dpdk)shows that this hope will fail in some case: n