[dpdk-users] net_mlx5: priv allocation failure

Adrien Mazarguil adrien.mazarguil at 6wind.com
Fri May 18 15:50:23 CEST 2018


On Tue, Apr 24, 2018 at 10:24:54AM +0800, Tao Peng wrote:
> *And when I run testpmd , I get the same error:*
> 
> 
> $./testpmd -c 0xff00 -n 4  -- --rxq=2 --txq=2 -i
> 
> EAL: Detected 64 lcore(s)
> 
> EAL: No free hugepages reported in hugepages-1048576kB
> 
> EAL: Probing VFIO support...
> 
> EAL: WARNING: Master core has no memory on local socket!
> 
> EAL: PCI device 0000:01:00.0 on NUMA socket 0
> 
> EAL:   probe driver: 15b3:1015 net_mlx5
> 
> PMD: net_mlx5: PCI information matches, using device "mlx5_0" (SR-IOV:
> false, MPS: true)
> 
> PMD: net_mlx5: 1 port(s) detected
> 
> PMD: net_mlx5: priv allocation failure
> 
> EAL: Requested device 0000:01:00.0 cannot be used
> 
> EAL: PCI device 0000:01:00.1 on NUMA socket 0
> 
> EAL:   probe driver: 15b3:1015 net_mlx5
> 
> PMD: net_mlx5: PCI information matches, using device "mlx5_1" (SR-IOV:
> false, MPS: true)
> 
> PMD: net_mlx5: 1 port(s) detected
> 
> PMD: net_mlx5: priv allocation failure
<snip>
> And, when I use 'sudo', the error will disappeared.
> 
> $sudo ./testpmd -c 0xff00 -n 4  -- --rxq=2 --txq=2 -i
> 
> EAL: Detected 64 lcore(s)
> 
> EAL: No free hugepages reported in hugepages-1048576kB
> 
> EAL: Probing VFIO support...
> 
> EAL: PCI device 0000:01:00.0 on NUMA socket 0
> 
> EAL:   probe driver: 15b3:1015 net_mlx5
> 
> PMD: net_mlx5: PCI information matches, using device "mlx5_0" (SR-IOV:
> false, MPS: true)
> 
> PMD: net_mlx5: 1 port(s) detected
> 
> PMD: net_mlx5: MPS is enabled
<snip>

You need to investigate "EAL: WARNING: Master core has no memory on local
socket!"

Hugepage memory files are possibly owned by root at this point. Those are
not cleaned up when DPDK applications exit. It's done on purpose to minimize
memory fragmentation over start/stop cycles.

Have a look at /dev/hugepage/rtemap_* files, e.g.:

 # ls -l /dev/hugepages/
 [...]
 -rw------- 1 root root 2097152 May 14 10:13 rtemap_976
 -rw------- 1 root root 2097152 May 14 10:13 rtemap_977
 -rw------- 1 root root 2097152 May 14 10:13 rtemap_978
 [...]

This means a mere user can't use them. In which case you need to chown/chmod
or remove them altogether.

Have you tried --no-huge?

-- 
Adrien Mazarguil
6WIND


More information about the users mailing list