Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Ola Liljedahl
t;> To: Savolainen, Petri (Nokia - FI/Espoo) <petri.savolainen@nokia-bell- >> labs.com>; Brian Brooks <brian.bro...@arm.com>; lng-odp@lists.linaro.org >> Cc: nd <n...@arm.com> >> Subject: Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining >>of >> queu

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Savolainen, Petri (Nokia - FI/Espoo)
.org > Cc: nd <n...@arm.com> > Subject: Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of > queues > > Another thing. > > > On 25/04/2017, 12:26, "Savolainen, Petri (Nokia - FI/Espoo)" > <petri.savolai...@nokia-bell-labs.com> wrote: &

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Ola Liljedahl
On 25/04/2017, 12:54, "Savolainen, Petri (Nokia - FI/Espoo)" wrote: >Also in your patch, thread should exit only after scheduler returns >EVENT_INVALID. >Since the cool_down event is the last event on all queues (as they are >enqueued after all threads have

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Ola Liljedahl
Another thing. On 25/04/2017, 12:26, "Savolainen, Petri (Nokia - FI/Espoo)" wrote: > > >> -Original Message- >> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of >>Brian >> Brooks >> Sent: Monday, April 24, 2017 11:59 PM >> To:

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Savolainen, Petri (Nokia - FI/Espoo)
Also in your patch, thread should exit only after scheduler returns EVENT_INVALID. Since the cool_down event is the last event on all queues (as they are enqueued after all threads have passed the barrier), when we have received all cool_down events we know that there are no other events on the

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Ola Liljedahl
On 25/04/2017, 12:26, "Savolainen, Petri (Nokia - FI/Espoo)" > wrote: -Original Message- From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Brian Brooks Sent: Monday, April 24, 2017

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-25 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Brian > Brooks > Sent: Monday, April 24, 2017 11:59 PM > To: lng-odp@lists.linaro.org > Cc: Ola Liljedahl > Subject: [lng-odp] [PATCH] test: odp_sched_latency: robust

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-24 Thread Bill Fischofer
dp-forward <lng-odp@lists.linaro.org>, Ola Liljedahl > <ola.liljed...@arm.com> > Subject: Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining > of queues > > > > > On Mon, Apr 24, 2017 at 3:58 PM, Brian Brooks > <brian.bro...@arm.com> wrote: &

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-24 Thread Ola Liljedahl
(Responding from PoC Outlook) From: Bill Fischofer <bill.fischo...@linaro.org> Date: Tuesday, 25 April 2017 at 00:00 To: Brian Brooks <brian.bro...@arm.com> Cc: lng-odp-forward <lng-odp@lists.linaro.org>, Ola Liljedahl <ola.liljed...@arm.com> Subject: Re

Re: [lng-odp] [PATCH] test: odp_sched_latency: robust draining of queues

2017-04-24 Thread Bill Fischofer
On Mon, Apr 24, 2017 at 3:58 PM, Brian Brooks wrote: > From: Ola Liljedahl > > In order to robustly drain all queues when the benchmark has > ended, we enqueue a special event on every queue and invoke > the scheduler until all such events have been