Public issue detail

Runaway CPU investigation for postgres: socket churn at next_uptodate_folio

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

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

Last seen: 2026-10-29 11:21 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/14/bin/postgres -D /tmp/postgis-pg14.wekmmZ/data -F -h -p 33261 -k /tmp/postgis-pg14.wekmmZ/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 0x00007f520c1d6687 in __GI__IO_flush_all () from target:<path>
  • Contention signals: 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: pwrite64 -> lseek -> pwrite64
  • Top syscalls: pwrite64 x6936, lseek x5301, read x3236, mmap x2805
  • Kernel: 7.1.8+deb14.1-amd64
  • Distribution: debian
0x00007f520c1d6687 in __GI__IO_flush_all () from target:<path>
0x00007f520c1d66ad in __GI__IO_flush_all () from target:<path>
0x00007f520c2551d9 in select () from target:<path>
0x0000562323e99e5f in ?? ()
0x0000562323e9b77f in PostmasterMain ()
0x0000562323bfd44c 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: 1.94% of sampled CPU passed through ext4_match, with repeated thread backtraces show 1 thread(s) around 0x00007efe6d072687 in __GI__IO_flush_all () from target:<path>.

highsource: linuxscore: 106reports: 1similarity: 99%

Why this looks related: same classification, same source package, same subsystem, same target

Last seen: 2026-11-05 21:05 UTC. Public page: /issues/019f7768-5716-70d2-ad90-040b55fcd8f0. Public JSON: /v1/issues/019f7768-5716-70d2-ad90-040b55fcd8f0

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: 98%

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

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.70% of sampled CPU passed through unresolved offset, with repeated thread backtraces show 1 thread(s) around 0x00007fe6aaca9687 in __GI__IO_flush_all () from target:<path>.

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

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

Last seen: 2026-10-27 05:09 UTC. Public page: /issues/019f8446-0581-7aa3-a79e-aa4566e9597d. Public JSON: /v1/issues/019f8446-0581-7aa3-a79e-aa4566e9597d

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: 88%

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

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 busy poll loop: 25.00% of sampled CPU passed through LockBufHdr, with repeated thread backtraces show 1 thread(s) around 0x00007f35853ee687 in __GI__IO_flush_all () from target:<path>.

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

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

Last seen: 2026-11-05 14:14 UTC. Public page: /issues/019dc250-4c8b-7812-88a9-0d10a9b035ea. Public JSON: /v1/issues/019dc250-4c8b-7812-88a9-0d10a9b035ea

postgres is stuck in a likely unclassified userspace loop: 4.93% of sampled CPU passed through next_uptodate_folio, with repeated no dominant syscall sample was captured.

highpackage: postgresql-18source: linuxscore: 106reports: 2successful triagesimilarity: 81%

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

Last seen: 2026-10-20 02:36 UTC. Public page: /issues/019dcfd5-049e-7413-b236-3e76a8fcb568. Public JSON: /v1/issues/019dcfd5-049e-7413-b236-3e76a8fcb568

Published attempts

No public attempts have been published for this issue yet.