aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-10-02 13:58:50 -0400
committerRobert Haas <rhaas@postgresql.org>2014-10-02 13:58:50 -0400
commit3acc10c997f916f6a741d0b4876126b7b08e3892 (patch)
treeaa4a30df253f7c219c52b3d41327301ad21d8285 /src/include
parent952872698d9443fdf9b808a1376017f00c91065a (diff)
downloadpostgresql-3acc10c997f916f6a741d0b4876126b7b08e3892.tar.gz
postgresql-3acc10c997f916f6a741d0b4876126b7b08e3892.zip
Increase the number of buffer mapping partitions to 128.
Testing by Amit Kapila, Andres Freund, and myself, with and without other patches that also aim to improve scalability, seems to indicate that this change is a significant win over the current value and over smaller values such as 64. It's not clear how high we can push this value before it starts to have negative side-effects elsewhere, but going this far looks OK.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/lwlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h
index 90ae7d443d7..02c8f1aa8c6 100644
--- a/src/include/storage/lwlock.h
+++ b/src/include/storage/lwlock.h
@@ -136,7 +136,7 @@ extern PGDLLIMPORT LWLockPadded *MainLWLockArray;
*/
/* Number of partitions of the shared buffer mapping hashtable */
-#define NUM_BUFFER_PARTITIONS 16
+#define NUM_BUFFER_PARTITIONS 128
/* Number of partitions the shared lock tables are divided into */
#define LOG2_NUM_LOCK_PARTITIONS 4