From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <users-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 57C3AA0543 for <public@inbox.dpdk.org>; Tue, 25 Oct 2022 10:40:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DE8740A89; Tue, 25 Oct 2022 10:40:48 +0200 (CEST) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by mails.dpdk.org (Postfix) with ESMTP id 4F863400D5 for <users@dpdk.org>; Tue, 25 Oct 2022 10:40:47 +0200 (CEST) Received: by mail-ej1-f52.google.com with SMTP id y14so10647357ejd.9 for <users@dpdk.org>; Tue, 25 Oct 2022 01:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=L+ZXYQtF17dwpALNflyGE7/cVa/Q/n5zqDwf3EV5YPE=; b=dFdOR13ZzzfTtPot/gAx6ZVmV7cgm4LkMAKuhpDC6FPq1w2vudm3U2pLmcMqDzDWxd M/ZJIVf+KKGXDj8nu2j+1gccIWfemmNPlx1ktigqZO0/BMaAkXXJ5UwrLXgGpl2wEOV/ K7hwcWLg1QRnLgHasaQC9lKoJIeLjph/CCGlbo0Yq+Pf8B7gkHFSHUvBfpCgNUewdN5y rm8bqJAwUYuLaoDFNd0d9hWhfI8mPblhgBufcek5bS8y75zYWzYAoP+B9S8aXHkuHDxY 2MdE4yiSTDKqsYhvkdhX/Fh4wfODZuqhuUnnM6zx2TO0j8QIlFPGDlNOxvtYRe0/LMs2 IaUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L+ZXYQtF17dwpALNflyGE7/cVa/Q/n5zqDwf3EV5YPE=; b=TJA7jPFInJgFIVpVmacSS4Jw7Ywa+letD0AQDbmuRnYychfUhsXINzknf8gCGvNcIX Ysm/Z8u47M4nLQ0myTJWboGAWg/+WnHBAPNzt4pwv89aFKVvBvmASPeHzIM/uBcxBB67 nTThGwD4nRCBbODHdrZNUEMFhQ3utFYVWi7WJKVtCNr5C4TItdFO6WArqsdXw26RxTpE 7XIfjz+KlJTSsPxktgT9n+LEXK3hSR7dMiVK80hmOEvxfTirq0LpHpTi4pwOPGupu86l Mup3EJXlts0VwcKzMefh05y/W6jZ5fnJwSCv0b05j4Z4UeVIF8nYbZ5ay5ljyX11Y+et 4OVQ== X-Gm-Message-State: ACrzQf0cmwrLjecRmf+g2DXzVE2wK6Kv8oQ+yiGTv9PnrsWzifOi8LH6 OmVYr55FzGkmE+85NNhExPB/Pool0IPtdBA+Gm/7WIAT X-Google-Smtp-Source: AMsMyM6DHsPZiALWRGfm0N/Q0Vm0UKlR/bX6p4UYgzGs4B5arvDZ3rOia5N1kKk5gdJeDQnbyHs++nXsKGrFayUqg5M= X-Received: by 2002:a17:907:1b12:b0:72f:9b44:f9e with SMTP id mp18-20020a1709071b1200b0072f9b440f9emr31123943ejc.653.1666687246499; Tue, 25 Oct 2022 01:40:46 -0700 (PDT) MIME-Version: 1.0 References: <CAFYD4LqhoX7UC2z0bpeYg2Hb6xcdTOVP61CRMTtt9wHjtqqD5Q@mail.gmail.com> In-Reply-To: <CAFYD4LqhoX7UC2z0bpeYg2Hb6xcdTOVP61CRMTtt9wHjtqqD5Q@mail.gmail.com> From: Gokilavani A <gokilavanianbazhagan@gmail.com> Date: Tue, 25 Oct 2022 14:11:26 +0530 Message-ID: <CAFYD4LqCO7qo0Oa-HpMqqLS+Y94u8W69zn2O261us5y=c=5G6g@mail.gmail.com> Subject: Re: rte_pktmbuf_alloc( ) returns same mbuf address which is not freed To: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000047853605ebd7dd51" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions <users.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/users>, <mailto:users-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/users/> List-Post: <mailto:users@dpdk.org> List-Help: <mailto:users-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/users>, <mailto:users-request@dpdk.org?subject=subscribe> Errors-To: users-bounces@dpdk.org --00000000000047853605ebd7dd51 Content-Type: text/plain; charset="UTF-8" Hi, We have been blocked by this issue. Can anyone help us to resolve the issue? Thanks Gokilavani A On Thu, Oct 13, 2022 at 4:39 PM Gokilavani A <gokilavanianbazhagan@gmail.com> wrote: > Hi, > > > > We are using *DPDK-19.11.11* for our application in which 4 construction > threads construct packets periodically, place it in a circular queue and > > a transmission thread pushes that packet by reading that circular queue. > > > In the long run, We are facing a crash in *eth_igb_xmit_pkts() *call > which is called during transmission. > > > After an inspect with GDB, we came to know that the non-freed mbuf address > is returned by* rte_pktmbuf_alloc() *for another packet during > construction, even though that mbuf is still not transmitted by the > transmission thread, which makes the corresponding construction thread to > update the same memory again. > > > It is not clear why rte_pktmbuf_alloc() returns the mbuf pointer before > that pointer is not getting freed by rte_eth_tx_burst() call?. > > > We have created the mempool using the call, > > *rte_pktmbuf_pool_create(txMemPoolName, > 16384,RTE_MEMPOOL_CACHE_MAX_SIZE,0, 2048 > +RTE_PKTMBUF_HEADROOM, rte_eth_dev_socket_id(0));* > > > Please guide us in resolving this issue. > > > > Thanks, > > Gokilavani A > > > --00000000000047853605ebd7dd51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,</div><div><br></div><div>We have been blocked by = this issue.</div><div><br></div><div>Can anyone help us to resolve the issu= e?</div><div><br></div><div>Thanks</div><div>Gokilavani A</div><br><div cla= ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Oct 13, 20= 22 at 4:39 PM Gokilavani A <<a href=3D"mailto:gokilavanianbazhagan@gmail= .com">gokilavanianbazhagan@gmail.com</a>> wrote:<br></div><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid= rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><p st= yle=3D"color:rgb(36,36,36);font-size:10pt;font-family:Calibri,sans-serif;ma= rgin:0px"><span style=3D"border:0px;font-style:inherit;font-variant:inherit= ;font-weight:inherit;font-stretch:inherit;font-size:10.5pt;line-height:inhe= rit;font-family:"Segoe UI",sans-serif;margin:0px;padding:0px;vert= ical-align:baseline">Hi,=C2=A0</span><span style=3D"border:0px;font-style:i= nherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-s= ize:12pt;line-height:inherit;font-family:inherit;margin:0px;padding:0px;ver= tical-align:baseline;color:black"></span></p><p style=3D"color:rgb(36,36,36= );font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(232,23= 5,250);margin:0px;box-sizing:border-box"><span style=3D"border:0px;font-sty= le:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;fo= nt-size:10.5pt;line-height:inherit;font-family:"Segoe UI",sans-se= rif;margin:0px;padding:0px;vertical-align:baseline">=C2=A0</span></p><p sty= le=3D"color:rgb(36,36,36);font-size:11pt;font-family:Calibri,sans-serif;bac= kground-color:rgb(232,235,250);margin:0px;box-sizing:border-box"><span styl= e=3D"border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit= ;font-stretch:inherit;font-size:10.5pt;line-height:inherit;font-family:&quo= t;Segoe UI",sans-serif;margin:0px;padding:0px;vertical-align:baseline"= >We are using=C2=A0<b>DPDK-19.11.11</b>=C2=A0for our application in which 4= construction threads construct packets periodically, place it in a circula= r queue and</span></p><p style=3D"color:rgb(36,36,36);font-size:11pt;font-f= amily:Calibri,sans-serif;background-color:rgb(232,235,250);margin:0px;box-s= izing:border-box"><span style=3D"border:0px;font-style:inherit;font-variant= :inherit;font-weight:inherit;font-stretch:inherit;font-size:10.5pt;line-hei= ght:inherit;font-family:"Segoe UI",sans-serif;margin:0px;padding:= 0px;vertical-align:baseline">a transmission thread pushes that packet by re= ading that circular queue.</span></p><p style=3D"color:rgb(36,36,36);font-s= ize:11pt;font-family:Calibri,sans-serif;background-color:rgb(232,235,250);m= argin:0px;box-sizing:border-box"><span style=3D"border:0px;font-style:inher= it;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:= 10.5pt;line-height:inherit;font-family:"Segoe UI",sans-serif;marg= in:0px;padding:0px;vertical-align:baseline"><br></span></p><p style=3D"colo= r:rgb(36,36,36);font-size:11pt;font-family:Calibri,sans-serif;background-co= lor:rgb(232,235,250);margin:0px;box-sizing:border-box"><span style=3D"borde= r:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stre= tch:inherit;font-size:10.5pt;line-height:inherit;font-family:"Segoe UI= ",sans-serif;margin:0px;padding:0px;vertical-align:baseline">In the lo= ng run, We are facing a crash in=C2=A0<b>eth_igb_xmit_pkts()=C2=A0</b>call = which is called during transmission.</span></p><p style=3D"color:rgb(36,36,= 36);font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(232,= 235,250);margin:0px;box-sizing:border-box"><span style=3D"border:0px;font-s= tyle:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;= font-size:10.5pt;line-height:inherit;font-family:"Segoe UI",sans-= serif;margin:0px;padding:0px;vertical-align:baseline"><br></span></p><p sty= le=3D"color:rgb(36,36,36);font-size:11pt;font-family:Calibri,sans-serif;bac= kground-color:rgb(232,235,250);margin:0px;box-sizing:border-box"><span styl= e=3D"border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit= ;font-stretch:inherit;font-size:10.5pt;line-height:inherit;font-family:&quo= t;Segoe UI",sans-serif;margin:0px;padding:0px;vertical-align:baseline"= >After an inspect with GDB, we came to know that the non-freed mbuf address= is returned by<b>=C2=A0rte_pktmbuf_alloc()=C2=A0</b>for another packet dur= ing construction, even though that mbuf is still not transmitted by the tra= nsmission thread, which makes the corresponding construction thread to upda= te the same memory again.</span></p><p style=3D"color:rgb(36,36,36);font-si= ze:11pt;font-family:Calibri,sans-serif;background-color:rgb(232,235,250);ma= rgin:0px;box-sizing:border-box"><span style=3D"font-family:"Segoe UI&q= uot;,sans-serif;font-size:10.5pt;font-style:inherit;font-variant-ligatures:= inherit;font-variant-caps:inherit;font-weight:inherit"><br></span></p><p st= yle=3D"color:rgb(36,36,36);font-size:11pt;font-family:Calibri,sans-serif;ba= ckground-color:rgb(232,235,250);margin:0px;box-sizing:border-box"><span sty= le=3D"font-family:"Segoe UI",sans-serif;font-size:10.5pt;font-sty= le:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-we= ight:inherit">It is not clear why rte_pktmbuf_alloc() returns the mbuf poin= ter before that pointer is not getting freed by rte_eth_tx_burst() call?.</= span></p><p style=3D"color:rgb(36,36,36);font-size:11pt;font-family:Calibri= ,sans-serif;background-color:rgb(232,235,250);margin:0px;box-sizing:border-= box"><span style=3D"font-family:"Segoe UI",sans-serif;font-size:1= 0.5pt;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:i= nherit;font-weight:inherit"><br></span></p><p style=3D"color:rgb(36,36,36);= font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(232,235,= 250);margin:0px;box-sizing:border-box"><span style=3D"border:0px;font-style= :inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font= -size:10.5pt;line-height:inherit;font-family:"Segoe UI",sans-seri= f;margin:0px;padding:0px;vertical-align:baseline">We have created the mempo= ol using the call,</span></p><p style=3D"color:rgb(36,36,36);font-size:11pt= ;font-family:Calibri,sans-serif;background-color:rgb(232,235,250);margin:0p= x"><span style=3D"border:0px;font-style:inherit;font-variant:inherit;font-s= tretch:inherit;font-size:10.5pt;line-height:inherit;font-family:"Segoe= UI",sans-serif;margin:0px;padding:0px;vertical-align:baseline"><b>rte= _pktmbuf_pool_create(txMemPoolName, 16384,RTE_MEMPOOL_CACHE_MAX_SIZE,<span = style=3D"font-style:inherit;font-variant:inherit;font-stretch:inherit;font-= size:inherit;line-height:inherit;font-family:inherit;border:0px;margin:0px;= padding:0px;vertical-align:baseline;color:inherit">0, 2048 +RTE_PKTMBUF_HEA= DROOM,=C2=A0=C2=A0rte_eth_dev_socket_id(0));</span></b></span></p><p style= =3D"color:rgb(36,36,36);font-size:11pt;font-family:Calibri,sans-serif;backg= round-color:rgb(232,235,250);margin:0px"><span style=3D"border:0px;font-sty= le:inherit;font-variant:inherit;font-stretch:inherit;font-size:10.5pt;line-= height:inherit;font-family:"Segoe UI",sans-serif;margin:0px;paddi= ng:0px;vertical-align:baseline"><b><span style=3D"font-style:inherit;font-v= ariant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;f= ont-family:inherit;border:0px;margin:0px;padding:0px;vertical-align:baselin= e;color:inherit"><br></span></b></span></p><p style=3D"color:rgb(36,36,36);= font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(232,235,= 250);margin:0px;box-sizing:border-box"><span style=3D"border:0px;font-style= :inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font= -size:10.5pt;line-height:inherit;font-family:"Segoe UI",sans-seri= f;margin:0px;padding:0px;vertical-align:baseline">Please guide us in resolv= ing this issue.</span></p><p style=3D"color:rgb(36,36,36);font-size:10pt;fo= nt-family:Calibri,sans-serif;margin:0px"><span style=3D"border:0px;font-sty= le:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;fo= nt-size:12pt;line-height:inherit;font-family:inherit;margin:0px;padding:0px= ;vertical-align:baseline;color:black">=C2=A0</span></p><p style=3D"color:rg= b(36,36,36);font-size:10pt;font-family:Calibri,sans-serif;margin:0px"><span= style=3D"border:0px;font-style:inherit;font-variant:inherit;font-weight:in= herit;font-stretch:inherit;font-size:12pt;line-height:inherit;font-family:i= nherit;margin:0px;padding:0px;vertical-align:baseline;color:black">Thanks,<= /span></p><p style=3D"color:rgb(36,36,36);font-size:10pt;font-family:Calibr= i,sans-serif;margin:0px"><span style=3D"border:0px;font-style:inherit;font-= variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:12pt;lin= e-height:inherit;font-family:inherit;margin:0px;padding:0px;vertical-align:= baseline;color:black">Gokilavani A</span></p><p style=3D"color:rgb(36,36,36= );font-size:10pt;font-family:Calibri,sans-serif;margin:0px"><span style=3D"= border:0px;font:inherit;margin:0px;padding:0px;vertical-align:baseline;colo= r:inherit">=C2=A0</span></p></div></div> </blockquote></div></div> --00000000000047853605ebd7dd51--