Re: [PATCH v2] ring-buffer: Align meta-page to sub-buffers for improved TLB usage

2024-08-21 Thread Steven Rostedt
On Fri, 28 Jun 2024 11:46:11 +0100 Vincent Donnefort wrote: > diff --git a/tools/testing/selftests/ring-buffer/map_test.c > b/tools/testing/selftests/ring-buffer/map_test.c > index a9006fa7097e..4bb0192e43f3 100644 > --- a/tools/testing/selftests/ring-buffer/map_test.c > +++ b/tools/testing/self

Re: [PATCH v2] ring-buffer: Align meta-page to sub-buffers for improved TLB usage

2024-07-15 Thread Steven Rostedt
On Fri, 28 Jun 2024 11:46:11 +0100 Vincent Donnefort wrote: > This is based on the mm-unstable branch [1] as it depends on David's work [2] > for allowing the zero-page in vm_insert_page(). > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git > [2] https://lore.kernel.org/all/2024

[PATCH v2] ring-buffer: Align meta-page to sub-buffers for improved TLB usage

2024-06-28 Thread Vincent Donnefort
Previously, the mapped ring-buffer layout caused misalignment between the meta-page and sub-buffers when the sub-buffer size was not a multiple of PAGE_SIZE. This prevented hardware with larger TLB entries from utilizing them effectively. Add a padding with the zero-page between the meta-page and