RFR: 8283199: Linux os::cpu_microcode_revision() stalls cold startup [v3]

Thomas Stuefe stuefe at openjdk.java.net
Mon Mar 21 15:59:36 UTC 2022


On Mon, 21 Mar 2022 13:55:53 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> > Do you know _why_ access to /proc is slower than to /sys/devices? Is it all /proc accesses or just /proc/cpuinfo?
> 
> I suspect that's because we generate the entirety of `/proc/cpuinfo` on read, which includes doing lots of string printing, getting the CPU frequency (which, AFAICS, includes IPI). I have not explored this part deeply, though.

Makes sense. And it does it for every core.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7825


More information about the hotspot-runtime-dev mailing list