Skip to content

ring-buffer: Use kvmalloc variants for big allocations

Vincent Donnefort linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ring-buffer: Use kvzalloc_objs for user mapping arrayskernel/trace/ring_buffer.c+6 -60 replies
2/4ring-buffer: Use kvzalloc_objs for remote buffer subbuf_idskernel/trace/ring_buffer.c+5 -50 replies
3/4ring-buffer: Drop redundant ring_buffer_iter::event_sizekernel/trace/ring_buffer.c+4 -42 replies
4/4ring-buffer: Use kvmalloc for ring_buffer_iter::eventkernel/trace/ring_buffer.c+5 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ring-buffer: Use kvmalloc variants for big allocations

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.

Vincent Donnefort (4):
ring-buffer: Use kvzalloc_objs for user mapping arrays
ring-buffer: Use kvzalloc_objs for remote buffer subbuf_ids
ring-buffer: Drop redundant ring_buffer_iter::event_size
ring-buffer: Use kvmalloc for ring_buffer_iter::event

 kernel/trace/ring_buffer.c | 35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

base-commit: 93f51579e7df248780214094418f205253383cc5

Signature · 1 line
2.55.0.1082.g2b9226bbc0-goog