cores and threads

David DeHaven david.dehaven at oracle.com
Thu Sep 19 03:08:22 UTC 2013


> If a machine has 4 cores and 8 threads will the jdk8 build run faster
> than one with 4 cores and 4 threads?  If so would it be a 2x decrease in
> build time?  Would the build explicitly take advantage of the
> hyper-threading or would any increase in performance be a side effect?

My understanding is you're still throttled to using one physical core per two logical cores (if that's even the terms they use...), it just makes context switching cheaper. On the one hand, you don't gain much performance for CPU intensive operations, but when dealing with I/O bottlenecked operations it's probably worthwhile at least until both threads become bottlenecked.

-DrD-




More information about the build-dev mailing list