timings icon indicating copy to clipboard operation
timings copied to clipboard

Feature request: Display CPU model

Open disconsented opened this issue 5 years ago • 6 comments

Frequently performance issues are cause by anemic hardware, being able to display the CPU model along side some other metrics like cores available to the JVM, enabled mitigations and current clocks would go a long way helping diagnose this.

disconsented avatar Sep 18 '19 22:09 disconsented

I did consider looking into this a while back, ended up not persuing it as I was somewhat offput by the idea of having to chunk something like oshi into paper (https://github.com/oshi/oshi) and co

electronicboy avatar Sep 19 '19 11:09 electronicboy

For the short term, what about querying a few things like lscpu?

disconsented avatar Sep 20 '19 00:09 disconsented

lscpu is a unix command. That doesn't work for windows. There should be a platform independently solution for this.

Joo200 avatar Sep 20 '19 06:09 Joo200

I never said use lscpu only, I said use things like lscpu.

With powershell you can do Get-WmiObject –class Win32_processor | select * which outputs something similar.

Of particular note from lscpu:

  • NUMA nodes
  • Sockets
  • Model/Model name
  • Cache
  • CPU(s)
  • CPU MHz

This should cover most use cases and provide enough useful information into how resources are allocated to whatever (virtualised) environment MC is being ran in. Querying Runtime.getRuntime() should be considered more powerful here for what its worth.

Additionally, querying lspci and filtering for Network controller, SATA Controller and Non-Volatile memory controller should provide enough information about storage models.

What are your thoughts on this @electronicboy ?

disconsented avatar Sep 23 '19 01:09 disconsented

Throwing in oshi would be a much better solution vs tryna deal with parsing that mess ourselves

electronicboy avatar Sep 23 '19 02:09 electronicboy

Up to you, just providing an alternative

disconsented avatar Sep 23 '19 04:09 disconsented