Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-09-16 Thread Burakov, Anatoly
On 16-Sep-20 12:19 PM, Burakov, Anatoly wrote: On 16-Sep-20 5:32 AM, Kamaraj P wrote: Hi Anatoly, We just dump the memory contents when it fails to allocate the memory. Hi Kamaraj, Yes, i can see that the memory is fragmented. That's not what i was asking though, because memory fragmentati

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-09-16 Thread Burakov, Anatoly
On 16-Sep-20 5:32 AM, Kamaraj P wrote: Hi Anatoly, We just dump the memory contents when it fails to allocate the memory. Hi Kamaraj, Yes, i can see that the memory is fragmented. That's not what i was asking though, because memory fragmentation is *expected* if you're using igb_uio. You'r

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-09-15 Thread Kamaraj P
Hi Anatoly, We just dump the memory contents when it fails to allocate the memory. rte_malloc_dump_stats(); rte_dump_physmem_layout(); rte_memzone_dump(); We could see the fragmented memory --- MALLOC_STATS --- Heap id:0 Heap name:socket_0 Heap_size:134217728, Free_size:13360409

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-07-28 Thread Burakov, Anatoly
On 27-Jul-20 4:30 PM, Kamaraj P wrote: Hi Anatoly, Since we do not have the driver support of SRIOv with VFIO, we are using IGB_UIO . I believe it's coming :) Basically our application is crashing due to the buffer allocation failure. I believe because it didn't get a contiguous memory locat

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-07-27 Thread Kamaraj P
Hi Anatoly, Since we do not have the driver support of SRIOv with VFIO, we are using IGB_UIO . Basically our application is crashing due to the buffer allocation failure. I believe because it didn't get a contiguous memory location and fails to allocate the memory. Is there any API, I can use to du

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-07-13 Thread Burakov, Anatoly
On 11-Jul-20 8:51 AM, Kamaraj P wrote: Hello Anatoly/Bruce, We are using the 18_11 version of DPDK and we are using igb_uio. The way we observe an issue here is that, after we tried multiple iterations of start/stop of container application(which has DPDK), we were not able to allocate the mem

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-07-11 Thread Kamaraj P
Hello Anatoly/Bruce, We are using the 18_11 version of DPDK and we are using igb_uio. The way we observe an issue here is that, after we tried multiple iterations of start/stop of container application(which has DPDK), we were not able to allocate the memory for port during the init. We thought th

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-07-10 Thread Burakov, Anatoly
On 10-Jul-20 11:28 AM, Bruce Richardson wrote: On Fri, Jul 10, 2020 at 02:52:16PM +0530, Kamaraj P wrote: Hello All, We are running to run DPDK based application in a container mode, When we do multiple start/stop of our container application, the DPDK initialization seems to be failing. This i

Re: [dpdk-dev] DPDK hugepage memory fragmentation

2020-07-10 Thread Bruce Richardson
On Fri, Jul 10, 2020 at 02:52:16PM +0530, Kamaraj P wrote: > Hello All, > > We are running to run DPDK based application in a container mode, > When we do multiple start/stop of our container application, the DPDK > initialization seems to be failing. > This is because the hugepage memory fragemen

[dpdk-dev] DPDK hugepage memory fragmentation

2020-07-10 Thread Kamaraj P
Hello All, We are running to run DPDK based application in a container mode, When we do multiple start/stop of our container application, the DPDK initialization seems to be failing. This is because the hugepage memory fragementated and is not able to find the continuous allocation of the memory t