Public issue detail

Runaway CPU investigation for postgres: futex lock contention at lru_gen_add_folio

postgres is stuck in a likely futex lock contention loop: 6.05% of sampled CPU passed through lru_gen_add_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: 1

Last seen: 2026-11-24 03:23 UTC. Public JSON: /v1/issues/01a20b83-fe32-7d02-b185-4561507405d7

Technical snapshot

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

Representative thread backtrace

  • Command: /usr/lib/postgresql/18/bin/postgres -D /var/lib/postgresql/18/main -c config_file=/etc/postgresql/18/main/postgresql.conf
  • Why Fixer classified it this way: Multiple captured threads converge on futex or pthread mutex paths, which suggests user-space lock contention or a lock convoy.
  • Thread summary: thread backtraces show 1 thread(s) around 0x00007fa0aa49bca2 in __futex_abstimed_wait_common (futex_word=..., expected=..., clockid=..., abstime=..., private=..., cancel=...) at .<path>:103
  • Contention signals: futex-lock-contention, gdb-stderr: gdb: warning: Couldn't determine a path for the index cache directory. warning: .dynamic section for "target:<path>" is not at the expected address (wrong library or version mismatch?) warning: .dynamic section for "target:<path>" is not at the expected address (wrong library or version mismatch?) warning: .dynamic section for "target:<path>" is not at the expected address (wrong library or version mismatch?) warning: .dynamic section for "target:<path>" is not at the expected address (wrong library or version mismatch?) 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. warning: 103 .<path>: No such file or directory
  • Repeated loop: read -> read -> read
  • Top syscalls: read x54, close x12, rt_sigaction x11, openat x9
  • Package: postgresql-18 18.6-3
  • Kernel: 7.1.8+deb14.1-amd64
  • Distribution: debian
0x00007fa0aa49bca2 in __futex_abstimed_wait_common (futex_word=..., expected=..., clockid=..., abstime=..., private=..., cancel=...) at .<path>:103
0x0000000000000000 in ?? ()

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 futex lock contention loop: 1.06% 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: 99%

Why this looks related: same classification, same package, same source package, same subsystem, same target, same wait site, very similar public summary

Last seen: 2026-11-25 02:29 UTC. Public page: /issues/01a0f865-24de-7563-be71-c35751e1391f. Public JSON: /v1/issues/01a0f865-24de-7563-be71-c35751e1391f

postgres is stuck in a likely futex lock contention loop: 1.76% of sampled CPU passed through unresolved offset, 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: 99%

Why this looks related: same classification, same package, same source package, same subsystem, same target, same wait site, very similar public summary

Last seen: 2026-11-14 02:35 UTC. Public page: /issues/01a1d70b-e5e9-7ba2-9048-14311a9f81c1. Public JSON: /v1/issues/01a1d70b-e5e9-7ba2-9048-14311a9f81c1

postgres is stuck in a likely futex lock contention loop: 2.63% of sampled CPU passed through _dl_map_new_object, 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: 99%

Why this looks related: same classification, same package, same source package, same subsystem, same target, same wait site, very similar public summary

Last seen: 2026-11-10 09:29 UTC. Public page: /issues/01a0faf7-676a-70a3-9cf2-63d0f9d56063. Public JSON: /v1/issues/01a0faf7-676a-70a3-9cf2-63d0f9d56063

postgres is stuck in a likely futex lock contention loop: 2.12% of sampled CPU passed through __strncat_avx2_rtm, 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: 99%

Why this looks related: same classification, same package, same source package, same subsystem, same target, same wait site, very similar public summary

Last seen: 2026-11-06 22:08 UTC. Public page: /issues/01a1ad87-bb82-76b1-8c9e-a2d6762d8b02. Public JSON: /v1/issues/01a1ad87-bb82-76b1-8c9e-a2d6762d8b02

postgres is stuck in a likely futex lock contention loop: 11.11% of sampled CPU passed through __schedule, 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: 99%

Why this looks related: same classification, same package, same source package, same subsystem, same target, same wait site, very similar public summary

Last seen: 2026-10-30 04:44 UTC. Public page: /issues/01a0f200-6749-7d62-8739-62db6d88b0b8. Public JSON: /v1/issues/01a0f200-6749-7d62-8739-62db6d88b0b8

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

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

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

Last seen: 2026-10-31 10:54 UTC. Public page: /issues/019e50c1-4b02-72f3-8479-d67944473579. Public JSON: /v1/issues/019e50c1-4b02-72f3-8479-d67944473579

Published attempts

No public attempts have been published for this issue yet.