Better default for ParallelGCThreads and ConcGCThreads by using number of physical cores and CPU mask.

Brandon Mitchell brandon at twitter.com
Fri Nov 22 09:58:18 PST 2013


On Fri, Nov 22, 2013 at 9:24 AM, Jon Masamitsu <jon.masamitsu at oracle.com>wrote:

>  This is a contribution regarding the number of GC worker threads to
> use.  Part of the change queries /proc on linux to get the number of
> active cores on the platform.  The changes are in
>
>
> http://cr.openjdk.java.net/~jmasa/8028554/webrev.00/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp.frames.html
>
> Can someone familiar with this code take a look to see
> if it is reasonable and done in a way that is consistent
> with other /proc queries.
>

/sys/devices/system/cpu/cpu<N>/topology/thread_siblings_list might be
somewhat easier to parse for this information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20131122/99e313bc/attachment.html 


More information about the hotspot-runtime-dev mailing list