Split use of SerialSLRULock, creating SerialControlLock
Alvaro Herrera <alvherre@alvh.no-ip.org>
Split use of SerialSLRULock, creating SerialControlLock predicate.c has been using SerialSLRULock (the control lock for its SLRU structure) to coordinate access to SerialControlData, another of its numerous shared memory structures; this is unnecessary and confuses further SLRU scalability work. Create a separate LWLock to cover SerialControlData. Extracted from a larger patch from the same author, and some additional changes by Álvaro. Author: Dilip Kumar <dilip.kumar@enterprisedb.com> Discussion: https://postgr.es/m/CAFiTN-vzDvNz=ExGXz6gdyjtzGixKSqs0mKHMmaQ8sOSEFZ33A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lwlocknames.txt | modified | +1 −0 |
| src/backend/storage/lmgr/predicate.c | modified | +30 −11 |
| src/backend/utils/activity/wait_event_names.txt | modified | +1 −0 |
Discussion
- SLRU optimization - configurable buffer pool and partitioning the SLRU lock 131 messages · 2023-10-11 → 2024-04-03