From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 630B74CC0 for ; Fri, 18 May 2018 15:50:38 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id h5-v6so9301047wrm.4 for ; Fri, 18 May 2018 06:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NAb4VrVqiKVD3beoTiT76B8YzRHBoCu5N2T2aedZ56Q=; b=ssjYIGPYj6+JzmIXJ1QHxR/52XTzDGmrSfdSuarmLyiGJF41TSW2MJbGOxwIF6kp38 cvNorUJWC+YmYaTN1FCVveBgM44PavALAKNBENEwLW9Eq+oyM6ETfAwMNmdOVUFeZr0v Q+AN7vTCliHvSmFDwCU3mtPc/xmx5pWZ56y9O2GyadlThmgGM6/06Ti0+TqQEA9seW8+ w6M2nNzarMoyUvfGAVoGEa5gcTdEgGlUgukTNIO1musRmvL0aXVDhLeu+iA5g4Fxj3ea s0HTbVJcLELudmrNUpTf66qaLAXqz9PKOuqtueu/we270eF+/tkIe7tk1ubiQUWl1Et+ qRtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NAb4VrVqiKVD3beoTiT76B8YzRHBoCu5N2T2aedZ56Q=; b=CpW+keRKOOf8KW4RQyIo2KdJGtvBvTO8j9jBi+pgopCFwzPP3n9TA8jNDLCo1Ed/+Z ZF1IEd+n1E162effztSAPdKyW4MzAr5o2Av/RdU0MASs+qam7e/Z4EOHysJiC8LEdwHP gRnxFibBRkqnIr7CtI4PQffJyK3/qHp+oN5puvGMJoyQg5Pp20zb7OrwuWpQYaFaRHPK 2z/Mp8iyMvN+aOSNwlQYTsxvhmKa2IpG9bmIYngLc079phGgRMNmECXaRmOVbrmJ6Dfn EC4vNow6AO7lsl9OntLyS4e4cAYqmLAKztjsEdILOdoGhyrkGUgqFuvRgTfmMs8c30QU E1Nw== X-Gm-Message-State: ALKqPwcQ2twdHFav3c5IU+yANIaL/9CkUEx4c6hnefFoXmYc66Wlmifd NYpqly7CgJEhdNDyEzyyAyHBjdsI X-Google-Smtp-Source: AB8JxZpHRRF3bQN8kvci9/+FiFwjfLpmghakDsaAEhly4xw0a0dz4AqqetpkOUmB4g0QMDlSXI2ckg== X-Received: by 2002:adf:9814:: with SMTP id v20-v6mr8106461wrb.93.1526651438156; Fri, 18 May 2018 06:50:38 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id d12-v6sm7925935wrg.2.2018.05.18.06.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 06:50:37 -0700 (PDT) Date: Fri, 18 May 2018 15:50:23 +0200 From: Adrien Mazarguil To: Tao Peng Cc: users@dpdk.org Message-ID: <20180518135023.GN6497@6wind.com> References: <20180423112457.GM4957@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-users] net_mlx5: priv allocation failure X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 13:50:38 -0000 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 > 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 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