ソースを参照

Increase max_clients to handle better 40 CPUs

Ludovic Gasc (GMLudo) 10 年 前
コミット
6d3a71803f
2 ファイル変更2 行追加2 行削除
  1. 1 1
      config/postgresql.conf
  2. 1 1
      toolset/benchmark/benchmarker.py

+ 1 - 1
config/postgresql.conf

@@ -61,7 +61,7 @@ listen_addresses = '*'		# what IP address(es) to listen on;
 					# defaults to 'localhost', '*' = all
 					# (change requires restart)
 port = 5432				# (change requires restart)
-max_connections = 3500			# (change requires restart)
+max_connections = 5000			# (change requires restart)
 # Note:  Increasing max_connections costs ~400 bytes of shared memory per
 # connection slot, plus lock space (see max_locks_per_transaction).
 #superuser_reserved_connections = 3	# (change requires restart)

+ 1 - 1
toolset/benchmark/benchmarker.py

@@ -382,7 +382,7 @@ class Benchmarker:
       sudo sysctl net.ipv4.tcp_tw_recycle=1
       sudo sysctl -w kernel.shmmax=2147483648
       sudo sysctl -w kernel.shmall=2097152
-      sudo sysctl -w kernel.sem="250 32000 256 256"
+      sudo sysctl -w kernel.sem="250 32000 256 512"
       echo "Printing kernel configuration:" && sudo sysctl -a
     """)
         # Explanations: