RFR: 8243389: enhance os::pd_print_cpu_info on linux
Baesken, Matthias
matthias.baesken at sap.com
Thu Apr 23 07:14:53 UTC 2020
Hello, please review the following enhancement of os::pd_print_cpu_info on linux .
It adds information about
cache
online/offline cpus
frequency details
governors
by looking at the info provided at /sys/devices/system/cpu .
Example of added output on an x86_64 machine :
Online cpus:0-47
Offline cpus:
cache level:1
cache type:Data
cache size:32K
cache coherency line size:64
cache level:1
cache type:Instruction
cache size:32K
cache coherency line size:64
cache level:2
cache type:Unified
cache size:256K
cache coherency line size:64
cache level:3
cache type:Unified
cache size:18432K
cache coherency line size:64
BIOS frequency limitation:1862000
Frequency switch latency (ns):10000
Available cpu frequencies:1862000 1729000 1596000 1463000 1330000 1197000 1064000
Maximum cpu frequency:1862000
Minimum cpu frequency:1064000
Current cpu frequency:1064000
Available governors:conservative userspace powersave ondemand performance
Current governor:ondemand
Core performance/turbo boost:<Not Available>
bug/webrev :
https://bugs.openjdk.java.net/browse/JDK-8243389
http://cr.openjdk.java.net/~mbaesken/webrevs/8243389.0/
Thanks, Matthias
More information about the hotspot-dev
mailing list