Public issue detail

Runaway CPU investigation for postgres: socket churn at next_uptodate_folio

postgres is stuck in a likely socket churn loop: 1.46% of sampled CPU passed through next_uptodate_folio, with repeated thread backtraces show 1 thread(s) around 0x00007f82fc478687 in __GI__IO_flush_all () from target:<path>.

highpackage: postgresql-18source: linuxscore: 106reports: 1

Last seen: 2026-10-16 07:15 UTC. Public JSON: /v1/issues/019f777c-b6c6-73c1-9b2a-9e06e91c6ca9

Technical snapshot

This is the clearest retained userspace thread cluster Fixer captured while the process was spinning.

Representative thread backtrace

  • Command: /usr/lib/postgresql/16/bin/postgres -D /tmp/postgis-pg16.vgtOXv/data -F -h -p 32633 -k /tmp/postgis-pg16.vgtOXv/socket -c fsync=off -c full_page_writes=off -c synchronous_commit=off
  • Why Fixer classified it this way: The trace is dominated by socket syscalls, which suggests the process is rapidly retrying or churning through network or IPC work.
  • Thread summary: thread backtraces show 1 thread(s) around 0x00007f82fc478687 in __GI__IO_flush_all () from target:<path>
  • Contention signals: event-loop-wakeups, gdb-stderr: gdb: warning: Couldn't determine a path for the index cache directory. warning: Target and debugger are in different PID namespaces; thread lists and other data are likely unreliable. Connect to gdbserver inside the container. warning: Expected absolute pathname for libpthread in the inferior, but got target:<path> warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
  • Repeated loop: read -> read -> read
  • Top syscalls: read x4959, mmap x4213, recvfrom x2762, openat x1989
  • Kernel: 7.1.8+deb14.1-amd64
  • Distribution: debian
0x00007f82fc478687 in __GI__IO_flush_all () from target:<path>
0x00007f82fc4786ad in __GI__IO_flush_all () from target:<path>
0x00007f82fc4f9a6d in epoll_wait () from target:<path>
0x000055c023f38f5b in WaitEventSetWait ()
0x000055c023ed1745 in ?? ()
0x000055c023ed447c in PostmasterMain ()
0x000055c023bf94ec in main ()

Possible duplicates

These are suggestions based on sanitized trigram similarity plus structured fields like package, subsystem, classification, and wait site. They are not auto-merged.

postgres is stuck in a likely socket churn loop: 3.49% of sampled CPU passed through _dl_map_new_object, with repeated thread backtraces show 1 thread(s) around 0x00007f912645c687 in __GI__IO_flush_all () from target:<path>.

highpackage: postgresql-18source: postgresql-18score: 106reports: 1similarity: 99%

Why this looks related: same classification, same package, same subsystem, same target, same wait site

Last seen: 2026-10-17 07:40 UTC. Public page: /issues/019f9db1-7511-7382-938c-68a2e3e906c8. Public JSON: /v1/issues/019f9db1-7511-7382-938c-68a2e3e906c8

postgres is stuck in a likely socket churn loop: 1.90% of sampled CPU passed through unresolved offset, with repeated thread backtraces show 1 thread(s) around 0x00007f1303299687 in __GI__IO_flush_all () from target:<path>.

highscore: 106reports: 1similarity: 97%

Why this looks related: same classification, same subsystem, same target, same wait site

Last seen: 2026-10-19 03:26 UTC. Public page: /issues/019f7962-c828-7c50-8189-f439a8864601. Public JSON: /v1/issues/019f7962-c828-7c50-8189-f439a8864601

postgres is stuck in a likely file not found retry loop: 4.33% of sampled CPU passed through next_uptodate_folio, with repeated thread backtraces show 1 thread(s) around 0x00007f6114aba687 in __GI__IO_flush_all () from target:<path>.

highpackage: postgresql-14source: linuxscore: 106reports: 3successful triagesimilarity: 93%

Why this looks related: same source package, same subsystem, same target, same wait site

Last seen: 2026-10-12 08:43 UTC. Public page: /issues/019d3a17-b958-7a60-86fd-5304e697f42c. Public JSON: /v1/issues/019d3a17-b958-7a60-86fd-5304e697f42c

postgres is stuck in a likely futex lock contention loop: 1.15% of sampled CPU passed through next_uptodate_folio, with repeated thread backtraces show 1 thread(s) around 0x00007fa0aa49bca2 in __futex_abstimed_wait_common (futex_word=..., expected=..., clockid=..., abstime=..., private=..., cancel=...) at .<path>:103.

highpackage: postgresql-18source: postgresql-18score: 106reports: 1similarity: 90%

Why this looks related: same package, same subsystem, same target, same wait site

Last seen: 2026-10-16 06:55 UTC. Public page: /issues/01a0f865-24de-7563-be71-c35751e1391f. Public JSON: /v1/issues/01a0f865-24de-7563-be71-c35751e1391f

postgres is stuck in a likely socket churn loop: 3.62% of sampled CPU passed through hash_search_with_hash_value, with repeated thread backtraces show 1 thread(s) around 0x00007f1f311da687 in __GI__IO_flush_all () from target:<path>.

highpackage: postgresql-14source: postgresql-14score: 106reports: 1similarity: 90%

Why this looks related: same classification, same subsystem, same target, same wait site

Last seen: 2026-10-21 04:00 UTC. Public page: /issues/019d8b2f-863a-7af0-92eb-7ce77dd04988. Public JSON: /v1/issues/019d8b2f-863a-7af0-92eb-7ce77dd04988

postgres is stuck in a likely timer churn loop: 100.00% of sampled CPU passed through start_dl_timer, with repeated thread backtraces show 1 thread(s) around 0x00007f322d29a7d2 in ?? () from target:<path>.

highpackage: postgresql-18source: postgresql-18score: 106reports: 2similarity: 85%

Why this looks related: same package, same subsystem, same target, same wait site

Last seen: 2026-10-22 20:40 UTC. Public page: /issues/019e5d7e-79c8-70a3-bcbd-6d4643b9285a. Public JSON: /v1/issues/019e5d7e-79c8-70a3-bcbd-6d4643b9285a

Published attempts

No public attempts have been published for this issue yet.