All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Ed Czeck <ed.czeck@atomicrules.com>
Cc: dev@dpdk.org, Shepard Siegel <shepard.siegel@atomicrules.com>,
	John Miller <john.miller@atomicrules.com>
Subject: Re: [PATCH v2 4/4] net/ark: improve Rx queue recovery after mbuf exhaustion
Date: Sat, 13 Sep 2025 09:26:43 -0700	[thread overview]
Message-ID: <20250913092643.19f7b698@hermes.local> (raw)
In-Reply-To: <20250910185720.995300-4-ed.czeck@atomicrules.com>

On Wed, 10 Sep 2025 14:57:20 -0400
Ed Czeck <ed.czeck@atomicrules.com> wrote:

> use 4-K page aligned buffers to reduce PCIe requests
> reduce message spew
> attempt to allocate smaller chunks of buffers during starvation
> 
> Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
> ---
> v2:
> - reduced message to single line.
> - Added comments on buffer alignment.  PCIe devices deal with page
> size of 4096 bytes.  By aligning this buffer to a 4K boundary, we
> will reduce the number of PCIe read requests.

It would be clearer if there was a #define for the magic 4096 size.
Is the IOMMU page size? The PCI devices themselves don't usually
have page visibility.

Alignment in this case is really a workaround for "don't cross
the boundary". It looks like the rte_malloc library doesn't have
better way to express that.

  reply	other threads:[~2025-09-13 16:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 18:57 [PATCH v2 1/4] net/ark: add PCIe IDS for newly supported devices Ed Czeck
2025-09-10 18:57 ` [PATCH v2 2/4] net/ark: remove double mbuf frees Ed Czeck
2025-09-10 18:57 ` [PATCH v2 3/4] net/ark: improve ring handling for segmented packets Ed Czeck
2025-09-10 18:57 ` [PATCH v2 4/4] net/ark: improve Rx queue recovery after mbuf exhaustion Ed Czeck
2025-09-13 16:26   ` Stephen Hemminger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-03 21:28 [PATCH 1/4] net/ark: add PCIe IDS for newly supported devices Ed Czeck
2025-09-10 19:04 ` [PATCH v2 " Ed Czeck
2025-09-10 19:04   ` [PATCH v2 4/4] net/ark: improve Rx queue recovery after mbuf exhaustion Ed Czeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250913092643.19f7b698@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=ed.czeck@atomicrules.com \
    --cc=john.miller@atomicrules.com \
    --cc=shepard.siegel@atomicrules.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.