Linux Trace Kernel
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ring-buffer: Use kvmalloc variants for big allocations
@ 2026-11-27 15:13 Vincent Donnefort
  2026-11-27 15:13 ` [PATCH v2 1/3] ring-buffer: Use kvzalloc_objs for user mapping arrays Vincent Donnefort
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vincent Donnefort @ 2026-11-27 15:13 UTC (permalink / raw)
  To: rostedt, mhiramat, linux-trace-kernel
  Cc: mathieu.desnoyers, kernel-team, linux-kernel, Vincent Donnefort

Several allocations in the ring buffer code scale with buffer capacity
or sub-buffer order and require high-order contiguous physical memory
when using plain kmalloc. Under memory fragmentation or with large
buffers, these allocations can fail unnecessarily.

This series converts those allocations to their kvmalloc equivalents.

Changelog:

v2:
  * Drop "ring-buffer: Drop redundant ring_buffer_iter::event_size". (Steven)
  * Rebase on 7.4-rc4.

v1 (https://lore.kernel.org/all/20260922072944.1281427-1-vdonnefort@google.com/)

Vincent Donnefort (3):
  ring-buffer: Use kvzalloc_objs for user mapping arrays
  ring-buffer: Use kvzalloc_objs for remote buffer subbuf_ids
  ring-buffer: Use kvmalloc for ring_buffer_iter::event

 kernel/trace/ring_buffer.c | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)


base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
-- 
2.56.1.839.g22a8290db9-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-27 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 15:13 [PATCH v2 0/3] ring-buffer: Use kvmalloc variants for big allocations Vincent Donnefort
2026-11-27 15:13 ` [PATCH v2 1/3] ring-buffer: Use kvzalloc_objs for user mapping arrays Vincent Donnefort
2026-11-27 15:13 ` [PATCH v2 2/3] ring-buffer: Use kvzalloc_objs for remote buffer subbuf_ids Vincent Donnefort
2026-11-27 15:13 ` [PATCH v2 3/3] ring-buffer: Use kvmalloc for ring_buffer_iter::event Vincent Donnefort

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox