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 9723745B04 for ; Thu, 10 Oct 2024 16:13:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18A1E40298; Thu, 10 Oct 2024 16:13:05 +0200 (CEST) Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) by mails.dpdk.org (Postfix) with ESMTP id D710A4026B for ; Thu, 10 Oct 2024 16:13:03 +0200 (CEST) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-2689e7a941fso553379fac.3 for ; Thu, 10 Oct 2024 07:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728569583; x=1729174383; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v3KltP7zF8NU+bCTmRakD33ICOo1yazi0BR3y+ndtH4=; b=Y274zUeazLogvQM4iWdSivpSpfldGpDZ2s4rhSGC45lcbGNWGpFVupd3P44ocWRYBp W9Q2WcpMwti+JPCboq9rgVpbINqsMUjAim7bRX546a/MmSr+ZUFZ2MJMkHjAtDQKrBey GaMDud1ZW9nZW4njIBrayoW7r7+MdayNssTH/vrW9nUdPaAn5O8bJDMgVTE4kstvPXd1 pNJyp48JLIF7RDSCae9sgEcwWYEnKDpxxAfMS5PqIiWMtKfq3Ivy+wiqCkRguIZCqYWP 9Gmk4Nr3FOT6BIiUiSGqu/7+YG+oFxPI/tdnpfsDRBbAaqlQ3gg7Gor2SNDN9hJYbhDs tM+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728569583; x=1729174383; h=content-transfer-encoding:cc: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=v3KltP7zF8NU+bCTmRakD33ICOo1yazi0BR3y+ndtH4=; b=TAwhDJtrWqBDqd4Trbr4yJR49WTIB/juYGF/bbm2CZd48QWMNtr+ucLj1CuwxVDBOu DJknyxAO1wQJBwXtcukqZ4DfQFZnbDkyAunoDU6VzNwrcYjvvRIAVp8GKmfDgOLaBHEG c5Mo4U6dpQdSu9fDSprDVVUGkI9gk7833dWCM5Q2Pbu0cj4Wrz/asqpQrArCs+NrjIpa H2F+UXKzmyXTixnkb819TquJ0nNwDuWpyCovODihwTbfXqORFdsVJw7VZzkqo7v12KyR hQfq584QtxZuFO1zZe/hIRQpWA5q9A8qCFrvK+idXVleJyGHWtM2DsiT+BBhaFMiKQC9 J7Xw== X-Gm-Message-State: AOJu0YxF7uJDNou+ifOVvwhjJgv3G2HaIoftRvx17RI5AIcJNoAhrvCh w9G2CC+7tOWMgj61iNFrCDi+RG2hHQqZzui6+siBu891H70bLNrcbLbO5WgKQwXyGYqBk+mXtXX dOp1DA9GLvnqLcl8Alb5hTRgK4eqkCQ== X-Google-Smtp-Source: AGHT+IFqB8GQxi7pwBaTy9QMUZaQIXrgfHVxv96AcqPvJAgoSuSUEmOS6lhJy1w0wRra4sLDs4NelgBVeifuohLh/c4= X-Received: by 2002:a05:6870:1586:b0:25e:24b:e65b with SMTP id 586e51a60fabf-28834585c05mr6669157fac.42.1728569582907; Thu, 10 Oct 2024 07:13:02 -0700 (PDT) MIME-Version: 1.0 References: <20241006151820.489761d7@hermes.local> In-Reply-To: <20241006151820.489761d7@hermes.local> From: Alan Beadle Date: Thu, 10 Oct 2024 10:12:50 -0400 Message-ID: Subject: Re: Force driver to free sent buffers? To: Stephen Hemminger Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, Oct 6, 2024 at 6:18=E2=80=AFPM Stephen Hemminger wrote: > > Drivers are free to hold onto transmitted mbuf's indefinitely. > Since DPDK does not use interrupts for normal Tx, the driver has to defer > doing cleaning up either on next Tx or sometimes Rx. There is a Tx thresh= old > that may impact some drivers, but not all. Stephen, How would I attempt to set this threshold to see if it impacts the driver that I am using? I cannot find any EAL parameters that seem to correspond to this. Having to re-allocate a new mbuf every time will hurt performance, especially since most of the packet header values will not be changing across packets but will need to be reinitialized in every newly allocated mbuf. I had really hoped to recycle a set of <100 or so mbufs. -Alan