On Mon, 28 Oct 2024, Peter Zijlstra wrote: > Using get_task_policy() seems very dangerous to me. It is explicitly > possible for different tasks in a process to have different policies, > which means (private) futexes would fail to work correctly. > > We need something that is process wide consistent -- like the vma > policies. Except at current, those are to expensive to readily access. The vma policies are bound to addresses that in turn yields address space wide validity. However, different threads may run on processes on different nodes and therefore having different numa nodes close to them etc.