I know that the number of thread pools are calculated by ES based on the
number of CPUs it detects. Does anyone know if ES makes a distinction
between physical and hyperthreaded cores? In other words will ES count a 8
core hyperthreaded CPU as 8 or 16 CPUs?
so whatever Runtime.getRuntime().availableProcessors() return is used. I
don't know from the top of my head if that is guaranteed to be physical, I
would think it depends on your system and the JVM?
simon
On Friday, October 11, 2013 7:23:36 PM UTC+2, Logan Hardy wrote:
I know that the number of thread pools are calculated by ES based on the
number of CPUs it detects. Does anyone know if ES makes a distinction
between physical and hyperthreaded cores? In other words will ES count a 8
core hyperthreaded CPU as 8 or 16 CPUs?
Other JVMs, especially OpenJDK 6, have a bug and may report "1" for
Runtime.getRuntime().availableProcessors() on chrooted environments
(typically VMs) because they examine the /proc folder instead of using the
sysconf call.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.