model-writtenrun 1112 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas proposed fixed-size shared hash tables and complete allocation accounting in #1, using an allocator callback to carve each table from one contiguous region after an earlier approach discussed elsewhere had been reverted.
- Tomas Vondra reviewed all eight patches in #2, questioning naming and alignment and finding a stale comment; Heikki's revision #3 adopted hcxt and corrected the comment while explaining that individual elements were never guaranteed cacheline alignment.
- The semaphore accounting change from #3 landed unchanged as 40c41dc773, making its allocation visible through ShmemInitStruct.
- Heikki realized in #4 that the lock manager initially reserved only half its nominal capacity and that removing spare-memory borrowing could substantially reduce available locks, prompting consideration of a higher default limit.
- The HASH_SEGMENT removal from #3 landed unchanged as dde69621c3, while the allocator-signature change landed with naming and comment cleanup as 7b424e3108.
- Heikki introduced a separate four-patch prerequisite series in #5 to remove both 10% safety margins, fix LOCK and PROCLOCK sizes, and raise max_locks_per_transaction to 128; his tests showed capacity falling from 14,927 locks to 8,767 before the higher default raised it to 17,535, with a net shared-memory increase of 2,696 kB.
- The ShmemIndex visibility patch from #3 landed ahead of contiguous allocation as 1bdbb211bb, with rebasing and minor declaration cleanup.
- Matthias van de Meent supported the prerequisite series in #6 but proposed better monitoring and revisiting the doubled PROCLOCK allocation; Heikki defended retaining the ratio and avoiding another tuning parameter in #7, while Matthias continued to question the excess allocation in #9.
- Ashutosh Bapat examined memory residency and sparse-table performance in #8; Heikki reported no concerning benchmark difference and discussed possible deferred element allocation in #10, after which Ashutosh supported keeping the default at 128 in #11.
- Ashutosh and Heikki refined upgrade guidance in #12, #13 and #14, agreeing that users with custom lock limits might need higher settings and that doubling was simple advice, although Heikki left exhaustive verification of that rule as a TODO.
- The two safety-margin removals from #5 landed unchanged as feb03dfecd and 3e854d2ff1.
- The fixed lock-table allocation and default increase from #5 landed unchanged apart from whitespace as e1ad034809 and 79534f9065, with Heikki confirming the prerequisite series was committed in #15.
- The remaining refactoring from #3 then landed: 9ebe1c4f2c merged the size parameters after rebasing over the lock changes, and 999e9ebb51 enforced fixed sizes for all shared hash tables with minor comment cleanup.
- The contiguous allocation patch from #3 landed as 9fe9ecd516, retaining the callback design while extracting common initialization into shmem_hash_create() and storing the ShmemIndex region size.
- The HASH_DIRSIZE removal from #3 landed as 4953a25b7f, additionally preserving DEF_DIRSIZE as the minimum directory size and simplifying the estimate calculation.
- Heikki confirmed all submitted patches were committed after final fixes and cleanup in #16; monitoring improvements, configurable LOCK-to-PROCLOCK sizing and deferred element allocation remained discussion ideas rather than pending submitted patches.