Hi Anatoly,
Thanks for the clarifications.

Currently we are migrating to the new DPDK 18.11 ( from 17.05).  Here is
our configuration:
=======================================================================
We have configured the "--legacy-mem" option and changed the
CONFIG_RTE_MAX_MEM_MB to 2048 (and we are passing 2MB huge page 188 and no
1G hugepages in the bootargs).
Our application deployment as 2G RAM
=======================================================================
We are observing the hang issue, with above configuration.
Please see the below logs:
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 1 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: open shared lib /usr/lib64/librte_pmd_ixgbe.so.2.1
EAL: open shared lib /usr/lib64/librte_pmd_e1000.so.1.1
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or
directory)
EAL: VFIO PCI modules not loaded
EAL: No free hugepages reported in hugepages-1048576kB
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: Module /sys/module/vfio not found! error 2 (No such file or directory)
EAL: VFIO modules not loaded, skipping VFIO support...
EAL: Ask a virtual area of 0x2e000 bytes
EAL: Virtual area found at 0x100000000 (size = 0x2e000)
EAL: Setting up physically contiguous memory...
EAL: Setting maximum number of open files to 4096
EAL: Detected memory type: socket_id:0 hugepage_sz:1073741824
EAL: Detected memory type: socket_id:0 hugepage_sz:2097152
EAL: Creating 1 segment lists: n_segs:1 socket_id:0 hugepage_sz:1073741824
EAL: Ask a virtual area of 0x1000 bytes
EAL: Virtual area found at 0x10002e000 (size = 0x1000)
EAL: Memseg list allocated: 0x100000kB at socket 0
EAL: Ask a virtual area of 0x40000000 bytes
<<< --- struck here ---> >>>>


Is there any other dpdk options thro which we can resolve the above issue ?
Any thoughts ?
Like passing  the  *--socket-limit* and *--m *parameter etc during the EAL
Init (could help ???).
Please suggest us.

Thanks,
Kamaraj

On Tue, Dec 10, 2019 at 3:53 PM Burakov, Anatoly <anatoly.bura...@intel.com>
wrote:

> On 07-Dec-19 5:01 PM, Kamaraj P wrote:
> > Hello All,
> >
> > Currently, we are facing an issue with memory allocation failure
> > in memseg_primary_init().
> > When we configure the CONFIG_RTE_MAX_MEM_MB to 512MB and correspondingly
> > configured the number of huge pages for our platform. But the virtual
> > memory allocation is failing.
> >
> > It appears that its trying to allocate CONFIG_RTE_MAX_MEMSEG_PER_LIST *
> > Huge page size (i.e. 8192 * 2MB = 0x400000000) and virtual memory
> > allocation is failing.
> >
> > Also tried changing the CONFIG_RTE_MAX_MEMSEG_PER_LIST to 64 with which
> > virtual memory allocation is passing for the 128MB (64 * 2MB). But looks
> > like 128MB memory is not enough and it is causing the PCIe enumeration
> > failure.
> > Not able allocate virtual memory beyond 128MB by increasing the
> > CONFIG_RTE_MAX_MEMSEG_PER_LIST beyond 64.
> >
> > Is there are any settings(argument) which we need to pass as part of
> > rte_eal_init()
> > to get success in the virtual memory allocation?
> > Please advise.
> >
> > Thanks,
> > Kamaraj
> >
>
> I don't think there are, as the allocator wasn't designed with such
> memory constrained use cases in mind. You may want to try --legacy-mem
> option.
>
> --
> Thanks,
> Anatoly
>

Reply via email to