Commit 78ef2d3f authored by Tom Lane's avatar Tom Lane

Update documentation about shared memory sizing to reflect current

reality.
parent 037709e0
This diff is collapsed.
...@@ -49,11 +49,10 @@ ...@@ -49,11 +49,10 @@
#listen_addresses = 'localhost' # what IP interface(s) to listen on; #listen_addresses = 'localhost' # what IP interface(s) to listen on;
# defaults to localhost, '*' = any # defaults to localhost, '*' = any
#port = 5432 #port = 5432
#max_connections = 100 # note: increasing max_connections costs #max_connections = 100
# about 500 bytes of shared memory per # note: increasing max_connections costs ~400 bytes of shared memory per
# connection slot, in addition to costs # connection slot, plus lock space (see max_locks_per_transaction). You
# from shared_buffers and # might also need to raise shared_buffers to support more connections.
# max_locks_per_transaction.
#superuser_reserved_connections = 2 #superuser_reserved_connections = 2
#unix_socket_directory = '' #unix_socket_directory = ''
#unix_socket_group = '' #unix_socket_group = ''
...@@ -91,6 +90,8 @@ ...@@ -91,6 +90,8 @@
#shared_buffers = 1000 # min 16 or max_connections*2, 8KB each #shared_buffers = 1000 # min 16 or max_connections*2, 8KB each
#temp_buffers = 1000 # min 100, 8KB each #temp_buffers = 1000 # min 100, 8KB each
#max_prepared_transactions = 5 # can be 0 or more #max_prepared_transactions = 5 # can be 0 or more
# note: increasing max_prepared_transactions costs ~600 bytes of shared memory
# per transaction slot, plus lock space (see max_locks_per_transaction).
#work_mem = 1024 # min 64, size in KB #work_mem = 1024 # min 64, size in KB
#maintenance_work_mem = 16384 # min 1024, size in KB #maintenance_work_mem = 16384 # min 1024, size in KB
#max_stack_depth = 2048 # min 100, size in KB #max_stack_depth = 2048 # min 100, size in KB
...@@ -98,7 +99,7 @@ ...@@ -98,7 +99,7 @@
# - Free Space Map - # - Free Space Map -
#max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each #max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each
#max_fsm_relations = 1000 # min 100, ~50 bytes each #max_fsm_relations = 1000 # min 100, ~70 bytes each
# - Kernel Resource Usage - # - Kernel Resource Usage -
...@@ -396,8 +397,10 @@ ...@@ -396,8 +397,10 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
#deadlock_timeout = 1000 # in milliseconds #deadlock_timeout = 1000 # in milliseconds
#max_locks_per_transaction = 64 # min 10, ~200*max_connections #max_locks_per_transaction = 64 # min 10
# bytes each # note: each lock table slot uses ~220 bytes of shared memory, and there are
# max_locks_per_transaction * (max_connections + max_prepared_transactions)
# lock table slots.
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment