Re: [vpp-dev] VPP and RCU?

2018-10-31 Thread Florin Coras
> On Oct 31, 2018, at 4:03 PM, Stephen Hemminger > wrote: > > On Wed, 31 Oct 2018 00:24:36 -0700 > Florin Coras wrote: > >> No reader-writer locks are 100's of times slower. In fact reader >> write locks are slower than normal spin lock. >> > > I guess you meant that

Re: [vpp-dev] VPP and RCU?

2018-10-31 Thread Stephen Hemminger
On Wed, 31 Oct 2018 00:24:36 -0700 Florin Coras wrote: > No reader-writer locks are 100's of times slower. In fact reader > write locks are slower than normal spin lock. > > >>> > >>> I guess you meant that in general, and I can see how for scenarios with > >> multiple

Re: [vpp-dev] VPP and RCU?

2018-10-31 Thread Florin Coras
> On Oct 30, 2018, at 9:02 PM, Honnappa Nagarahalli > wrote: > > > > Hi Stephen, > > No, we don’t support RCU. Wouldn’t rw-locks be enough to support your >> usecases? > > Florin > >> On Oct 29, 2018, at 12:40 PM, Stephen Hemminger >> wrote: >>

Re: [vpp-dev] VPP and RCU?

2018-10-30 Thread Honnappa Nagarahalli
> > > > > >> Hi Stephen, > > >> > > >> No, we don’t support RCU. Wouldn’t rw-locks be enough to support your > usecases? > > >> > > >> Florin > > >> > > >>> On Oct 29, 2018, at 12:40 PM, Stephen Hemminger > wrote: > > >>> > > >>> Is it possible to do Read Copy Update with VPP? Either using > >

Re: [vpp-dev] VPP and RCU?

2018-10-30 Thread Stephen Hemminger
On Mon, 29 Oct 2018 14:58:07 -0700 Florin Coras wrote: > > On Oct 29, 2018, at 1:42 PM, Stephen Hemminger > > wrote: > > > > On Mon, 29 Oct 2018 13:20:27 -0700 > > Florin Coras wrote: > > > >> Hi Stephen, > >> > >> No, we don’t support RCU. Wouldn’t rw-locks be enough to support your >

Re: [vpp-dev] VPP and RCU?

2018-10-29 Thread Florin Coras
> On Oct 29, 2018, at 1:42 PM, Stephen Hemminger > wrote: > > On Mon, 29 Oct 2018 13:20:27 -0700 > Florin Coras wrote: > >> Hi Stephen, >> >> No, we don’t support RCU. Wouldn’t rw-locks be enough to support your >> usecases? >> >> Florin >> >>> On Oct 29, 2018, at 12:40 PM, Stephen

Re: [vpp-dev] VPP and RCU?

2018-10-29 Thread Florin Coras
Hi Stephen, No, we don’t support RCU. Wouldn’t rw-locks be enough to support your usecases? Florin > On Oct 29, 2018, at 12:40 PM, Stephen Hemminger > wrote: > > Is it possible to do Read Copy Update with VPP? Either using Userspace RCU > (https://librcu.org) > or manually. RCU is very

[vpp-dev] VPP and RCU?

2018-10-29 Thread Stephen Hemminger
Is it possible to do Read Copy Update with VPP? Either using Userspace RCU (https://librcu.org) or manually. RCU is very efficient way to handle read mostly tables and other dynamic cases such as plugins. The several things that are needed are non-preempt, atomic update of a pointer and a