model-writtenrun 2880 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart proposed an AArch64-specific non-locking check before TAS after Salvatore Dipietro supplied profiles showing excessive atomic-operation time; his contended pgbench test improved from roughly 74,000 to 549,000 TPS, while 32-bit ARM remained outside the patch because it was untested #1.
- Jingtang Zhang requested validation across ARM chips because earlier spinlock results had varied by hardware; Nathan identified his test machine as Neoverse-V2 and found neither a measurable gain nor a regression on an Apple M3 #2 #3 #4.
- When Nathan sought to proceed in January, Andres Freund supported the approach but requested measurements without pg_stat_statements, whose broader locking scalability problems remained outside this change #5 #6.
- Nathan initially measured a 4–6% regression without pg_stat_statements and clarified that TAS_SPIN does not serve LWLocks; Andres explained that lock acquisition already tries TAS before entering the spin loop and suggested investigating binary-layout effects, while Nathan's experimental cap on non-locking checks did not remove the apparent regression #9 #10 #11.
- Tom Lane found no meaningful performance change or harm on an Apple M4 Pro, and Nathan's repeated tests with warmed caches and alternating binaries reduced the apparent regression to about 0.4%, which he considered noise #12 #14.
- Nathan committed the original patch with only whitespace and comment-placement changes as 3d0b4b1068, then announced completion #1 #15.
- After the commit, Jingtang reported that the patch increased throughput from about 295,000 to 865,000 TPS on a 64-core Yitian 710 instance, while an eight-core instance showed no effect outside noise #16.
- In September 2026, Salvatore requested backports of 3d0b4b1068 to PostgreSQL 15–17, reporting severe spinlock-related performance losses with PREEMPT_LAZY kernels and gains of 88–128% after separately accounting for a kernel paging defect #18.
- Nathan supported backporting through PostgreSQL 15 and proposed omitting PostgreSQL 14 because it lacked the same surrounding ISB code and was nearing end of support; Greg Burd also supported that cutoff and emphasized the cost of running large shared buffers without huge pages #19 #20.
- Salvatore explained that huge_pages=try can fall back to ordinary pages without an explicitly provisioned huge-page pool, and supplied further results showing smaller but still useful gains with huge pages on PostgreSQL 17, while PostgreSQL 15 and 16 remained limited elsewhere #21.
- The thread ended with Nathan confirming that 3d0b4b1068 had been backpatched through PostgreSQL 15, completing the requested backports with no outstanding patch revision #22.