Hi Maxim, Is this regular memory or DMA capable memory?
This would mean application would know how, for instance, to handle things when memory is lower than a threshold or something similar; or it may decide to use a percentage of memory for packet pools; or many other policies. I don't see that feature in "mature" applications like VPP. Applications that want do that may still use platform information directly but I think it is too early work on an ODP API for that. An ODP memory API will also have to deal with NUMA... FF On 23 October 2017 at 14:26, Bill Fischofer <bill.fischo...@linaro.org> wrote: > Applications should request the amount of storage they need (possibly as > configured) rather than trying to grab everything they can find "just in > case". Especially in an NFV environment that's not very neighborly > behavior. > > On Mon, Oct 23, 2017 at 2:44 AM, Dmitry Eremin-Solenikov < > dmitry.ereminsoleni...@linaro.org> wrote: > > > On 23/10/17 10:39, Maxim Uvarov wrote: > > > It might be reasonable to add also api call to get return free memory. > So > > > that application can adjust pools /buffers size according to hardware > or > > VM > > > settings. Which might be good fit for NFV set up. > > > Any opinions on that? > > > > It would depend on the platform too much. Also remember, that in some > > cases buffers/packets will use separate memory, not main RAM. > > > > -- > > With best wishes > > Dmitry > > > -- [image: Linaro] <http://www.linaro.org/> François-Frédéric Ozog | *Director Linaro Networking Group* T: +33.67221.6485 francois.o...@linaro.org | Skype: ffozog