pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Recent "could not register background process" buildfarm failures
4+ messages / 4 participants
[nested] [flat]

* Recent "could not register background process" buildfarm failures
@ 2026-08-18 15:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2026-08-18 15:39 UTC (permalink / raw)
  To: pgsql-hackers@lists.postgresql.org

In the past three weeks, two different buildfarm animals have
reported failures like this in test_shm_mq [1][2][3]:

#  SELECT test_shm_mq(1024, 'a', 2001, 1);
# - test_shm_mq 
# --------------
# - 
# -(1 row)
# -
# +ERROR:  could not register background process
# +HINT:  You may need to increase "max_worker_processes".

test_shm_mq itself hasn't changed meaningfully in ages,
so it seems like some recent change somewhere else has increased
the probability of not being able to get a worker process.
Maybe autovacuum is eating too many workers?  Any thoughts?

			regards, tom lane

[1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tayra&dt=2026-07-25%2005%3A43%3A54
[2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=akepa&dt=2026-08-17%2021%3A37%3A41
[3] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=akepa&dt=2026-08-18%2013%3A52%3A05






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Recent "could not register background process" buildfarm failures
@ 2026-08-18 17:44  Álvaro Herrera <alvherre@kurilemu.de>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Álvaro Herrera @ 2026-08-18 17:44 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@lists.postgresql.org

On 2026-Aug-18, Tom Lane wrote:

> # +ERROR:  could not register background process
> # +HINT:  You may need to increase "max_worker_processes".
> 
> test_shm_mq itself hasn't changed meaningfully in ages,
> so it seems like some recent change somewhere else has increased
> the probability of not being able to get a worker process.
> Maybe autovacuum is eating too many workers?  Any thoughts?

Hm, autovacuum does not use workers from the bgworker pool AFAIK.
Repack concurrently does.  However, I don't think we use repack
concurrently anywhere in the standard tests; we only run it in the
test_decoding and injection_point tests, which have separate instances.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"La persona que no quería pecar / estaba obligada a sentarse
 en duras y empinadas sillas    / desprovistas, por cierto
 de blandos atenuantes"                          (Patricio Vogel)






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Recent "could not register background process" buildfarm failures
@ 2026-08-18 20:47  Daniel Gustafsson <daniel@yesql.se>
  parent: Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Daniel Gustafsson @ 2026-08-18 20:47 UTC (permalink / raw)
  To: Álvaro Herrera <alvherre@kurilemu.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@lists.postgresql.org

> On 18 Aug 2026, at 19:44, Álvaro Herrera <alvherre@kurilemu.de> wrote:
> 
> On 2026-Aug-18, Tom Lane wrote:
> 
>> # +ERROR:  could not register background process
>> # +HINT:  You may need to increase "max_worker_processes".
>> 
>> test_shm_mq itself hasn't changed meaningfully in ages,
>> so it seems like some recent change somewhere else has increased
>> the probability of not being able to get a worker process.
>> Maybe autovacuum is eating too many workers?  Any thoughts?
> 
> Hm, autovacuum does not use workers from the bgworker pool AFAIK.
> Repack concurrently does.  However, I don't think we use repack
> concurrently anywhere in the standard tests; we only run it in the
> test_decoding and injection_point tests, which have separate instances.

Online checksums also use bgworkers but it too should not be running here, and
looking at it I didn't see evidence of it interfering.  I'll have another look
in the morning with fresh eyes.

--
Daniel Gustafsson







^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Recent "could not register background process" buildfarm failures
@ 2026-08-25 14:25  Nathan Bossart <nathandbossart@gmail.com>
  parent: Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 0 replies; 4+ messages in thread

From: Nathan Bossart @ 2026-08-25 14:25 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Álvaro Herrera <alvherre@kurilemu.de>; Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@lists.postgresql.org

On Tue, Aug 18, 2026 at 10:47:44PM +0200, Daniel Gustafsson wrote:
>> On 18 Aug 2026, at 19:44, Álvaro Herrera <alvherre@kurilemu.de> wrote:
>> 
>> On 2026-Aug-18, Tom Lane wrote:
>> 
>>> # +ERROR:  could not register background process
>>> # +HINT:  You may need to increase "max_worker_processes".
>>> 
>>> test_shm_mq itself hasn't changed meaningfully in ages,
>>> so it seems like some recent change somewhere else has increased
>>> the probability of not being able to get a worker process.
>>> Maybe autovacuum is eating too many workers?  Any thoughts?
>> 
>> Hm, autovacuum does not use workers from the bgworker pool AFAIK.
>> Repack concurrently does.  However, I don't think we use repack
>> concurrently anywhere in the standard tests; we only run it in the
>> test_decoding and injection_point tests, which have separate instances.
> 
> Online checksums also use bgworkers but it too should not be running here, and
> looking at it I didn't see evidence of it interfering.  I'll have another look
> in the morning with fresh eyes.

I spent some time looking into this last night.  AFAICT this is more likely
a buildfarm machine configuration problem than a code problem.  For tayra,
the failures correlated exactly with a bump in meson_jobs to 72.  It has
been good since it was lowered to 8.  I did recently upgrade akepa's
buildfarm client and teach it to test more branches, but the failures
didn't occur until around a week later, so the correlation is weaker there.
I can't find any clues that point me towards a code problem, either.  In
any case, it's the only machine with this problem at this point, so I
lowered its meson_jobs setting and will keep an eye on it.

-- 
nathan






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2026-08-25 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 15:39 Recent "could not register background process" buildfarm failures Tom Lane <tgl@sss.pgh.pa.us>
2026-08-18 17:44 ` Álvaro Herrera <alvherre@kurilemu.de>
2026-08-18 20:47   ` Daniel Gustafsson <daniel@yesql.se>
2026-08-25 14:25     ` Nathan Bossart <nathandbossart@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox