I have seen this issue. But, I have not characterized any performance
impact of this. But most of the memory required is for packets
(depends on application as well) which comes from DPDK.
Feel free to submit a PR to fix the issue.
Thanks,
Honnappa
On 13 November 2017 at 03:37, gyanesh patra wrote:
> Hi,
> I have noticed that ODP application always check for hugepages and fails
> though hugepage is configured in the system. And it runs normally using
> normal pages. I am not sure it affects the performance or not. But if it
> does, how can i make sure that ODP application uses the hugepages???
>
> I am adding the output of hugepage details and odp application below for
> reference:
>
>
> root@ubuntu:/home/ubuntu/P4/mac# cat /proc/sys/vm/nr_hugepages
> 183
> root@ubuntu:/home/ubuntu/P4/mac#
> root@ubuntu:/home/ubuntu/P4/mac# grep -i uge /proc/meminfo
> AnonHugePages: 28672 kB
> HugePages_Total: 183
> HugePages_Free:0
> HugePages_Rsvd:0
> HugePages_Surp:0
> Hugepagesize:1048576 kB
>
>
> ODP application output:
>
> EAL: Detected 56 lcore(s)
> EAL: Probing VFIO support...
> EAL: PCI device :05:00.0 on NUMA socket 0
> EAL: probe driver: 8086:1528 net_ixgbe
> EAL: PCI device :05:00.1 on NUMA socket 0
> EAL: probe driver: 8086:1528 net_ixgbe
> EAL: PCI device :81:00.0 on NUMA socket 1
> EAL: probe driver: 15b3:1013 net_mlx5
> PMD: net_mlx5: PCI information matches, using device "mlx5_0" (SR-IOV:
> false, MPS: false)
> PMD: net_mlx5: 1 port(s) detected
> PMD: net_mlx5: port 1 MAC address is 7c:fe:90:31:0d:3a
> EAL: PCI device :81:00.1 on NUMA socket 1
> EAL: probe driver: 15b3:1013 net_mlx5
> PMD: net_mlx5: PCI information matches, using device "mlx5_1" (SR-IOV:
> false, MPS: false)
> PMD: net_mlx5: 1 port(s) detected
> PMD: net_mlx5: port 1 MAC address is 7c:fe:90:31:0d:3b
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishm.c:866:_odp_ishm_reserve():No huge pages, fall back
> to normal pages. check: /proc/sys/vm/nr_hugepages.
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> PKTIO: initialized loop interface.
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> No crypto devices available
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
>
> ODP system info
> ---
> ODP API version: 1.15.0
> ODP impl name: odp-dpdk
> CPU model: Intel(R) Xeon(R) CPU E5-2680 v4
> CPU freq (hz): 24
> Cache line size: 64
> CPU count: 56
> ***
> ***
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
> ../linux-generic/_ishmphy.c:150:_odp_ishmphy_map():mmap failed:Cannot
> allocate memory
>
>
> Thanks & Regards,
> P Gyanesh Kumar Patra