Re: Futex hash_bucket lock can break isolation and cause priority inversion on RT

From: Sebastian Andrzej Siewior
Date: Tue Oct 08 2024 - 14:09:30 EST


On 2024-10-08 12:59:24 [-0300], André Almeida wrote:
>
> So if every process has it owns hb-lock, every process has their own bucket?
> It would act just like a linked list then?

If you have one hb-lock, yes. But you could have 4 or 8 slots. A slot
has 64 bytes due to alignment. As-is the 8 slots would occupy 512 bytes
of memory.

Sebastian