Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-10-14 Thread Mattias Rönnblom
On 2024-10-14 09:56, Morten Brørup wrote: From: Jerin Jacob [mailto:jerinjac...@gmail.com] Sent: Wednesday, 18 September 2024 12.12 On Thu, Sep 12, 2024 at 8:52 PM Jerin Jacob wrote: On Thu, Sep 12, 2024 at 7:11 PM Morten Brørup wrote: From: Jerin Jacob [mailto:jerinjac...@gmail.com] Sen

RE: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-10-14 Thread Morten Brørup
> From: Jerin Jacob [mailto:jerinjac...@gmail.com] > Sent: Wednesday, 18 September 2024 12.12 > > On Thu, Sep 12, 2024 at 8:52 PM Jerin Jacob > wrote: > > > > On Thu, Sep 12, 2024 at 7:11 PM Morten Brørup > wrote: > > > > > > > From: Jerin Jacob [mailto:jerinjac...@gmail.com] > > > > Sent: Thurs

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-19 Thread Mattias Rönnblom
On 2024-09-18 12:11, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 8:52 PM Jerin Jacob wrote: On Thu, Sep 12, 2024 at 7:11 PM Morten Brørup wrote: From: Jerin Jacob [mailto:jerinjac...@gmail.com] Sent: Thursday, 12 September 2024 15.17 On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup wrote:

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-18 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 8:52 PM Jerin Jacob wrote: > > On Thu, Sep 12, 2024 at 7:11 PM Morten Brørup > wrote: > > > > > From: Jerin Jacob [mailto:jerinjac...@gmail.com] > > > Sent: Thursday, 12 September 2024 15.17 > > > > > > On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup > > > wrote: > > > > >

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 7:11 PM Morten Brørup wrote: > > > From: Jerin Jacob [mailto:jerinjac...@gmail.com] > > Sent: Thursday, 12 September 2024 15.17 > > > > On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup > > wrote: > > > > > > > +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) >

RE: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Morten Brørup
> From: Jerin Jacob [mailto:jerinjac...@gmail.com] > Sent: Thursday, 12 September 2024 15.17 > > On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup > wrote: > > > > > +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) > > > > Considering hugepages... > > > > Lcore variables may be allocate

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup wrote: > > > +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) > > Considering hugepages... > > Lcore variables may be allocated before DPDK's memory allocator > (rte_malloc()) is ready, so rte_malloc() cannot be used for lcore variables

RE: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Morten Brørup
> +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) Considering hugepages... Lcore variables may be allocated before DPDK's memory allocator (rte_malloc()) is ready, so rte_malloc() cannot be used for lcore variables. And lcore variables are not usable (shared) for DPDK multi-proce

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 11:05 AM Mattias Rönnblom wrote: > > On 2024-09-12 04:33, fengchengwen wrote: > > On 2024/9/12 1:04, Mattias Rönnblom wrote: > >> Introduce DPDK per-lcore id variables, or lcore variables for short. > >> > >> An lcore variable has one value for every current and future lcor

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread fengchengwen
On 2024/9/12 13:35, Mattias Rönnblom wrote: > On 2024-09-12 04:33, fengchengwen wrote: >> On 2024/9/12 1:04, Mattias Rönnblom wrote: >>> Introduce DPDK per-lcore id variables, or lcore variables for short. >>> >>> An lcore variable has one value for every current and future lcore >>> id-equipped th

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-11 Thread Mattias Rönnblom
On 2024-09-12 04:33, fengchengwen wrote: On 2024/9/12 1:04, Mattias Rönnblom wrote: Introduce DPDK per-lcore id variables, or lcore variables for short. An lcore variable has one value for every current and future lcore id-equipped thread. The primary use case is for statically allocating sma

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-11 Thread fengchengwen
On 2024/9/12 1:04, Mattias Rönnblom wrote: > Introduce DPDK per-lcore id variables, or lcore variables for short. > > An lcore variable has one value for every current and future lcore > id-equipped thread. > > The primary use case is for statically allocating > small, frequently-accessed data s