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 A9F6AA04AF; Sun, 3 May 2020 19:21:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F3DB91D44D; Sun, 3 May 2020 19:21:31 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 76BF91D181 for ; Sun, 3 May 2020 19:21:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588526489; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IUMl37oFas7w8Irqxs1vTjdYTbFOSeYXK4mAr50Zpus=; b=H03p0PnJmXiQEnF7Zu2NrIBnHh26Uh4iy4DeyEdGIk7euVkIScsfhS7wbwZi7DO/Rh+BpM L+9/8WT5UK2+cBcTmz1V8DtxX9ZL2NTeui8Kvg0GdJG6gxLn5OTgkym7CkpD/Rl0sH5WB4 tZZdNmtsTJYe5bAqoQZ+KKZzU9/HxZI= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-99-HoKDbXzyNmWGKEgSciLvbA-1; Sun, 03 May 2020 13:21:27 -0400 X-MC-Unique: HoKDbXzyNmWGKEgSciLvbA-1 Received: by mail-ua1-f71.google.com with SMTP id a2so6587831uas.17 for ; Sun, 03 May 2020 10:21:27 -0700 (PDT) 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:cc; bh=SEMjlIpRXJRuZUPWmuVdPzY6UHm5EpD8wtHsg3JQtEA=; b=ekwW6ViHOOdCIlF/XvFNAIcK3ipEkIkJPsxsT1tlYuwhScRb80iJgpJ2pPmf6dYJ65 KBPZUnOelhEd5lDB2rC/Pt9wl/cKIUVX7hBI9rlnWW9n8mllfxawzUMMuevu23asHdAO anrx+UUl14/j2W93YMO1PlUzT75kH74NMm1tXp7zC19ks47pbUAagAwt4c7swMHEZiqP wTULcrpKOW+7HmmbH6g3MIfxybpiOVt1dYYaZrilv9gdRu/LOZ+dpGF1oCtOt5pg+nr0 xA3xGUgA7kzAPliJPXLCNg4BHdFuUFYQesGtPeCdPUhbqpQvKmALFnO0O324PzZJaj7W 1ghg== X-Gm-Message-State: AGi0PuZNYuYL4hKuxLISYTHOqO3KK72LIJPsHHRFWvx3DPizFPx8z01g ZbG1brM+oJNgLhrHycDL9u0wK2dkiA6zurqE1+UXeD0tQx9tWkkS0CVVgPMnYWWvW1ClYbhhYHg U5tDE7On+Ijc+6HLsFuo= X-Received: by 2002:a1f:9a41:: with SMTP id c62mr8569883vke.80.1588526487043; Sun, 03 May 2020 10:21:27 -0700 (PDT) X-Google-Smtp-Source: APiQypLs8+zVPoOjMq33xBGHqS4gYBUb3WgHxJgjFs/M2KttrqAgSmQlIZz5FAKjBGNnfC51A5Z6Vs+vxM5/WLpgumo= X-Received: by 2002:a1f:9a41:: with SMTP id c62mr8569868vke.80.1588526486626; Sun, 03 May 2020 10:21:26 -0700 (PDT) MIME-Version: 1.0 References: <20200104013341.19809-1-stephen@networkplumber.org> <20200428235827.15383-1-stephen@networkplumber.org> In-Reply-To: <20200428235827.15383-1-stephen@networkplumber.org> From: David Marchand Date: Sun, 3 May 2020 19:21:15 +0200 Message-ID: To: Stephen Hemminger Cc: dev X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v3 0/8] eal: cleanup resources on shutdown X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Apr 29, 2020 at 1:58 AM Stephen Hemminger wrote: > > Started using valgrind with DPDK, and there are lots of leftover > memory and file descriptors. This makes it hard to find application > leaks versus DPDK leaks. > > The DPDK has a function that applications can use to tell it > to cleanup resources on shutdown (rte_eal_cleanup). But the > current coverage of that API is spotty. Many internal parts of > DPDK leave files and allocated memory behind. > > This patch set is a first step at getting the sub-parts of > DPDK to cleanup after themselves. These are the easier ones, > the harder and more critical ones are in the drivers > and the memory subsystem. > > There are no new exposed API or ABI changes here. > > v3 > - fix a couple of minor checkpatch complaints > > v2 > - rebase after 20.05 file renames > - incorporate review comment feedback > - hold off some of the more involved patches for later Same segfault as v1. $ ./devtools/test-null.sh ./build/app/dpdk-testpmd 0x3 --plop ./build/app/dpdk-testpmd: unrecognized option '--plop' EAL: Detected 8 lcore(s) EAL: Detected 1 NUMA nodes Usage: ./build/app/dpdk-testpmd [options] (snip) EAL: FATAL: Invalid 'command line' arguments. EAL: Invalid 'command line' arguments. EAL: Error - exiting with code: 1 Cause: Cannot init EAL: Invalid argument ./devtools/test-null.sh: line 32: 23134 Broken pipe ( sleep 1 && echo stop ) 23135 Segmentation fault (core dumped) | $testpmd -c $coremask --no-huge -m 20 $libs -w 0:0.0 --vdev net_null1 --vdev net_null2 $eal_options -- --no-mlockall --total-num-mbufs=3D2048 $testpmd_options -ia --=20 David Marchand