Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-11 Thread Stephen Hemminger
On Mon, 11 Nov 2024 08:22:46 +0100 Mattias Rönnblom wrote: > On 2024-11-09 00:52, Morten Brørup wrote: > >> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > >> Sent: Friday, 8 November 2024 23.23 > >> > >> On 2024-11-08 20:53, Morten Brørup wrote: > From: Morten Brørup [mailto:m...@

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-10 Thread Mattias Rönnblom
On 2024-11-09 00:52, Morten Brørup wrote: From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] Sent: Friday, 8 November 2024 23.23 On 2024-11-08 20:53, Morten Brørup wrote: From: Morten Brørup [mailto:m...@smartsharesystems.com] Sent: Friday, 8 November 2024 19.35 From: David Marchand [ma

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-10 Thread Mattias Rönnblom
On 2024-11-09 00:11, Thomas Monjalon wrote: 08/11/2024 23:34, Mattias Rönnblom: On 2024-11-08 23:13, Thomas Monjalon wrote: 08/11/2024 20:53, Morten Brørup: From: Morten Brørup [mailto:m...@smartsharesystems.com] Sent: Friday, 8 November 2024 19.35 From: David Marchand [mailto:david.march...

RE: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Friday, 8 November 2024 23.23 > > On 2024-11-08 20:53, Morten Brørup wrote: > >> From: Morten Brørup [mailto:m...@smartsharesystems.com] > >> Sent: Friday, 8 November 2024 19.35 > >> > >>> From: David Marchand [mailto:david.march...@r

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Thomas Monjalon
08/11/2024 23:34, Mattias Rönnblom: > On 2024-11-08 23:13, Thomas Monjalon wrote: > > 08/11/2024 20:53, Morten Brørup: > >>> From: Morten Brørup [mailto:m...@smartsharesystems.com] > >>> Sent: Friday, 8 November 2024 19.35 > >>> > From: David Marchand [mailto:david.march...@redhat.com] >

RE: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Friday, 8 November 2024 23.13 > Let's consider based on the need. > The lcore variables are new and we don't want it to degrade the DPDK > footprint, > at least not in this first version. > 4 KB is a memory page on common systems, > it l

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Mattias Rönnblom
On 2024-11-08 23:13, Thomas Monjalon wrote: 08/11/2024 20:53, Morten Brørup: From: Morten Brørup [mailto:m...@smartsharesystems.com] Sent: Friday, 8 November 2024 19.35 From: David Marchand [mailto:david.march...@redhat.com] Sent: Friday, 8 November 2024 19.18 OVS locks all pages to avoid pag

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Mattias Rönnblom
On 2024-11-08 20:53, Morten Brørup wrote: From: Morten Brørup [mailto:m...@smartsharesystems.com] Sent: Friday, 8 November 2024 19.35 From: David Marchand [mailto:david.march...@redhat.com] Sent: Friday, 8 November 2024 19.18 OVS locks all pages to avoid page faults while processing packets.

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Thomas Monjalon
08/11/2024 20:53, Morten Brørup: > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > Sent: Friday, 8 November 2024 19.35 > > > > > From: David Marchand [mailto:david.march...@redhat.com] > > > Sent: Friday, 8 November 2024 19.18 > > > > > > OVS locks all pages to avoid page faults whil

Re: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Mattias Rönnblom
On 2024-11-08 19:17, David Marchand wrote: OVS locks all pages to avoid page faults while processing packets. 1M for each lcore translates to allocating 128M with default build options on x86. This resulted in OOM while running unit tests in parallel. Could you give some more context. If you g

RE: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Morten Brørup
> From: Morten Brørup [mailto:m...@smartsharesystems.com] > Sent: Friday, 8 November 2024 19.35 > > > From: David Marchand [mailto:david.march...@redhat.com] > > Sent: Friday, 8 November 2024 19.18 > > > > OVS locks all pages to avoid page faults while processing packets. It sounds smart, so I ju

RE: [PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Friday, 8 November 2024 19.18 > > OVS locks all pages to avoid page faults while processing packets. > 1M for each lcore translates to allocating 128M with default build > options on x86. > This resulted in OOM while running unit te

[PATCH] config: limit lcore variable maximum size to 4k

2024-11-08 Thread David Marchand
OVS locks all pages to avoid page faults while processing packets. 1M for each lcore translates to allocating 128M with default build options on x86. This resulted in OOM while running unit tests in parallel. At the moment, the more demanding DPDK user of lcore variable is rte_service, with a 2112