DPDK usage discussions
 help / color / mirror / Atom feed
From: Lucas <lucascrijns@gmail.com>
To: users@dpdk.org
Subject: Re: Increase DPDK's virtual memory to more than 512 GiB
Date: Mon, 3 Mar 2025 15:52:34 +0100	[thread overview]
Message-ID: <CADTTPn-iRDdPUMLUYt8-P5i_Ako51wUaNQztgoyWjqEU0G4EjA@mail.gmail.com> (raw)
In-Reply-To: <20250220175505.5116b4e0@sovereign>


[-- Attachment #1.1: Type: text/plain, Size: 1327 bytes --]

Hi Dmitry,

Excuse my late reply.
My system is configured with 1G huge page size upon boot and then later on
I issue `sysctl -w vm.nr_hugepages=700`
It appears that the swapping was caused by some daemon that decided to
start up and allocate quite some memory. I no longer observe this effect.
I included a FlameGraph (recorded with perf) from program startup that does
a memory allocation for 500 GB (MBUFS + priv data): mempool allocation
with 218'531'468 MBUFs.
Most time is spent in mmap and in memsets.

Let me know what you think and perhaps if there are ways to improve the
loading time.

On Thu, Feb 20, 2025 at 3:55 PM Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
wrote:

> 2025-02-20 15:19 (UTC+0100), Lucas:
> > As for the issue, at 550 GB so 252'757'352 MBUFs (using default mbuf buf
> > size), it works now, with ring allocation. However, the physical memory
> > usage now goes up a lot and I end up swapping. It appears that not all
> > memory is in hugepages (not all pages are filled) and that perhaps the
> > kernel also allocates more memory. I have 755 GiB RAM available, so 600
> GB
> > of mempool is pushing it.
>
> How is your system configured to reserve hugepages?
> DPDK always allocates hugepages; if none are available, allocation fails.
> Hugepages never swap AFAIK.
>

[-- Attachment #1.2: Type: text/html, Size: 1775 bytes --]

[-- Attachment #2: startup_flamegraph.svg --]
[-- Type: image/svg+xml, Size: 71899 bytes --]

  reply	other threads:[~2025-03-03 14:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-19 14:22 Lucas
2025-02-19 15:03 ` Stephen Hemminger
2025-02-19 22:28 ` Dmitry Kozlyuk
     [not found]   ` <CADTTPn-zDTotOsCsnkuEQiRDdEfuLGVDo1hmuXetgGLd+TTP6Q@mail.gmail.com>
2025-02-20 11:21     ` Dmitry Kozlyuk
2025-02-20 14:19       ` Lucas
2025-02-20 14:55         ` Dmitry Kozlyuk
2025-03-03 14:52           ` Lucas [this message]
2025-03-03 22:05             ` Dmitry Kozlyuk

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=CADTTPn-iRDdPUMLUYt8-P5i_Ako51wUaNQztgoyWjqEU0G4EjA@mail.gmail.com \
    --to=lucascrijns@gmail.com \
    --cc=users@dpdk.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).