Browse Source

Play2: Use total CPU thread count (hyperthreading) (#4477)

Matthias Kurz 6 years ago
parent
commit
0ccb2acb17

+ 1 - 1
frameworks/Java/play2-java/play2-java-ebean-hikaricp/conf/application.conf

@@ -54,7 +54,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Java/play2-java/play2-java-jooq-hikaricp/conf/application.conf

@@ -54,7 +54,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Java/play2-java/play2-java-jpa-hikaricp/conf/application.conf

@@ -54,7 +54,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Java/play2-java/play2-java/conf/application.conf

@@ -54,7 +54,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-anorm/conf/application.conf

@@ -49,7 +49,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-reactivemongo/conf/application.conf

@@ -45,7 +45,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-slick/conf/application.conf

@@ -49,7 +49,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala/conf/application.conf

@@ -49,7 +49,7 @@ akka {
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
         parallelism-max = 14
         parallelism-max = 14
-        parallelism-max = ${?physical_cpu_count}
+        parallelism-max = ${?thread_count}
 
 
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
         task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
       }
       }