Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-18 Thread Jerin Jacob
On Mon, Sep 16, 2024 at 4:20 PM Mattias Rönnblom wrote: > > On 2024-09-13 13:23, Jerin Jacob wrote: > > On Fri, Sep 13, 2024 at 12:17 PM Mattias Rönnblom > > wrote: > >> > >> On 2024-09-12 17:11, Jerin Jacob wrote: > >>> On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom > >>> wrote: > > >>

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-16 Thread Mattias Rönnblom
On 2024-09-13 13:23, Jerin Jacob wrote: On Fri, Sep 13, 2024 at 12:17 PM Mattias Rönnblom wrote: On 2024-09-12 17:11, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom wrote: On 2024-09-12 15:09, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote:

RE: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-16 Thread Morten Brørup
> From: Jerin Jacob [mailto:jerinjac...@gmail.com] > Sent: Monday, 16 September 2024 10.12 > > On Fri, Sep 13, 2024 at 8:10 PM Morten Brørup > wrote: > > > > > From: Jerin Jacob [mailto:jerinjac...@gmail.com] > > > Sent: Friday, 13 September 2024 13.24 > > > > > > On Fri, Sep 13, 2024 at 12:17 PM

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-16 Thread Jerin Jacob
On Fri, Sep 13, 2024 at 8:10 PM Morten Brørup wrote: > > > From: Jerin Jacob [mailto:jerinjac...@gmail.com] > > Sent: Friday, 13 September 2024 13.24 > > > > On Fri, Sep 13, 2024 at 12:17 PM Mattias Rönnblom > > wrote: > > > > > > On 2024-09-12 17:11, Jerin Jacob wrote: > > > > On Thu, Sep 12, 2

RE: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-13 Thread Morten Brørup
> From: Jerin Jacob [mailto:jerinjac...@gmail.com] > Sent: Friday, 13 September 2024 13.24 > > On Fri, Sep 13, 2024 at 12:17 PM Mattias Rönnblom > wrote: > > > > On 2024-09-12 17:11, Jerin Jacob wrote: > > > On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom > wrote: > > >> > > >> On 2024-09-12 15

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-13 Thread Jerin Jacob
On Fri, Sep 13, 2024 at 12:17 PM Mattias Rönnblom wrote: > > On 2024-09-12 17:11, Jerin Jacob wrote: > > On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom > > wrote: > >> > >> On 2024-09-12 15:09, Jerin Jacob wrote: > >>> On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom > >>> wrote: > > >>>

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 17:11, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom wrote: On 2024-09-12 15:09, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote: Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't sig

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom wrote: > > On 2024-09-12 15:09, Jerin Jacob wrote: > > On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom > > wrote: > >> > >> Add basic micro benchmark for lcore variables, in an attempt to assure > >> that the overhead isn't significantly greater t

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 15:09, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote: Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't significantly greater than alternative approaches, in scenarios where the benefits aren't expected to s

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote: > > Add basic micro benchmark for lcore variables, in an attempt to assure > that the overhead isn't significantly greater than alternative > approaches, in scenarios where the benefits aren't expected to show up > (i.e., when plenty of cache

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 11:39, Morten Brørup wrote: +struct lcore_state { + uint64_t a; + uint64_t b; + uint64_t sum; +}; + +static __rte_always_inline void +update(struct lcore_state *state) +{ + state->sum += state->a * state->b; +} + +static RTE_DEFINE_PER_LCORE(struct lcore_stat

RE: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Morten Brørup
> +struct lcore_state { > + uint64_t a; > + uint64_t b; > + uint64_t sum; > +}; > + > +static __rte_always_inline void > +update(struct lcore_state *state) > +{ > + state->sum += state->a * state->b; > +} > + > +static RTE_DEFINE_PER_LCORE(struct lcore_state, tls_lcore_state); > + >