netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Christian Brauner <brauner@kernel.org>,
	Linus Torvalds <torvalds@linuxfoundation.org>,
	 Andrii Nakryiko <andrii@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	 "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	 Paolo Abeni <pabeni@redhat.com>,
	Daniel Borkmann <daniel@iogearbox.net>,
	 Peter Zijlstra <peterz@infradead.org>,
	Network Development <netdev@vger.kernel.org>,
	bpf <bpf@vger.kernel.org>,  Kernel Team <kernel-team@fb.com>,
	Linux-Fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: pull-request: bpf-next 2023-12-18
Date: Tue, 19 Dec 2023 08:51:54 -0800	[thread overview]
Message-ID: <CAADnVQ+CapO+5pAAe11CeAzFgjf6rizBDAtcXGh-n4sbUg4-cA@mail.gmail.com> (raw)
In-Reply-To: <ZYG/gR6Kl9+11Myl@casper.infradead.org>

On Tue, Dec 19, 2023 at 8:06 AM Matthew Wilcox <willy@infradead.org> wrote:
>
> On Tue, Dec 19, 2023 at 11:23:50AM +0100, Christian Brauner wrote:
> > Alexei, Andrii, this is a massive breach of trust and flatout
> > disrespectful. I barely reword mails and believe me I've reworded this
> > mail many times. I'm furious.
> >
> > Over the last couple of months since LSFMM in May 2023 until almost last
> > week I've given you extensive design and review for this whole approach
> > to get this into even remotely sane shape from a VFS perspective.
>
> This isn't new behaviour from the BPF people.  They always go their own
> way on everything.  They refuse to collaborate with anyone in MM to make
> the memory allocators work with their constraints; instead they implement
> their own.  It feels like they're on a Mission From God to implement the
> BPF Operating System and dealing with everyone else is an inconvenience.
>
> https://lore.kernel.org/bpf/20220623003230.37497-1-alexei.starovoitov@gmail.com/

Matthew,
I thought I answered in that thread that it is not a memory allocator.
It's small free list of cached elements that bpf prog peeks from
when prog runs in unknown context == tracing deep inside the kernel.
Do you want to design a memory allocator that is fully re-entrant ?
Meaning that kmalloc(GFP_REENTRANT) can be called from any context
deep inside slab, inside arch code, inside _any_ and all code of the kernel?
If the answer is yes, please go ahead.
We'll happily switch to your thing.
We used to preallocate all memory for such tracing use cases
which was wasteful. This thingy is preallocating a few elements instead
of preallocating them all. That's all there is.

  reply	other threads:[~2023-12-19 16:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-19  0:05 pull-request: bpf-next 2023-12-18 Alexei Starovoitov
2023-12-19  0:19 ` Alexei Starovoitov
2023-12-19  0:55 ` Jakub Kicinski
2023-12-19  1:17   ` Linus Torvalds
2023-12-19  1:10 ` patchwork-bot+netdevbpf
2023-12-19  1:11 ` Linus Torvalds
2023-12-19  1:48   ` Alexei Starovoitov
2023-12-19  3:57     ` Linus Torvalds
2023-12-19  4:34       ` Andrii Nakryiko
2023-12-19  5:38         ` Andrii Nakryiko
2023-12-19 10:23   ` Christian Brauner
2023-12-19 16:06     ` Matthew Wilcox
2023-12-19 16:51       ` Alexei Starovoitov [this message]
2023-12-19 16:36     ` Daniel Borkmann
2023-12-19 16:42     ` Alexei Starovoitov
2023-12-19 18:31       ` Andrii Nakryiko
2023-12-20 11:18       ` Christian Brauner
2023-12-20 19:17         ` Andrii Nakryiko
2023-12-21 13:05           ` Christian Brauner

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=CAADnVQ+CapO+5pAAe11CeAzFgjf6rizBDAtcXGh-n4sbUg4-cA@mail.gmail.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=andrii@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=brauner@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kernel-team@fb.com \
    --cc=kuba@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=peterz@infradead.org \
    --cc=torvalds@linuxfoundation.org \
    --cc=willy@infradead.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;
as well as URLs for NNTP newsgroup(s).