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 BFEC145C6E for ; Sun, 3 Nov 2024 16:53:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B81DD4021F; Sun, 3 Nov 2024 16:53:51 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 282E74014F for ; Sun, 3 Nov 2024 16:53:50 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20c693b68f5so36015325ad.1 for ; Sun, 03 Nov 2024 07:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1730649229; x=1731254029; 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=E8+XCN8c8kD0nfsn6EBGov5P/FxMjDzig+uq60zbE4I=; b=VDiEDG1dSUd3mXnXXPsl74mIlt1my2/RCK1LmysFT55ImYRmUUP3NygMwwanYRStSO R0RzjVyrdBf3HfEM/PyTpK+obD/++q8zuTpgvDM0y81Oz19fTHN2PlSxCr7SUXOM63MO 8fak+hR2+LG7MJQOC7V3vUs8ab0GkvQmaLAXJfzZXeBauPgSyQelU6WUSycyGQXkoejV aH9prXx2C42fn1nZ7qg5srOiSnAUC0k20+AZdw74ACy90Zn2iPpy+3ko7Z8yoGCgxTVE lQnc4JnteL2BCngKxwZeC5aCbkOqEdeXlTrrdf4mHlF9PREmFwW4nwV2jnI4W+VgGxdW S7Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730649229; x=1731254029; 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=E8+XCN8c8kD0nfsn6EBGov5P/FxMjDzig+uq60zbE4I=; b=PcmJq1My5FB701rDsYTD+3g8ndKSCvLwhGNTxiY3BrMjRow43Yf62juDVnulovmgiA l4SVrnXh2E7iTz+HxwWRiZTfANErB5JnTCsA89l4hVfW5y8LU2BWI64GWjNdgTXHwovA MuSCY3W+BuxCBxidMV4aRLyNSaUGQbZcgIGusn8duqW0KbXc94bdTOicMPhUZOd6i2jM vvec0OxyzdR07br3RANjZEZpd8qGaSIwKm6E3FGyIPD1V2Bqca9YGnBnxqAr/AVzQ/g0 naypDuTZja7RyP9myZOBbpzWX1YpBQkJ+ep7tLXGekO81RmFN5hkTxLYYHOCIvA6h3xp Ijgg== X-Forwarded-Encrypted: i=1; AJvYcCXPNB9yYpJQq1aXIzNJS+NOVzJPwpucDB/3i72Mgng+2by5TnzVP0Q7Gpck3vhZrHE4w8wJag==@dpdk.org X-Gm-Message-State: AOJu0YyOxPJwLzieimTULyozKn85jqlpq7+IxlfV1q5DPrjiYURk4vCQ bEB8WX9RzMAoBlTbgXaojC8BuUY0ikIxWXeXEFrQHnX5B9VVxPFcR+D+sCm7Ljo= X-Google-Smtp-Source: AGHT+IHoc+E8kJMpuhGM2h6RtnPjqPwnxHVjX/9TkytmCV6qGRGs0uPg6eUJHLmaoJQQIolApsXQnA== X-Received: by 2002:a17:903:41c7:b0:20c:98f8:e0f5 with SMTP id d9443c01a7336-21103c59dd3mr215848605ad.43.1730649229076; Sun, 03 Nov 2024 07:53:49 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211057f0690sm46600705ad.299.2024.11.03.07.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Nov 2024 07:53:48 -0800 (PST) Date: Sun, 3 Nov 2024 07:53:43 -0800 From: Stephen Hemminger To: "Wiles, Keith" Cc: cuyu tang , "users@dpdk.org" Subject: Re: Pktgen failing in a virtualbox virtual machine Message-ID: <20241103075343.58e0dcd6@hermes.local> In-Reply-To: References: <55BFBAE329D6694E+feadbf99-bbe5-485b-952c-ba22b8815166@expoli.tech> <20241102090306.4a3f850f@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Sun, 3 Nov 2024 15:36:51 +0000 "Wiles, Keith" wrote: > > I'm having segfault issues when running pktgen in a virtualbox virtual > > machine. > > > > Here's what I run it in and some details about running the commands, > > > > and what I can do to get it to run correctly > > > > > > pktgen version: git main brunch > > > > # git log > > commit cc1d4c606dea3939adf75cc02de0f7cf2b28cf1e (HEAD -> main, tag: > > pktgen-24.07.0, origin/main, origin/HEAD) > > > > dpdk version: dpdk-24.07 > > > > [root@localhost dpdk-24.07]# ./usertools/dpdk-devbind.py -s > > > > Network devices using DPDK-compatible driver > > ============================================ > > 0000:00:09.0 '82540EM Gigabit Ethernet Controller 100e' drv=igb_uio > > unused=e1000,vfio-pci > > 0000:00:0a.0 '82540EM Gigabit Ethernet Controller 100e' drv=igb_uio > > unused=e1000,vfio-pci > > > > pktgen run command: > > > > gdb --args /root/pktgen-dpdk/usr/local/bin/pktgen -m 1.0 > > > > Port DevName Index NUMA PCI Information Src MAC > > Promiscuous > > Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. > > 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 > > 102 pkt = &pinfo->seq_pkt[SINGLE_PKT]; > > > > (gdb) bt > > #0 0x000000000043c38b in dump_device_info () at > > ../app/pktgen-port-cfg.c:102 > > #1 0x000000000043e3cf in pktgen_config_ports () at > > ../app/pktgen-port-cfg.c:325 > > #2 0x000000000043aa23 in main (argc=1, argv=0x7fffffffe2d8) at > > ../app/pktgen-main.c:465 > > > > (gdb) n > > 89 bus = rte_bus_find_by_device(dev.device); > > (gdb) > > 90 if (bus && !strcmp(rte_bus_name(bus), "pci")) { > > (gdb) > > 94 vend[0] = device[0] = '\0'; > > (gdb) > > 95 sscanf(rte_dev_bus_info(dev.device), "vendor_id=%4s, > > device_id=%4s", vend, device); > > (gdb) > > 97 rte_eth_dev_get_name_by_port(i, name); > > (gdb) > > 98 snprintf(buff, sizeof(buff), "%s:%s/%s", vend, > > device, rte_dev_name(dev.device)); > > (gdb) > > 90 if (bus && !strcmp(rte_bus_name(bus), "pci")) { > > (gdb) > > 101 pinfo = l2p_get_port_pinfo(i); > > (gdb) > > 102 pkt = &pinfo->seq_pkt[SINGLE_PKT]; > > (gdb) > > > > Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. > > 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 > > 102 pkt = &pinfo->seq_pkt[SINGLE_PKT]; > > (gdb) p pinfo > > $3 = (port_info_t *) 0x0 > > (gdb) > > > > > > > > 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. > > Hi Stephen, > (sorry if formatting is bad as MacOS Outlook has some issues with plain text replies) > > I still maintain Pktgen, but mostly from GitHub issues @ https://github.com/pktgen/Pktgen-DPDK I do have very limited time, so not always the fastest responses. > DPDK gets a lot of emails and sometimes I miss these emails (need to improve my emails rule filter). > I do update dpdk.org Pktgen repo when I can, but it seemed like most of the requests were coming from GitHub. > > This person created an issue at Pktgen GitHub and also posted to this group at the same time. I did respond to his issue and try to work out a solution. I never test using a VM or containers, so it is difficult to help them sometimes. > > If you wish you can remove Pktgen from dpdk.org, but if you do please include a link to the GitHub repository. > Thank you. > > That's great. I assumed (always bad to do) that since there was hardly any activity in dpdk.org repo that you were off doing other things. Which place do you want to keep as primary repo?