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 508C9A0613 for ; Thu, 26 Sep 2019 07:16:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3186C2BD5; Thu, 26 Sep 2019 07:16:41 +0200 (CEST) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 9E2572952 for ; Thu, 26 Sep 2019 07:16:39 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id t10so530341plr.8 for ; Wed, 25 Sep 2019 22:16:39 -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=4ok/vveG8V2d9zqfJ7UN609BbE/S0LAYNBY0Noz7lHk=; b=rSGPIL5Yp8SJgzGTyKS1teCh+Uteh9y5oGaC5oGHUpRRrwGn8OV+bvWrxhtHcCtZjK iYlkr2h4Blph4lX+obxptFgdtK9TbYqZjiGFhqouyM/l//7bBgdcT7JWqE4sRMzj8snG DcrHclJyAkMDqjTZCextdHuiILLxdsYrgt4pe65jevX55W4WF000QZVjLkl5bVXzan/9 I0DAp6nMExFlyxAGBX8Git5iHk5SEpaLbjMxrv8pDLDezgi/x32bxjc+Om3W6y2mrLvr WxJVpjQ/DvtmQ5qxwuLFPKjNZCNxjP0zuk8KOHxMKRx6x9ERV/zg9u25RrNDYk981ka7 dwRA== 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=4ok/vveG8V2d9zqfJ7UN609BbE/S0LAYNBY0Noz7lHk=; b=aAqhCrW36oH2o4gpy0HkK0PgHJViCA8kkNPxrTLeXxZKS4Mjk0UtAoEEsr0mmf0zxh 2Xn0/wP1V42sYhMpo0ozHHPJIje0+ceV16pnTDv0J4of8oBAw4F+pXm8MojyheTqqV9l kA0vB5piClY8FOAV5T43DGqJ5Ovuf0SJLuxRCUFzDrZBGypsf3asAUn7PDb48quRS5y4 Ispx5HYc1qj1n4gzH69WrQEtDE/PAvyy49t56cRu3drCttUjAEsq6VRKEpxWN73pRYjF mI2QTLPkqn8dhGBqfMat96/qM6s3iLqjsVNmQcAKBrY2FxWGqYb/QQM3UjfAX4g+1LGy +rRg== X-Gm-Message-State: APjAAAWTbz3LXXJRDKNTdWrydI+GjbjEz+/f64PlrgKX3u8vUrWojlAx 2awZX8B13U0kMY7VScZq+xMJhk1ckGw= X-Google-Smtp-Source: APXvYqzK3/CMvvXHdBZkyqZnPPMemtCNLXcv4gxdRFe9sJCfEGegah/iLglsXOfxIMVC7tICP3IHhw== X-Received: by 2002:a17:902:142:: with SMTP id 60mr1917257plb.155.1569474998726; Wed, 25 Sep 2019 22:16:38 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id p189sm754146pga.2.2019.09.25.22.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 22:16:38 -0700 (PDT) Date: Wed, 25 Sep 2019 22:16:37 -0700 From: Stephen Hemminger To: Gaurav Bansal Cc: users@dpdk.org Message-ID: <20190925221637.11fb9632@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] packet drops seen once the no of rxd pkts reach the ring size 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, 26 Sep 2019 10:45:03 +0530 Gaurav Bansal wrote: > any suggestions here ? > > On Wed, Sep 25, 2019 at 4:09 PM Gaurav Bansal wrote: > > > Hi all, > > I am using dpdk 16.04 library to process the packets on a vmware vm (say > > vm1). The traffic is sent through a client machine using apache bench. I am > > observing an issue when the number of packets reaching the vmxnet3 > > interface reaches the descriptor ring size (set to 2048). Till 2048 all the > > packets correctly reach the 'vmxnet3_recv_pkts' function. > > > > But as the number of packets received reaches 2048, i start seeing some > > retransmissions on the client side (as shown by tcpdump on client side). > > Then i captured the packets on the esx host destined to vm1 and it shows > > that all the original packets as well as the corresponding retransmissions > > are reaching vm1. But somehow these packets fail to reach till > > 'vmxnet3_recv_pkts' function (this was found by putting the breakpoint in > > 'vmxnet3_recv_pkts' function and dumping the packet contents, which showed > > that some packets don't reach here). > > > > Now 'vmxnet3_recv_pkts' is the first function which reads the packets from > > the descriptor ring and as the packets are not reaching till here, i am not > > sure on how to debug this further. Possibly some issues related to the ring > > initialization.... I enabled the init & RX logs for vmxnet3, but i don't > > see any error logs as well. I also tried looking at rxq stats and it shows > > 0 all the time : > > (gdb) p rxq->stats > > $1 = {drop_total = 0, drop_err = 0, drop_fcs = 0, rx_buf_alloc_failure = 0} > > > > Can anyone please provide some clues on how to debug this further ? Are > > there any known issues related to this which have been fixed post 16.04 > > version ? > > thanks, > > gaurav > > Try a newer version of DPDK first.