From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | John Naylor <john(dot)naylor(at)enterprisedb(dot)com> |
Subject: | Re: [RFC] building postgres with meson |
Date: | 2022-03-09 17:13:14 |
Message-ID: | 20220309171314.2c3gpam6julwxpwl@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On 2021-10-12 02:08:29 -0700, Andres Freund wrote:
> A very helpful visualization is to transform ninja's build logs into a
> tracefile with https://github.com/nico/ninjatracing
>
> I attached an example - the trace.json.gz can be uploaded as-is to
> https://ui.perfetto.dev/
These days perfetto can load .ninja_log directly without conversion. Attached
is an example of the output. Also attached a local .ninja_log to upload if
somebody wants to look at the interactive output without building.
> It's quite a bit of of fun to look at imo.
>
> There's a few other things quickly apparent:
>
> - genbki prevents build progress due to dependencies on the generated
> headers.
That's still the biggest "slowdown". Only a small number of things can start
before genbki is done. Parts of pgport, bison/flex and parts of the docs
build.
> - the absolutely stupid way I implemented the python2->python3
> regression test output conversion uses up a fair bit of resources
That's gone now.
> - tablecmds.c, pg_dump.c, xlog.c and a few other files are starting to
> big enough to be problematic compile-time wise
But these are still present. When building just the backend, the build speed
is limited by gram.y->gram.c, gram.c -> gram.o, linking postgres.
Greetings,
Andres Freund
Attachment | Content-Type | Size |
---|---|---|
build-log.png | image/png | 1002.2 KB |
.ninja_log | text/plain | 150.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2022-03-09 17:19:23 | Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file |
Previous Message | Chapman Flack | 2022-03-09 17:12:07 | Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file |