{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4", "published": "2026-10-05T05:27:37Z", "publisher": "PostgresAI", "article": {"title": "Why PostgreSQL Became 50% Slower on Linux 7.0", "url": "https://medium.com/@ankitrajthakur803/why-postgresql-became-50-slower-on-linux-7-0-300da155501c", "date_published": "2026-10-03T13:20:15Z", "author": "Ankit Raj", "publisher": "Medium"}, "grade": "A-", "axes": [{"axis": "Factual", "summary": "B+ \u00b7 1 wrong of 7 checked \u00b7 1 caveat \u00b7 partly assessed"}, {"axis": "Applicable", "summary": "A \u00b7 0 wrong of 4 checked \u00b7 0 caveats"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 7 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "A \u00b7 0 wrong of 2 checked \u00b7 0 caveats \u00b7 reproducibility: A (no answered defects) \u00b7 partly assessed"}, {"axis": "Safe", "summary": "B- \u00b7 0 wrong of 4 checked \u00b7 0 caveats \u00b7 4 unwarned risks \u00b7 partly assessed"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F1", "claim": "\u2026one crashed backend doesn\u2019t take down other connections\u2026", "title": "A backend crash can terminate other connections", "explanation": "A backend crash can terminate other sessions. PostgreSQL 18.6's HandleChildCrash invokes fatal-error handling in src/backend/postmaster/postmaster.c:2784\u20132792. The same path logs termination of other active server processes. Process separation does not guarantee uninterrupted connections after a backend crash.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/postmaster.c#L2784-L2792", "label": "REL_18_6 \u00b7 src/backend/postmaster/postmaster.c:2784-2792"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/postmaster.c#L2784-L2792", "label": "REL_18_6 \u00b7 src/backend/postmaster/postmaster.c:2784-2792"}]}, {"anchor": "F2", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F2", "claim": "A spinlock doesn\u2019t sleep.", "explanation": "The article's definition describes a textbook spinlock. PostgreSQL's spinlock waiters do sleep: src/backend/storage/lmgr/s_lock.c:131-149 at REL_18_6 calls pg_usleep after spins_per_delay failed spins, with exponential backoff. The article names the backoff but not the sleep, so its picture of hundreds of waiters continuously burning CPU is overstated.", "verdict": "Mostly accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/s_lock.c#L131-L138", "label": "REL_18_6 \u00b7 src/backend/storage/lmgr/s_lock.c:131-138"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/s_lock.c#L148-L149", "label": "REL_18_6 \u00b7 src/backend/storage/lmgr/s_lock.c:148-149"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F3", "claim": "For every new client, it creates a brand-new OS process\u2026", "title": "PostgreSQL creates a backend process per connection", "explanation": "PostgreSQL creates a backend process for each direct connection. PostgreSQL 18.6 documents this architecture in doc/src/sgml/arch-dev.sgml:123\u2013125.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/arch-dev.sgml#L123-L125", "label": "REL_18_6 \u00b7 doc/src/sgml/arch-dev.sgml:123-125"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/arch-dev.sgml#L123-L125", "label": "REL_18_6 \u00b7 doc/src/sgml/arch-dev.sgml:123-125"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F4", "claim": "Postgres uses spinlocks for tiny, fast jobs inside shared buffers, like picking a free page.", "title": "Free-buffer selection uses a spinlock", "explanation": "PostgreSQL 18.6 takes buffer_strategy_lock when removing a buffer from the free list. src/backend/storage/buffer/freelist.c:272\u2013285 shows the acquisition and list update.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/freelist.c#L272-L285", "label": "REL_18_6 \u00b7 src/backend/storage/buffer/freelist.c:272-285"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F5", "claim": "\u2026set huge_pages = on in postgresql.conf\u2026", "title": "huge_pages=on enforces huge-page use", "explanation": "huge_pages=on enforces huge-page use. PostgreSQL 18.6 documents this in doc/src/sgml/runtime.sgml:1490\u20131494. The server fails to start when too few huge pages are available.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/runtime.sgml#L1490-L1494", "label": "REL_18_6 \u00b7 doc/src/sgml/runtime.sgml:1490-1494"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L1780-L1787", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:1780-1787"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F6", "claim": "Huge pages are 2 MB instead of 4 KB, which is 512 times bigger.", "title": "The 512-page and 256-block size ratios are correct", "explanation": "A 2 MiB page spans 512 pages of 4 KiB and 256 PostgreSQL blocks of 8 KiB. PostgreSQL 18.6 documents the huge-page example and default block size. Both ratios follow directly (derived: 2,048 / 4 and 2,048 / 8).", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/runtime.sgml#L1441-L1441", "label": "REL_18_6 \u00b7 doc/src/sgml/runtime.sgml:1441-1441"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/configure.ac#L253-L253", "label": "REL_18_6 \u00b7 configure.ac:253-253"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/4238af86-351b-4d90-bb6e-607a071035e4#F7", "claim": "\u2026400 GB of shared buffers and 4 KB pages needs about 100 million page table entries\u2026", "title": "The approximate page counts for 400 GB are consistent", "explanation": "400 GB spans about 98 million 4 KiB pages or 191,000 2 MiB pages. Interpreting 400 GB as 400 GiB gives about 105 million or 205,000 pages. Both interpretations support the article\u2019s rounded estimates of 100 million and 200,000 entries.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/runtime.sgml#L1441-L1441", "label": "REL_18_6 \u00b7 doc/src/sgml/runtime.sgml:1441-1441"}]}]}