From: Vincent Donnefort <vdonnefort@google.com>
To: rostedt@goodmis.org, mhiramat@kernel.org,
linux-trace-kernel@vger.kernel.org
Cc: mathieu.desnoyers@efficios.com, kernel-team@android.com,
linux-kernel@vger.kernel.org,
Vincent Donnefort <vdonnefort@google.com>
Subject: [PATCH v2 0/3] ring-buffer: Use kvmalloc variants for big allocations
Date: Fri, 27 Nov 2026 15:13:22 +0000 [thread overview]
Message-ID: <20261127151326.515232-1-vdonnefort@google.com> (raw)
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
next reply other threads:[~2026-11-27 15:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 15:13 Vincent Donnefort [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127151326.515232-1-vdonnefort@google.com \
--to=vdonnefort@google.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox