Re: [PATCH v6] eal: add seqlock

2022-05-12 Thread Mattias Rönnblom
On 2022-05-09 05:48, Stephen Hemminger wrote: On Sun, 8 May 2022 21:40:58 +0200 Mattias Rönnblom wrote: I think would be good to have the sequence count (read side only) like the kernel and sequence lock (sequence count + spinlock) as separate things. That way the application could use sequen

RE: [PATCH v6] eal: add seqlock

2022-05-08 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 9 May 2022 05.48 > > On Sun, 8 May 2022 21:40:58 +0200 > Mattias Rönnblom wrote: > > > > I think would be good to have the sequence count (read side only) > like > > > the kernel and sequence lock (sequence count + spi

Re: [PATCH v6] eal: add seqlock

2022-05-08 Thread Stephen Hemminger
On Sun, 8 May 2022 21:40:58 +0200 Mattias Rönnblom wrote: > > I think would be good to have the sequence count (read side only) like > > the kernel and sequence lock (sequence count + spinlock) as separate things. > > > > That way the application could use sequence count + ticket lock if it > >

Re: [PATCH v6] eal: add seqlock

2022-05-08 Thread Mattias Rönnblom
On 2022-05-08 18:10, Stephen Hemminger wrote: On Sun, 8 May 2022 14:12:42 +0200 Mattias Rönnblom wrote: A sequence lock (seqlock) is a synchronization primitive which allows for data-race free, low-overhead, high-frequency reads, suitable for data structures shared across many cores and which a

Re: [PATCH v6] eal: add seqlock

2022-05-08 Thread Stephen Hemminger
On Sun, 8 May 2022 14:12:42 +0200 Mattias Rönnblom wrote: > A sequence lock (seqlock) is a synchronization primitive which allows > for data-race free, low-overhead, high-frequency reads, suitable for > data structures shared across many cores and which are updated > relatively infrequently. > >