DPDK usage discussions
 help / color / mirror / Atom feed
From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: Lucas <lucascrijns@gmail.com>
Cc: users@dpdk.org
Subject: Re: Increase DPDK's virtual memory to more than 512 GiB
Date: Tue, 4 Mar 2025 01:05:51 +0300	[thread overview]
Message-ID: <20250304010551.6a650521@sovereign> (raw)
In-Reply-To: <CADTTPn-iRDdPUMLUYt8-P5i_Ako51wUaNQztgoyWjqEU0G4EjA@mail.gmail.com>

2025-03-03 15:52 (UTC+0100), Lucas:
> 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.

Thanks for the profile, Lucas.

[1] suggests that allocation would take about (500 / 32) * 2.16 = 33.75 sec.
You can run "malloc_perf_autotest" in "dpdk-test" to estimate for your HW.
I don't know any simple and secure way to speed up the kernel part.
Restart can be made faster as [1] suggests, but not the first start.

Try investigating other parts of the profile that take place in user space.

[1]: https://inbox.dpdk.org/dev/20211230143744.3550098-1-dkozlyuk@nvidia.com/

      reply	other threads:[~2025-03-03 22:05 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
2025-03-03 22:05             ` Dmitry Kozlyuk [this message]

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=20250304010551.6a650521@sovereign \
    --to=dmitry.kozliuk@gmail.com \
    --cc=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).