the patch applied?
--
Manfred
From fe2f257b1950a19bf5c6f67e71aa25c2f13bcdc3 Mon Sep 17 00:00:00 2001
From: Manfred Spraul
Date: Sun, 24 May 2020 14:47:31 +0200
Subject: [PATCH 2/2] ipc/msg.c: Handle case of senders not enqueuing the
message
The patch "ipc/msg.c: wake up se
7 @@ static void ss_wakeup(struct msg_queue *msq,
> > > > > continue;
> > > > > }
> > > > > + msq_quota_used += mss->msgsz;
> > > > > wake_q_add(wake_q, mss->tsk);
> &g
e
> > > message:
> > >
> > > Situation:
> > >
> > > - 2 messages of type 1 in the queue (2x8192 bytes, queue full)
> > >
> > > - 6 senders waiting to send messages of type 2
> > >
> > > - 6 receivers waiting to ge
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
ng that you agree) run your benchmarks
with the patch applied?
--
Manfred
From fe2f257b1950a19bf5c6f67e71aa25c2f13bcdc3 Mon Sep 17 00:00:00 2001
From: Manfred Spraul
Date: Sun, 24 May 2020 14:47:31 +0200
Subject: [PATCH 2/2] ipc/msg.c: Handle case of senders not enqueuing the
message
ends the message to one receiver,
> and the remaining 10 tasks continue to sleep.
>
>
> Could you please check and (assuming that you agree) run your benchmarks
> with the patch applied?
>
> --
>
> Manfred
>
>
>
> From fe2f257b1950a19bf5c6f67e71aa25
Manfred
>From fe2f257b1950a19bf5c6f67e71aa25c2f13bcdc3 Mon Sep 17 00:00:00 2001
From: Manfred Spraul
Date: Sun, 24 May 2020 14:47:31 +0200
Subject: [PATCH 2/2] ipc/msg.c: Handle case of senders not enqueuing the
message
The patch "ipc/msg.c: wake up senders until there is a qu
Take into account the total size of the already enqueued messages of
previously handled senders before another one.
Otherwise, we have serious degradation of receiver throughput for
case with multiple senders because another sender wakes up,
checks the queue capacity and falls into sleep again.
8 matches
Mail list logo