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 B7D2DA0518 for ; Fri, 24 Jul 2020 01:58:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 174131BFEC; Fri, 24 Jul 2020 01:58:07 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by dpdk.org (Postfix) with ESMTP id 4F1911BFE5 for ; Fri, 24 Jul 2020 01:58:05 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id p3so4148255pgh.3 for ; Thu, 23 Jul 2020 16:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GecGteMPyfDcCsx1I1msTtxZHUKxWpr/+1tv9wXbRwE=; b=gPRNI4rfEY7zftIxFiX9L6KtPkJ+hWhrHZf15Uol9RPhXp6ub/yC+U9lePpq+6HYRJ u0Bm0DeRGqf8+rbRX5AGySnANBo3ZvjbKU8gbOjtw+N3k+ASx79o9KkCqnlt2DtBfo1U rIdSk5hAr2sGqEW5p2kBijOl7D0PcKgAwSjFPCR7gQS+eBl8ZRScnNa1zf+a9+tbDl3r CvT1tL1mXKwEL4iz2DanAisbwIZGG0dnpuWTRWgkN1MTrtUGjdeO40y2pZ1QalxBSTv5 Sv4PqBWHaVvVXzLBN+d9n9/6awRgPFEYKrUdaWtMyIH8OLti4H/Yj7OeTSYaAwtjUFYd rJQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GecGteMPyfDcCsx1I1msTtxZHUKxWpr/+1tv9wXbRwE=; b=BFYQEPxa+2pxbBvThOZEmNZUZqY8J7qt3mCbhjVY2i5e3axW69mfriIG0oBG06DIeC XJXMOWj7BMm1fSNe8K5/YkvSXn/rq0d8cO0NPsruz2ZNv3BMxuYN4jyklA/xvQCueELL Zw2JbEn8O3975dFLQezcMyfdsmfL2TYoSqgHXXsntlobhU4ScC5Fm2B8BPz6QuqwkYtz l6FjETUm2XrdHKzwIpclAypZ5oDuWO2iW0pElJRw/Ak1pdygPLjNP2cZFyCyif2BXD5y vGoaCheAWVmC6Ta31saZV62bID4IzlTRs0euTIqZwC5xWl6myS96ak5pBBEOyycpm+Ho tx/Q== X-Gm-Message-State: AOAM5306y6zzmIk4ujdFgtP3CPatpsSjFNhCyezXvw9zlmozkMIK6wbM mc/UN7w/aCAFTHhHwCpP4ACRRQ== X-Google-Smtp-Source: ABdhPJwIiJuykk67DNr/guHvAVPDtpBTcGXVXui3VCc4x++lwhCH5/caM0+39oFzc+AOMZLGTbkhNg== X-Received: by 2002:a63:a119:: with SMTP id b25mr6235641pgf.10.1595548684195; Thu, 23 Jul 2020 16:58:04 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f93sm3764514pjk.56.2020.07.23.16.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:58:03 -0700 (PDT) Date: Thu, 23 Jul 2020 16:57:55 -0700 From: Stephen Hemminger To: PATRICK KEROULAS Cc: users@dpdk.org Message-ID: <20200723165755.46cef46c@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] mlx5 / tcpdump: packet drop 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" On Thu, 23 Jul 2020 17:10:31 -0400 PATRICK KEROULAS wrote: > Hello, > > I'm trying to use tcpdump with dpdk support in order to benefit from > dpdk performance and nice features from tcpdump, like filters etc. > Traffic is constant but quite significant, 6 Gbps, captured by Mellanox > ConnectX-5. > > DPDK standalone works like a charm, no packet drop. > $ testpmd -w 0000:01:00.0 -w 0000:01:00.1 -- --enable-rx-timestamp > $ dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/test.pcap' > > However,when using libpcap/tcpdump on exact same hardware and > dpdk version, 15% of the pkts are dropped by interface: The libpcap version of packet capture has many copies, and lots of extra system calls. The performance is likely to be less than doing a native solution with the kernel. It may get better in the future.