Browse Source

H2O: Increase the number of threads in the physical hardware environment further (#2971)

Try again with the same number as logical processors.
Anton Kirilov 8 years ago
parent
commit
e926615194
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frameworks/C/h2o/setup.sh

+ 2 - 2
frameworks/C/h2o/setup.sh

@@ -6,7 +6,7 @@ H2O_APP_HOME="${IROOT}/h2o_app"
 BUILD_DIR="${H2O_APP_HOME}_build"
 H2O_APP_PROFILE_PORT=54321
 H2O_APP_PROFILE_URL="http://127.0.0.1:$H2O_APP_PROFILE_PORT"
-PHYSICAL_ENVIRONMENT_THREADS=40
+PHYSICAL_ENVIRONMENT_THREADS="$CPU_COUNT"
 
 # A hacky way to detect whether we are running in the physical hardware or the cloud environment.
 if [[ "$CPU_COUNT" -gt 16 ]]; then
@@ -14,7 +14,7 @@ if [[ "$CPU_COUNT" -gt 16 ]]; then
 	# In the physical hardware environment the number of threads used by the application is not
 	# the same as the number of logical CPU cores that the database server has, so we need to
 	# adjust the maximum number of database connections per thread accordingly.
-	DB_CONN=3
+	DB_CONN=1
 else
 	CLOUD_ENVIRONMENT=true
 	DB_CONN=16