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 1510EA04F5 for ; Thu, 12 Dec 2019 10:56:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88E211BF6F; Thu, 12 Dec 2019 10:55:58 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id B04AB91 for ; Tue, 10 Dec 2019 08:02:14 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id w15so18794772wru.4 for ; Mon, 09 Dec 2019 23:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=eYvhw2fFXc/L7R9BpkVP+drrJp2bW+F9K488Wx3WZFI=; b=ZY9vTz+ipe9Bsr9q4Mj/5P5v25svRPdmdOwG5/YSgLsp95b1QF7EL2xIGCNPUflSlu mhde/QraHEbgQkPdgSonNz93j+dezRZ2MkaaH2ipEFCcmxSS0fWDZU+jfWN2dgExxTuX MqHobVZh0WUA1G4Lhy3/e9PX68XEg2QUZIPA7SLvlRCL1npUzNLrv46tmFQNVzPgG8iS 8JBIV4WyUH8HPB2VcmIPmxN6favLLi6oqCoeDJKU5g94IpMj8F0tLZ2gC1TOnnYBk9jT UrROUd4m+LXwrsVYjhv7F3Jeuk/JoeO84Wy0UJlJN4oHfmvZPxhAjdjI8PgWKcn0p0B5 76mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eYvhw2fFXc/L7R9BpkVP+drrJp2bW+F9K488Wx3WZFI=; b=ggTdTOb4Gddhbmpx5oDfd8DrCZ3x2EQIJtRVh/rTNJbMZtfpD/+/boOwHoMtFt3kTk K+8nAVbtmIxNXdF6LwJX3J93BbBNOk9nBiZMubLp2DfWsdcgTRvgd2iiwpumbG1mDbqw S8X5UohhbD4qrNqU2riVpbpCiaoLsWMx1JmcSnu/wdKm8dwkiwd1B27PYK6XuJS4rWQc 6xHZjbOuUcjtJWmSLhj3GyHQnXkfkRhLpHTggz99FWWvL2PV6ZNd6BVbSFHeFhAsQGYX lGuaadBe8zhQ+i48KNfcsFx/rONvpCgPSjawBD0MhYXpVy5xVH2CLTZsK8HJrbuKucr1 SMwg== X-Gm-Message-State: APjAAAVx2JCiewNEUtIjKWk0ETXfTT1iyna8+tiTOR236gh/aW56AAeA TZCjF57hkGrefjR/1nQwxoCOUbyHIXLLQjjv9ANmY32N X-Google-Smtp-Source: APXvYqwyi94wQLttu26fKWhfPtIjwLViVs9Fdf710RuHdhp0XweE49/4oyXcOG+noT9tmol4OiJEiJIwCWJ6At2nfe4= X-Received: by 2002:a5d:44cd:: with SMTP id z13mr1312968wrr.104.1575961333566; Mon, 09 Dec 2019 23:02:13 -0800 (PST) MIME-Version: 1.0 From: Violet Wang Date: Tue, 10 Dec 2019 15:01:56 +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" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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 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=0,queue=*,tx-dev=/tmp/test.pcap' 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 processes 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=0,queue=*,tx-dev=/tmp/test.pcap' 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