Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #80634

Re: CONFIG_PREEMPT_DYNAMIC=y?

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Emanuele Rocca <ema@debian.org>
Newsgroups linux.debian.kernel
Subject Re: CONFIG_PREEMPT_DYNAMIC=y?
Date Tue, 10 Oct 2023 12:10:01 +0200
Message-ID <HnhQB-eQol-7@gated-at.bofh.it> (permalink)
References <HmEPf-eqdx-7@gated-at.bofh.it> <HmFLj-eqM9-7@gated-at.bofh.it>
X-Original-To debian-kernel@lists.debian.org
X-Mailbox-Line From debian-kernel-request@lists.debian.org Tue Oct 10 10:07:46 2023
Old-Return-Path <emarocca@gmail.com>
X-Amavis-Spam-Status No, score=-6.499 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOJu0Yy/VMFG3nenn7r007IJIYh0VguS2dvPsPr0WmcD956Aj+FPPwyQ KztUynTvrmX8sZeFeu7w5OeIaECOWSMKpQ==
X-Google-SMTP-Source AGHT+IGFLAR3TRB95KvlivxlTS1xoiQbV3BXprB4uq6TwklapeYfZkrxiGlhBEvtTTtB4IJ4FQhEqQ==
X-Received by 2002:a05:6402:35c2:b0:530:2bd:71b2 with SMTP id z2-20020a05640235c200b0053002bd71b2mr14556795edc.0.1696932444268; Tue, 10 Oct 2023 03:07:24 -0700 (PDT)
Sender robomod@news.nic.it
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Mailing-List <debian-kernel@lists.debian.org> archive/latest/140323
List-ID <debian-kernel.lists.debian.org>
List-URL <https://lists.debian.org/debian-kernel/>
List-Archive https://lists.debian.org/msgid-search/ZSUi_6M1vmdRFTAm@ariel
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc Johannes Schauer Marin Rodrigues <josch@debian.org>
X-Original-Date Tue, 10 Oct 2023 12:10:07 +0200
X-Original-Message-ID <ZSUi_6M1vmdRFTAm@ariel>
X-Original-References <169678202078.3029203.13684704010302829243@localhost> <3679117.hVnToU1rA3@bagend>
X-Original-Sender Emanuele Rocca <emarocca@gmail.com>
Xref csiph.com linux.debian.kernel:80634

Show key headers only | View raw


Hi,

On 2023-10-08 07:17, Diederik de Haas wrote:
> $ grep PREEMPT_DYNAMIC /boot/config-6.5.0-1-amd64 
> CONFIG_PREEMPT_DYNAMIC=y
> CONFIG_HAVE_PREEMPT_DYNAMIC=y
> CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y

[...]

> $ grep PREEMPT_DYNAMIC /boot/config-6.1.0-13-arm64 
> # CONFIG_PREEMPT_DYNAMIC is not set
> CONFIG_HAVE_PREEMPT_DYNAMIC=y
> CONFIG_HAVE_PREEMPT_DYNAMIC_KEY=y

CONFIG_PREEMPT_DYNAMIC is set to 'y' by default on amd64 due to
HAVE_PREEMPT_DYNAMIC_CALL being 'y', see:
https://sources.debian.org/src/linux/6.5.6-1/kernel/Kconfig.preempt/?hl=101#L101

arm64 does not have PREEMPT_DYNAMIC_CALL, this is why PREEMPT_DYNAMIC is
not set by default there. However, there's another feature which is
functionally equivalent, PREEMPT_DYNAMIC_KEY. While _CALL and _KEY are
equivalent, in theory _KEY may have more overhead. See:
https://lore.kernel.org/lkml/20220214165216.2231574-1-mark.rutland@arm.com/#t

SUSE and Fedora both seem to have CONFIG_HAVE_PREEMPT_DYNAMIC=y on
arm64, see:
https://github.com/SUSE/kernel-source/blob/SLE15-SP6/config/arm64/default#L123
https://src.fedoraproject.org/rpms/kernel/blob/f34/f/kernel.spec#_4458

Setting CONFIG_HAVE_PREEMPT_DYNAMIC=y on arm64 is likely safe for us
too, but we may want to run some benchmark first to see if there are any
noticeable slowdowns.

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

CONFIG_PREEMPT_DYNAMIC=y? Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-10-08 18:30 +0200
  Re: CONFIG_PREEMPT_DYNAMIC=y? Diederik de Haas <didi.debian@cknow.org> - 2023-10-08 19:30 +0200
    Re: CONFIG_PREEMPT_DYNAMIC=y? Emanuele Rocca <ema@debian.org> - 2023-10-10 12:10 +0200
      Re: CONFIG_PREEMPT_DYNAMIC=y? Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-10-10 12:20 +0200
        Re: CONFIG_PREEMPT_DYNAMIC=y? Emanuele Rocca <ema@debian.org> - 2023-10-10 12:40 +0200
          Re: CONFIG_PREEMPT_DYNAMIC=y? Marc Haber <mh+debian-kernel@zugschlus.de> - 2023-10-10 15:50 +0200
      Re: CONFIG_PREEMPT_DYNAMIC=y? Diederik de Haas <didi.debian@cknow.org> - 2023-10-10 14:00 +0200
        Re: CONFIG_PREEMPT_DYNAMIC=y? Vincent Blut <vincent.debian@free.fr> - 2023-10-10 14:20 +0200
          Re: CONFIG_PREEMPT_DYNAMIC=y? Diederik de Haas <didi.debian@cknow.org> - 2023-10-10 15:20 +0200
        Re: CONFIG_PREEMPT_DYNAMIC=y? Emanuele Rocca <ema@debian.org> - 2023-10-10 15:00 +0200
          Re: CONFIG_PREEMPT_DYNAMIC=y? Diederik de Haas <didi.debian@cknow.org> - 2023-10-10 23:30 +0200
            Re: CONFIG_PREEMPT_DYNAMIC=y? Diederik de Haas <didi.debian@cknow.org> - 2023-10-17 20:00 +0200
  Re: CONFIG_PREEMPT_DYNAMIC=y? Emanuele Rocca <ema@debian.org> - 2023-10-20 20:40 +0200

csiph-web