mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@bootlin.com>
To: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dt-bindings: Convert vendor prefixes to json-schema
Date: Tue, 21 May 2019 16:50:47 +0200	[thread overview]
Message-ID: <20190521145047.dyfvrzxviqchmxp2@flea> (raw)
In-Reply-To: <CAL_JsqKAP85+KnQtq-xaOdX-BetB0pA7+LT8vd6w=Yz4VWnQJg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1711 bytes --]

On Mon, May 20, 2019 at 04:23:20PM -0500, Rob Herring wrote:
> On Mon, May 20, 2019 at 11:35 AM Rob Herring <robh@kernel.org> wrote:
> >
> > On Mon, May 20, 2019 at 8:18 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
> > >
> > > Hi Rob,
> > >
> > > On Fri, May 10, 2019 at 02:40:18PM -0500, Rob Herring wrote:
> > > > Convert the vendor prefix registry to a schema. This will enable checking
> > > > that new vendor prefixes are added (in addition to the less than perfect
> > > > checkpatch.pl check) and will also check against adding other prefixes
> > > > which are not vendors.
> > > >
> > > > Converted vendor-prefixes.txt using the following sed script:
> > > >
> > > > sed -e 's/\([a-zA-Z0-9\-]*\)[[:space:]]*\([a-zA-Z0-9].*\)/  "^\1,\.\*\":\n    description: \2/'
> > > >
> > > > Signed-off-by: Rob Herring <robh@kernel.org>
> > > > ---
> > > > As vendor prefix updates come in via multiple trees, I plan to merge
> > > > this before -rc1 to avoid cross tree conflicts.
> > >
> > > I just tried this with the 5.2-rc1 release, and this very
> > > significantly slows down the validation.
> > >
> > > With a dtbs_check run on (arm's) sunxi_defconfig, on my core-i5 with 4
> > > threads, I go from 1.30 minutes to more than 12.
> >
> > Indeed. 6 min to 45 min for allmodconfig. However, it's only 5 min to
> > run checks with only this file. I'd expect a more linear hit. Maybe
> > we're exceeding some cache size and thrashing.
>
> Looks like the problem is a cache. The python regex cache. Changing
> re._MAXCACHE from 512 to 4096 fixes the problem. I can set this in the
> dtschema lib.

Awesome, thanks!
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2019-05-21 14:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-10 19:40 Rob Herring
2019-05-11 18:17 ` Aaro Koskinen
2019-05-13 13:02   ` Rob Herring
2019-05-13 17:52     ` Aaro Koskinen
2019-05-20 13:18 ` Maxime Ripard
2019-05-20 16:35   ` Rob Herring
2019-05-20 21:23     ` Rob Herring
2019-05-21 14:50       ` Maxime Ripard [this message]
2019-05-21 14:50     ` Maxime Ripard

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=20190521145047.dyfvrzxviqchmxp2@flea \
    --to=maxime.ripard@bootlin.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.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

all inboxes | Powered by JetHome®