From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E67D4A04F5 for ; Thu, 12 Dec 2019 10:56:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5887B1BF82; Thu, 12 Dec 2019 10:55:59 +0100 (CET) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 20CCC2BC8 for ; Thu, 12 Dec 2019 09:11:24 +0100 (CET) Received: by mail-wm1-f65.google.com with SMTP id p17so1402447wma.1 for ; Thu, 12 Dec 2019 00:11:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=hCWlSJJ2ZKtwK0DlfY0aB/yBjDuTget7l0iOB0v8Jtg=; b=SvBljKvckA0gAhg06NwekhhTwxEXXXLlhkFf46MeS2SZ4ltv4kXBoX6WM9gtpCaetv msBhBv5z0B0vUhHJgMwdCzNsT8qxyPRt1uDbcaD4u6z45RpHpyM8cV1VS1WmJNQ3SMT1 q51ZV+aFLifBCJa5tZF9K2j51BSBJgSh0gh8lOLga8/wvLdp4d0N6hxePQV6xbR8ZPRo 5KufEDdHLf+oZYiHCIrAOiUxSGP8c62ZnhD91SFXhQrs5K5LaKHawh7uL6/aTp4T6H1T A6uMZxPI0qa11tDYzWqnAQqdP540NR67w1iE5cYp4o/HAOAFttxoN8XxYKsMDFNFhO4Y n7zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=hCWlSJJ2ZKtwK0DlfY0aB/yBjDuTget7l0iOB0v8Jtg=; b=hgBS1zt8yQzZrAHgdu4uqdNkrBWCI7IaW49MX3pMuvR4Rb8cmqNseKiDwKuuLku1nL Y06wxgl9+XCGttuBenT4wMfGQXNCrp7hQ84FGso08084yR3WWFqH3SBT3NhoquZw/FQl 3Ln9VMkq7IZpt7I0s/lU+b7dsid8D19Gxqa60MWEa8zrcZ6IDiN55qipuehHMOHNlKwt Yz+CoZZp6TtDmVaaq43KR/sxHbhifN0eBu0JSwZSzVhLHpbyBmYQMxNmUWI4QS18QGza HeEWatVNf2hy3Xeb0BPtsgK7Sp0ZmZ237iIOc4LKDhwBoV76JrDtoNjEHxdUQVB4iHnr 8CZg== X-Gm-Message-State: APjAAAXa6kzFy5yh6SmhVZnkLTE/r3cxnfEB4dpTfnpAtQjxCrm2PJ0f eO/Q5CpuQ35H7TdHYn+uBvRoQ/DIBS8VsHczK4ZT4A== X-Google-Smtp-Source: APXvYqwQgacsd9f00pdtwsjUeTeaTfeefcVAvwR1X+YwYRWcvHayunsCJBHoCwmUrb6Wz0Ti0Xykmv+MYSBm4LajnLc= X-Received: by 2002:a1c:a98e:: with SMTP id s136mr4765080wme.140.1576138283433; Thu, 12 Dec 2019 00:11:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Violet Wang Date: Thu, 12 Dec 2019 16:11:06 +0800 Message-ID: To: users@dpdk.org X-Mailman-Approved-At: Thu, 12 Dec 2019 10:55:57 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] pdump can only run once 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: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi all, I've solved the issue by my own. There's no error in dpdk-pdump, the root cause is from my program, sorry for bothering you. Thanks, Violet. Violet Wang =E6=96=BC 2019=E5=B9=B412=E6=9C=8810= =E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=883:01=E5=AF=AB=E9=81=93=EF=BC= =9A > Hi all, > > I need your help to solve an issue when using dpdk-pdump. > > > > I wrote a pktgen-like program and started it first, and it can run well. > > # ./my_program -l 0-2 > > > > When I started dpdk-pdump to capture packets for the first time, I can > capture packets, but it didn't show the captured packet counter (PDUMP > DEBUG STATS) when I stopped it. > > # ./dpdk-pdump -l 0-2 -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/tmp/test.p= cap' > > EAL: Detected 8 lcore(s) > > EAL: Probing VFIO support... > > EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the > kernel. > > EAL: This may cause issues with mapping memory into secondary processe= s > > EAL: PCI device 0000:03:00.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 15ad:7b0 net_vmxnet3 > > EAL: PCI device 0000:0b:00.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 15ad:7b0 net_vmxnet3 > > EAL: PCI device 0000:13:00.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 15ad:7b0 net_vmxnet3 > > PMD: Initializing pmd_pcap for net_pcap_tx_0 > > PMD: Creating pcap-backed ethdev on numa socket 4294967295 > > Port 1 MAC: 00 00 00 01 02 03 > > > > However, when I tried to start dpdk-pdump again, it was terminated. Here'= s > what I got: > > # ./dpdk-pdump -l 0-2 -- --pdump 'port=3D0,queue=3D*,tx-dev=3D/tmp/test.p= cap' > > EAL: Detected 8 lcore(s) > > EAL: Probing VFIO support... > > EAL: PCI device 0000:03:00.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 15ad:7b0 net_vmxnet3 > > EAL: PCI device 0000:0b:00.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 15ad:7b0 net_vmxnet3 > > EAL: PCI device 0000:13:00.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 15ad:7b0 net_vmxnet3 > > RING: Cannot reserve memory > > EAL: Error - exiting with code: 1 > > Cause: File exists > > Done. > > > > Also, I observed some phenomenon: > > 1. If I stopped my program, dpdk-pdump can work again for the first time, > but it still failed when I tried to use it again. > > 2. I've tried the same codes on ubuntu-18.04, and the issue was not > observed. > > > > I've checked these: > > 1.Before compiling DPDK, set both "CONFIG_RTE_LIBRTE_PMD_PCAP" and > "CONFIG_RTE_LIBRTE_PDUMP" to y. > > 2.Disabled ASRL with "echo 0 | sudo tee > /proc/sys/kernel/randomize_va_space" > > 3.Increased hugepage to 2048, but the issue was not gone. > > > > *Here's my environment: > > OS: CentOS Linux release 7.6.1810 (Core) > > kernel version: 3.10.0-957.el7.x86_64 > > CPU: 8 core > > Hard disk/ram disk: 64 GB/32 GB > > Numa node: 2 > > DPDK version: 17.11 > > used config: defconfig_x86_64-native-linuxapp-gcc > > hugepage: 1024 > > > > *Here's hugepage information: > > # grep Huge /proc/meminfo > > AnonHugePages: 10240 kB > > HugePages_Total: 2048 > > HugePages_Free: 1536 > > HugePages_Rsvd: 0 > > HugePages_Surp: 0 > > Hugepagesize: 2048 kB > > > > *Here's numa node information: > > # dmesg | grep -i numa > > [ 0.000000] NUMA: Node 0 [mem 0x00000000-0x0009ffff] + [mem > 0x00100000-0xbfffffff] -> [mem 0x00000000-0xbfffffff] > > [ 0.000000] NUMA: Node 0 [mem 0x00000000-0xbfffffff] + [mem > 0x100000000-0x83fffffff] -> [mem 0x00000000-0x83fffffff] > > > > I'd be very apricated for your help. Many thanks for your reading. > > Best Regards, > > Violet > --=20 ---------------------------------------------------------- =E7=8E=8B=E8=96=87=E9=88=9E (Wei-Chun Wang) contact me via: phone:0975032752 email: violet127001@gmail.com