Re: ci: reduce macos test concurrency

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ci: reduce macos test concurrency
Date: 2022-10-02 00:00:08
Message-ID: 20221002000008.2sx4c2don4nvjjhz@awork3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2022-09-26 21:02:08 -0700, Andres Freund wrote:
> The x86 mac VMs from cirrus-ci claim to have 12 CPUs, but when working on
> initdb caching for tests I noticed that using all those CPUs for tests hurts
> the test times noticably.
>
> See [1] (note that the overall time is influenced by different degrees of
> cache hit ratios):
>
> concurrency test time:
> 4 05:58
> 6 05:09
> 8 04:58
> 10 05:58
> 12 (current) 06:58
>
> There's a fair bit of run-to-run variance, but the rough shape of these
> looks repeatable.
>
> I suspect the VMs might be overcommitted a fair bit - or macos just scales
> poorly. Cirrus-ci apparently is switching to M1 based macs, which could be
> related. It'd be good for us do that switch, as it'd give use ARM coverage for
> CI / cfbot. See also [3].
>
>
> In 15 (and thus autoconf) the timings differ a bit less [2]:
>
> concurrency test time:
> 4 06:54
> 6 05:43
> 8 06:09
> 10 06:01
> 12 (current) 06:38
>
> Looks like changing TEST_JOBS=6 or 8 would be a good idea.

Set it to 8 now.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-10-02 00:45:01 Re: CI and test improvements
Previous Message Justin Pryzby 2022-10-01 22:58:27 Re: longfin and tamandua aren't too happy but I'm not sure why