timings
timings copied to clipboard
Feature request: Display CPU model
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.
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
For the short term, what about querying a few things like lscpu
?
lscpu is a unix command. That doesn't work for windows. There should be a platform independently solution for this.
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 ?
Throwing in oshi would be a much better solution vs tryna deal with parsing that mess ourselves
Up to you, just providing an alternative