Add infrastructure for making spins_per_delay variable depending on
Tom Lane <tgl@sss.pgh.pa.us>
Add infrastructure for making spins_per_delay variable depending on whether we seem to be running in a uniprocessor or multiprocessor. The adjustment rules could probably still use further tweaking, but I'm convinced this should be a win overall.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/proc.c | modified | +36 −2 |
| src/backend/storage/lmgr/s_lock.c | modified | +99 −20 |
| src/include/storage/proc.h | modified | +3 −1 |
| src/include/storage/s_lock.h | modified | +7 −1 |