BPF List
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Usama Saqib <usama.saqib@datadoghq.com>
Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>,
	Andrii Nakryiko <andrii@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jiri Olsa <jolsa@kernel.org>, bpf <bpf@vger.kernel.org>,
	bigeasy@linutronix.de, torvalds@linux-foundation.org
Subject: Re: BPF and lazy preemption.
Date: Tue, 10 Dec 2024 16:21:56 +0100	[thread overview]
Message-ID: <20241210152156.GX35539@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <CAOzX8iy=hELHmPAeMxQ3on_6dqJmJryGgvAXRxMOijqr+Jj62w@mail.gmail.com>

On Tue, Dec 10, 2024 at 03:48:32PM +0100, Usama Saqib wrote:
> Thanks for your reply. It is correct that the problem I shared is
> already present under PREEMPT_FULL, and as such there is no new issue
> being introduced by PREEMPT_LAZY.
> 
> My main concern is that if PREEMPT_LAZY is intended to become the
> default mode (please correct me if I am wrong here) before this
> problem is addressed in the BPF subsystem, then this would result in a
> big regression for us. This is especially true if distros pick up the
> changes in the intervening period. I wanted to draw attention to this
> issue so this situation does not happen.

Fair enough; I think it'll be a few releases before LAZY is in any shape
to be considered a replacement in any case. Quite a lot of cond_resched
(ab)use needs to be audited, Live-patching needs a bit of TLC and so on.

  reply	other threads:[~2024-12-10 15:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18  9:14 BPF and lazy preemption Usama Saqib
2024-12-10 13:25 ` Usama Saqib
2024-12-10 14:14   ` Peter Zijlstra
2024-12-10 14:48     ` Usama Saqib
2024-12-10 15:21       ` Peter Zijlstra [this message]
2024-12-10 19:33         ` Alexei Starovoitov

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=20241210152156.GX35539@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=alexei.starovoitov@gmail.com \
    --cc=andrii@kernel.org \
    --cc=bigeasy@linutronix.de \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=jolsa@kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=usama.saqib@datadoghq.com \
    /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