eal: fix lcore variables documentation
PATCH 1/1 eal: fix lcore variables documentation
The lcore variables API is new in DPDK 24.11,
that's why the function rte_lcore_var_alloc() was marked experimental. To be clearer, the whole header file (including all macros) is marked experimental.
A change decreased the default buffer size from 1 MB to 128 kB, missing to update the documentation, which is fixed here.
--- doc/guides/prog_guide/lcore_var.rst | 2 +- lib/eal/include/rte_lcore_var.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
doc/guides/prog_guide/lcore_var.rst +1 -1
@@ -240,7 +240,7 @@ and huge pages for lcore variables: and their use would result in a significant amount of memory going to waste. An example: ~256 kB worth of lcore variables are allocated by DPDK libraries, PMDs and the application. - ``RTE_MAX_LCORE_VAR`` is set to 1 MB and ``RTE_MAX_LCORE`` to 128. + ``RTE_MAX_LCORE_VAR`` is set to 128 kB and ``RTE_MAX_LCORE`` to 128. With 4 kB OS pages, only the first ~64 pages of each of the 128 per-lcore id slices in the (only) ``lcore_var_buffer`` will actually be resident (paged in). Here, demand paging saves ~98 MB of memory.
lib/eal/include/rte_lcore_var.h +2 -0
@@ -15,6 +15,8 @@* * Please refer to the lcore variables' programmer's guide * for an overview of this API and its implementation. +* +* EXPERIMENTAL: this API may change, or be removed, without prior notice. */ #include <stddef.h>
Signature · 1 line
2.47.0
Quoted 35 lines · Thomas Monjalon
The lcore variables API is new in DPDK 24.11,
that's why the functionrte_lcore_var_alloc()was marked experimental. To be clearer, the whole header file (including all macros) is marked experimental.A change decreased the default buffer size from 1 MB to 128 kB, missing to update the documentation, which is fixed here.
Fixes 5bce9bed67ad ("eal: add static per-lcore memory allocation facility")Fixes f2fd6c2e080c ("config: limit lcore variable maximum size to 128k")Signed-off-by Thomas Monjalon <[email protected]>--- doc/guides/prog_guide/lcore_var.rst | 2 +- lib/eal/include/rte_lcore_var.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)doc/guides/prog_guide/lcore_var.rst +1
-1@@ -240,7 +240,7 @@ and huge pages for lcore variables: and their use would result in a significant amount of memory going to waste. An example: ~256 kB worth of lcore variables are allocated by DPDK libraries, PMDs and the application. - ``RTE_MAX_LCORE_VAR`` is set to 1 MB and ``RTE_MAX_LCORE`` to 128. + ``RTE_MAX_LCORE_VAR`` is set to 128 kB and ``RTE_MAX_LCORE`` to 128. With 4 kB OS pages, only the first ~64 pages of each of the 128 per-lcore id slices in the (only) ``lcore_var_buffer`` will actually be resident (paged in). Here, demand paging saves ~98 MB of memory.lib/eal/include/rte_lcore_var.h +0
-0
lib/eal/include/rte_lcore_var.h line 22
Quoted 8 lines
lib/eal/include/rte_lcore_var.h +2
-0@@ -15,6 +15,8 @@* * Please refer to the lcore variables' programmer's guide * for an overview of this API and its implementation. +* +* EXPERIMENTAL: this API may change, or be removed, without prior notice. */ #include <stddef.h>
Thanks!
Thomas Monjalon
Applied17/11/2024 20:11, Mattias Rönnblom:
Quoted 9 lines · Thomas Monjalon
Quoted 8 lines
The lcore variables API is new in DPDK 24.11,
that's why the functionrte_lcore_var_alloc()was marked experimental. To be clearer, the whole header file (including all macros) is marked experimental.A change decreased the default buffer size from 1 MB to 128 kB, missing to update the documentation, which is fixed here.
Quoted 6 lines
Quoted 4 lines
Fixes 5bce9bed67ad ("eal: add static per-lcore memory allocation facility")Fixes f2fd6c2e080c ("config: limit lcore variable maximum size to 128k")Signed-off-by Thomas Monjalon <[email protected]>Acked-by Mattias Rönnblom <[email protected]>
Applied