All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zev Weiss <zweiss@equinix.com>
To: William Kennington <wak@google.com>
Cc: OpenBMC List <openbmc@lists.ozlabs.org>, Joel Stanley <joel@jms.id.au>
Subject: Re: OpenBMC kernel and CONFIG_PREEMPT
Date: Fri, 7 Apr 2023 22:07:03 +0000	[thread overview]
Message-ID: <20230407220702.GE18848@packtop> (raw)
In-Reply-To: <CAPnigK=e0b7pFX5jYujSay-D9N-tsr0ttRhCuxBv67Z77r7kaw@mail.gmail.com>

On Fri, Apr 07, 2023 at 01:12:21PM PDT, William Kennington wrote:
>I just looked again, AFAICT it was never enabled on aspeed or npcm7xx, just
>the new 8xx part. Hopefully someone else with aspeed chips will confirm
>from their actual `.config`
>

Yeah, I'm pretty sure that's correct -- my aspeed builds already show:

    $ zcat /proc/config.gz | grep PREEMPT
    CONFIG_PREEMPT_NONE_BUILD=y
    CONFIG_PREEMPT_NONE=y
    # CONFIG_PREEMPT_VOLUNTARY is not set
    # CONFIG_PREEMPT is not set

Incidentally, out of curiosity I tried booting kernels built with
CONFIG_PREEMPT=y and didn't see any major changes in boot performance on
either ast2500 or ast2400.


Zev


>On Fri, Apr 7, 2023 at 1:05 PM William Kennington <wak@google.com> wrote:
>
>> It's interesting because I think it has a bigger impact on the 8xx chip
>> than the 7xx chip. AFAIK I was indirectly comparing this and it seems like
>> it didn't make a huge difference for us on our older BMCs. We have it
>> disabled on our 5.15 configs, but used it in 5.10. I don't think we noticed
>> a meaningful difference when porting forward. Probably you need a certain
>> amount of startup services trying to steal time from each other.
>>
>> On Fri, Apr 7, 2023 at 12:10 PM Patrick Williams <patrick@stwcx.xyz>
>> wrote:
>>
>>> Joel,
>>>
>>> Would you mind looking at this commit[1]?  Nuvoton seems to have a lot
>>> of data that suggests that disabling CONFIG_PREEMPT leads to
>>> significantly better performance.  The boot time is almost 50% faster.
>>>
>>> I'm surprised that:
>>>
>>>     1. CONFIG_PREEMPT really results in that worse of performance.
>>>     2. The Nuvoton chip is special from any other ARM variant in this
>>>        regard.
>>>
>>> Should we disable this across the board on all our platforms?
>>>
>>> 1.
>>> https://github.com/openbmc/openbmc/commit/52ec37dd0b8776ce7f43e65e0be578c3606340b7
>>> --
>>> Patrick Williams
>>>
>>

  reply	other threads:[~2023-04-07 22:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-07 19:09 OpenBMC kernel and CONFIG_PREEMPT Patrick Williams
2023-04-07 20:05 ` William Kennington
2023-04-07 20:12   ` William Kennington
2023-04-07 22:07     ` Zev Weiss [this message]
2023-04-12  8:38       ` Joel Stanley

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=20230407220702.GE18848@packtop \
    --to=zweiss@equinix.com \
    --cc=joel@jms.id.au \
    --cc=openbmc@lists.ozlabs.org \
    --cc=wak@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.