public static final int DEFAULT_EVENT_LOOP_POOL_SIZE = 2 * Runtime.getRuntime().availableProcessors();
Runtime.getRuntime().availableProcessors();
I have reviewed the code and it looks like event loop thread are created with the algorithm: (2 * "available cores")
The source is in 2.x branch in VertxOptionspublic static final int DEFAULT_EVENT_LOOP_POOL_SIZE = 2 * Runtime.getRuntime().availableProcessors();
In my case, my processor is 4 cores, but supports 8 thread. 8 is then whatresponds with.Runtime.getRuntime().availableProcessors();
Should the documentation be updated?
On Monday, December 22, 2014 1:39:26 PM UTC-5, Billy Yarosh wrote:Is there stronger documentation around how Vert.x determines the number of eventloop threads it starts? According to the docs it's one per CPU core. I am on an Intel i7 and am seeing 16 eventloop threads. I also notice that thread 0 is never used by any verticle. Why is that? My i7 claims to be 4 cores with 8 threads.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.