From: kefu chai <tchaikov@gmail.com>
To: Avi Kivity <avi@scylladb.com>
Cc: Thomas Monjalon <thomas@monjalon.net>,
anatoly.burakov@intel.com, david.marchand@redhat.com,
bruce.richardson@intel.com, dev@dpdk.org
Subject: Re: configuration of memseg lists number
Date: Mon, 6 Nov 2023 12:35:21 +0800 [thread overview]
Message-ID: <CAJE9aOOMmJsRtO_J_0vt6q+h7Q+=T5hz=Kb+Zj1DuVp4SjpGFg@mail.gmail.com> (raw)
In-Reply-To: <7fa897991d4c5f1d0b91b65ce58276c5fa434bbd.camel@scylladb.com>
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
On Sun, Nov 5, 2023 at 5:56 PM Avi Kivity <avi@scylladb.com> wrote:
> Thanks, it makes sense. I'll get around to it "eventually".
>
> On Thu, 2023-11-02 at 11:04 +0100, Thomas Monjalon wrote:
>
> Hello,
>
> While looking at Seastar, I see it uses this patch on top of DPDK:
>
> build: add meson options of max_memseg_lists
>
> RTE_MAX_MEMSEG_LISTS = 128 is not enough for high-memory machines,
> in our case, we need to increase it to 8192.
> so add an option so user can override it.
>
> https://github.com/scylladb/dpdk/commit/cafaa3cf457584de
>
> I think we could allow to configure this at runtime,
> as we did already for RTE_MAX_MEMZONE:
> we've added rte_memzone_max_set() / rte_memzone_max_get().
>
> Opinions, comments, volunteers?
>
>
Hi Thomas,
Thank you for looking into it. I sent this patch[0] to DPDK 2 years ago.
but i failed to find a solid proof to prove that we need such a massive
number, and failed to follow-up on the suggestion[1] on calculating his
number based on the lcores / numa node as I was trying to port the newer
dpdk to seastar at that moment, so dropped the ball on my end, sorry for
that. just revisited the places where we use RTE_MAX_MEMSEG_LISTS. it seems
it would be a bigger effort to make it a run-time configurable option
instead of a compile-time one.
--
[0] https://inbox.dpdk.org/dev/20211013205417.84119-3-tchaikov@gmail.com/
[1] https://inbox.dpdk.org/dev/2642296.XfZ1dg20Xv@thomas/
--
Regards
Kefu Chai
[-- Attachment #2: Type: text/html, Size: 2722 bytes --]
prev parent reply other threads:[~2023-11-06 4:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-02 10:04 Thomas Monjalon
2023-11-05 9:56 ` Avi Kivity
2023-11-06 4:35 ` kefu chai [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='CAJE9aOOMmJsRtO_J_0vt6q+h7Q+=T5hz=Kb+Zj1DuVp4SjpGFg@mail.gmail.com' \
--to=tchaikov@gmail.com \
--cc=anatoly.burakov@intel.com \
--cc=avi@scylladb.com \
--cc=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/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).