Re: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-21 Thread Gavin Hu (Arm Technology China)
; Nagarahalli ; Joyce Kong (Arm Technology > China) > Subject: RE: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve > fairness > > Hi Gavin, > > > > > > > > > > > diff --git a/lib/librte_eal/common/include/generic/rte_ticketlock

Re: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-20 Thread Ananyev, Konstantin
Hi Gavin, > > > > > > > > > diff --git a/lib/librte_eal/common/include/generic/rte_ticketlock.h > > > > b/lib/librte_eal/common/include/generic/rte_ticketlock.h > > > > > new file mode 100644 > > > > > index 000..d63 > > > > > --- /dev/null > > > > > +++ b/lib/librte_eal/common/include/gene

Re: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-19 Thread Gavin Hu (Arm Technology China)
arahalli ; Joyce Kong (Arm Technology > China) > Subject: RE: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve > fairness > > > Hi Gavin, > > > > > > > > diff --git a/lib/librte_eal/common/include/generic/rte_ticketlock.h > > > b

Re: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-19 Thread Ananyev, Konstantin
Hi Gavin, > > > > > diff --git a/lib/librte_eal/common/include/generic/rte_ticketlock.h > > b/lib/librte_eal/common/include/generic/rte_ticketlock.h > > > new file mode 100644 > > > index 000..d63 > > > --- /dev/null > > > +++ b/lib/librte_eal/common/include/generic/rte_ticketlock.h > >

Re: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-19 Thread Gavin Hu (Arm Technology China)
; Nagarahalli ; Gavin Hu (Arm > Technology China) > Subject: RE: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to > improve fairness > > Hi, > > > diff --git a/lib/librte_eal/common/include/generic/rte_ticketlock.h > b/lib/librte_eal/common/include/generic/

Re: [dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-15 Thread Ananyev, Konstantin
Hi, > diff --git a/lib/librte_eal/common/include/generic/rte_ticketlock.h > b/lib/librte_eal/common/include/generic/rte_ticketlock.h > new file mode 100644 > index 000..d63 > --- /dev/null > +++ b/lib/librte_eal/common/include/generic/rte_ticketlock.h > @@ -0,0 +1,308 @@ > +/* SPDX-Licens

[dpdk-dev] [PATCH v6 1/2] eal/ticketlock: ticket based to improve fairness

2019-03-14 Thread Joyce Kong
The spinlock implementation is unfair, some threads may take locks aggressively while leaving the other threads starving for long time. This patch introduces ticketlock which gives each waiting thread a ticket and they can take the lock one by one. First come, first serviced. This avoids starvatio