From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D258545C5E for ; Sat, 2 Nov 2024 17:03:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A61A0402B7; Sat, 2 Nov 2024 17:03:11 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id C60B5402A3 for ; Sat, 2 Nov 2024 17:03:09 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71e4244fdc6so2327732b3a.0 for ; Sat, 02 Nov 2024 09:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1730563389; x=1731168189; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=/khpwc1AzvfW0xsgu55iGBREzsA+MVuqToFz08yS2HA=; b=A4ztTiVCscTfYC7lWdoS1+d7J5daRlkJ9sfuUd0ihEqxpenIgTCzblidK6Twzp7Sei Q5APsy41v00xSbkgZOdwn/G6AXI7QIwmlbE3xGlVR4qJtjwhcRFvlM+khrszAWVZfVCU cSRlErY9Lz7V1JQAGwr6MerR1ovSmJv4JTzzq4yag2ff7UTOamk68gpKxn2wmbjOveIK W4NLxVQM5Fh/sKG1IqDXS0hEhZfBsTqieJH8eIoHo7fomZzqEqRWN7taK5uRA91V2jVB SWFfLGTOVD13qOVJaxYcelPeih6sZqCigm1THRh9BYqtMJLznS61QT3SqJcdFY4/iIM9 7MyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730563389; x=1731168189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/khpwc1AzvfW0xsgu55iGBREzsA+MVuqToFz08yS2HA=; b=mOaK07+LIhFbad8BSaGMnLuNIL1sXW3rUHVIU1PlqIc3bF/b72qb342kYBUHopAvVj aWr6DeFj3r4jWnX31reeB8AOvP8YxF2xDUtaqrGE7Dx0ki7kMx7coKrseRdfGArWvMcp cJLsVHVGsP33JPQvxb+M1o0B6PoEnVeUvtY8V+Ec3xLJO/tDJ6pTb/kRnbdCi/uIhBxH cGO13SmywUx2PotGmWmDn4uDdanbaWMCsSmCW7RmHo0nbVCxt5leI5oNlZoz/S5bH+fU Ab2Qgpwf1p9dx39ugTemautxNSZI2M7nNnl7+qdf4sJDPbAwXuHRslGHmxSpEfrCjiO0 aaRQ== X-Gm-Message-State: AOJu0YwiC1u3hNkZJNsbgmE+PuiyMqroHMtgYilyqviUXOYJ17N53Cn4 eHoKWQ315/CMdMzoL6KrSeuS6gAzaIRwCE1NHu8i3NVW9BOGhznXGtb4EEVKkI8= X-Google-Smtp-Source: AGHT+IF5y/yaKX1cW9hqeeKgpMAUSsNTJwMDWnNa60BU5rkHgiNInsR7MAVlNkkLcMRd/uBASCOkCw== X-Received: by 2002:a05:6a00:4603:b0:71d:f821:1981 with SMTP id d2e1a72fcca58-720c98a5ebfmr11594088b3a.4.1730563388805; Sat, 02 Nov 2024 09:03:08 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-720bc1b9cdbsm4267798b3a.26.2024.11.02.09.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2024 09:03:08 -0700 (PDT) Date: Sat, 2 Nov 2024 09:03:06 -0700 From: Stephen Hemminger To: cuyu tang Cc: users@dpdk.org Subject: Re: Pktgen failing in a virtualbox virtual machine Message-ID: <20241102090306.4a3f850f@hermes.local> In-Reply-To: <55BFBAE329D6694E+feadbf99-bbe5-485b-952c-ba22b8815166@expoli.tech> References: <55BFBAE329D6694E+feadbf99-bbe5-485b-952c-ba22b8815166@expoli.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 31 Oct 2024 17:57:04 +0800 cuyu tang wrote: > I'm having segfault issues when running pktgen in a virtualbox virtual=20 > machine. >=20 > Here's what I run it in and some details about running the commands, >=20 > and what I can do to get it to run correctly >=20 >=20 > pktgen version: git main brunch >=20 > # git log > commit cc1d4c606dea3939adf75cc02de0f7cf2b28cf1e (HEAD -> main, tag:=20 > pktgen-24.07.0, origin/main, origin/HEAD) >=20 > dpdk version: dpdk-24.07 >=20 > [root@localhost dpdk-24.07]# ./usertools/dpdk-devbind.py -s >=20 > Network devices using DPDK-compatible driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:00:09.0 '82540EM Gigabit Ethernet Controller 100e' drv=3Digb_uio=20 > unused=3De1000,vfio-pci > 0000:00:0a.0 '82540EM Gigabit Ethernet Controller 100e' drv=3Digb_uio=20 > unused=3De1000,vfio-pci >=20 > pktgen run command: >=20 > gdb --args /root/pktgen-dpdk/usr/local/bin/pktgen -m 1.0 >=20 > Port DevName=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Index = NUMA PCI Information=C2=A0=C2=A0 Src MAC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=20 > Promiscuous > Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. > 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 > 102=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 pkt=C2=A0=C2=A0 =3D &pinfo->seq_pkt[SINGLE_PKT]; >=20 > (gdb) bt > #0=C2=A0 0x000000000043c38b in dump_device_info () at=20 > ../app/pktgen-port-cfg.c:102 > #1=C2=A0 0x000000000043e3cf in pktgen_config_ports () at=20 > ../app/pktgen-port-cfg.c:325 > #2=C2=A0 0x000000000043aa23 in main (argc=3D1, argv=3D0x7fffffffe2d8) at= =20 > ../app/pktgen-main.c:465 >=20 > (gdb) n > 89=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 bus =3D rte_bus_find_by_device(dev.device= ); > (gdb) > 90=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 if (bus && !strcmp(rte_bus_name(bus), "pci")) { > (gdb) > 94=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 vend[0] =3D device[0] =3D '\0'; > (gdb) > 95=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sscanf(rte_dev_bus_info(dev.device), "ven= dor_id=3D%4s,=20 > device_id=3D%4s", vend, device); > (gdb) > 97=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rte_eth_dev_get_name_by_port(i, name); > (gdb) > 98=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 snprintf(buff, sizeof(buff), "%s:%s/%s", = vend,=20 > device, rte_dev_name(dev.device)); > (gdb) > 90=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 if (bus && !strcmp(rte_bus_name(bus), "pci")) { > (gdb) > 101=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 pinfo =3D l2p_get_port_pinfo(i); > (gdb) > 102=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 pkt=C2=A0=C2=A0 =3D &pinfo->seq_pkt[SINGLE_PKT]; > (gdb) >=20 > Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. > 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 > 102=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 pkt=C2=A0=C2=A0 =3D &pinfo->seq_pkt[SINGLE_PKT]; > (gdb) p pinfo > $3 =3D (port_info_t *) 0x0 > (gdb) >=20 >=20 >=20 Pktgen no longer has a maintainer, so it considered abandoned at this point. What does DPDK startup show? The problem is probably that virtualbox doesn'= t fully emulate the Intel NIC and the DPDK PMD doesn't like that. =20