* configuration of memseg lists number
@ 2023-11-02 10:04 Thomas Monjalon
2023-11-05 9:56 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2023-11-02 10:04 UTC (permalink / raw)
To: anatoly.burakov; +Cc: david.marchand, bruce.richardson, dev, Kefu Chai, avi
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: configuration of memseg lists number
2023-11-02 10:04 configuration of memseg lists number Thomas Monjalon
@ 2023-11-05 9:56 ` Avi Kivity
2023-11-06 4:35 ` kefu chai
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2023-11-05 9:56 UTC (permalink / raw)
To: Thomas Monjalon, anatoly.burakov
Cc: david.marchand, bruce.richardson, dev, Kefu Chai
[-- Attachment #1: Type: text/plain, Size: 785 bytes --]
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?
>
>
[-- Attachment #2: Type: text/html, Size: 1682 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: configuration of memseg lists number
2023-11-05 9:56 ` Avi Kivity
@ 2023-11-06 4:35 ` kefu chai
0 siblings, 0 replies; 3+ messages in thread
From: kefu chai @ 2023-11-06 4:35 UTC (permalink / raw)
To: Avi Kivity
Cc: Thomas Monjalon, anatoly.burakov, david.marchand, bruce.richardson, dev
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-06 14:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-02 10:04 configuration of memseg lists number Thomas Monjalon
2023-11-05 9:56 ` Avi Kivity
2023-11-06 4:35 ` kefu chai
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).