Re: [PATCH] ipc/msg.c: wake up senders until there is a queue empty capacity
From: Artur Barsegyan
Date: Wed May 27 2020 - 07:20:39 EST
About your case:
The new receiver puts at the end of the receivers list.
pipelined_send() starts from the beginning of the list and iterates until the end.
If our queue is always full, each receiver should get a message because new receivers appends at the end.
In my vision: we waste some time in that loop but in general should increase the throughout. But it should be tested.
Yes, I'm gonna implement it and make a benchmark. But maybe it should be done in another patch thread?