Re: [PATCH v6 3/4] rust: add support for NUMA ids in allocations

From: Danilo Krummrich
Date: Fri Jun 27 2025 - 14:36:29 EST


On Fri, Jun 27, 2025 at 08:16:38PM +0200, Vitaly Wool wrote:
> Add support for specifying NUMA ids in Rust allocators as an Option
> (i. e. providing `None` as nid corresponds to NUMA_NO_NODE). To do
> this, modify ReallocFunc to use the new extended realloc primitives
> from the C side of the kernel (i. e. k[v]realloc_node/vrealloc_node)
> and add the new function alloc_node to the Allocator trait while
> keeping the existing one (alloc) for backward compatibility.
>
> This will allow to specify node to use for allocation of e. g.
> {KV}Box, as well as for future NUMA aware users of the API.
>
> Signed-off-by: Vitaly Wool <vitaly.wool@xxxxxxxxxxx>

Did you see [1]? I can't see the feedback being addressed.

[1] https://lore.kernel.org/lkml/aF5-a-bUp1pD5tiS@pollux/