RE: [PATCH] eal: non-temporal memcpy

2022-10-11 Thread Konstantin Ananyev
Hi Morten, > Mattias, Konstantin, Honnappa, Stephen, > > In my patch for non-temporal memcpy, I have been aiming for using as much > non-temporal store as possible. E.g. copying 16 byte to a > 16 byte aligned address will be done using non-temporal store instructions. > > Now, I am seriously

Re: [PATCH] eal: non-temporal memcpy

2022-10-10 Thread Stanislaw Kardach
On Mon, Oct 10, 2022 at 11:36:11AM +0200, Morten Brørup wrote: > > For large copies, which I'm guessing is what non-temporal stores are > > usually used for, this is hair splitting. For DPDK applications, it > > might well be at least somewhat relevant, because such an application > > may make an

Re: [PATCH] eal: non-temporal memcpy

2022-10-10 Thread Bruce Richardson
On Mon, Oct 10, 2022 at 10:58:57AM +0200, Mattias Rönnblom wrote: > On 2022-10-10 09:35, Morten Brørup wrote: > > Mattias, Konstantin, Honnappa, Stephen, > > > > In my patch for non-temporal memcpy, I have been aiming for using as much > > non-temporal store as possible. E.g. copying 16 byte to a

RE: [PATCH] eal: non-temporal memcpy

2022-10-10 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Monday, 10 October 2022 10.59 > > On 2022-10-10 09:35, Morten Brørup wrote: > > Mattias, Konstantin, Honnappa, Stephen, > > > > In my patch for non-temporal memcpy, I have been aiming for using as > much non-temporal store as possible

Re: [PATCH] eal: non-temporal memcpy

2022-10-10 Thread Mattias Rönnblom
On 2022-10-10 09:35, Morten Brørup wrote: Mattias, Konstantin, Honnappa, Stephen, In my patch for non-temporal memcpy, I have been aiming for using as much non-temporal store as possible. E.g. copying 16 byte to a 16 byte aligned address will be done using non-temporal store instructions. Now

RE: [PATCH] eal: non-temporal memcpy

2022-10-10 Thread Morten Brørup
Mattias, Konstantin, Honnappa, Stephen, In my patch for non-temporal memcpy, I have been aiming for using as much non-temporal store as possible. E.g. copying 16 byte to a 16 byte aligned address will be done using non-temporal store instructions. Now, I am seriously considering this alternativ

[PATCH] eal: non-temporal memcpy

2022-10-06 Thread Morten Brørup
This patch provides a function for memory copy using non-temporal store, load or both, controlled by flags passed to the function. Applications sometimes copy data to another memory location, which is only used much later. In this case, it is inefficient to pollute the data cache with the copied d