Thread (60 messages) flat view 60 messages, 8 authors, 2024-10-28

Re: [PATCH v1 11/14] futex: Implement FUTEX2_NUMA

From: "Christoph Lameter (Ampere)" <cl@gentwo.org>
Date: 2024-10-28 22:32:53
Also in: linux-arch, linux-mm, lkml

On Sat, 26 Oct 2024, Peter Zijlstra wrote:
I'll look into the per task thing, which I'm hoping means per-process.
We need something that is mm wide consistent.
Each thread can modify its policy and that is used f.e. to control memory
allocations for syscalls. For example a thread wants to allocate kernel
metadata on a specific node then the policy would be set to that node.
Syscall is done and then the tasks resets the policy to the default.

mm wide memory policies are set at an VMA level and are associated with
addresses.
But since futexes play in the address space, I was really rather
thinking we ought to use the vma policy.
If they are associated with an address then you can use the address space
policy.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help