Hi all. I've looked for this topic and anything relating to it, and did not find anything. So I hope I am not repeating anything here.
I've been wanting a way to figure out how many P-cores and E-cores there are on the newer Intel CPUs.
So I think I have it figured out. I put together a quick skin to test the idea, and show you.
Also, I am hoping you all can review the code and if there are better ways to get this answer, I am willing to hear it.
You can get to the numbers of Cores and number of Logical processors in Windows, but not the actual P-core of E-core count. Not without using 3rd party tools. I wanted to keep this native. So I am using the wmic windows command to get that. Is there a better way?
And then I use those 2 numbers to calculate the P-cores and E-cores.
As best I can tell, I think this should work on all CPUs. If you don't have E-cores, it will just be 0.
I'll post the code here and you can look it over. Or use it if you have a need for it.
Here are 2 examples. One with E-cores and one without.
i7-1370P i9-9900KMy thoughts were to highlight the E-cores differently or something in my skins.
Let me know what you think.
I've been wanting a way to figure out how many P-cores and E-cores there are on the newer Intel CPUs.
So I think I have it figured out. I put together a quick skin to test the idea, and show you.
Also, I am hoping you all can review the code and if there are better ways to get this answer, I am willing to hear it.
You can get to the numbers of Cores and number of Logical processors in Windows, but not the actual P-core of E-core count. Not without using 3rd party tools. I wanted to keep this native. So I am using the wmic windows command to get that. Is there a better way?
And then I use those 2 numbers to calculate the P-cores and E-cores.
As best I can tell, I think this should work on all CPUs. If you don't have E-cores, it will just be 0.
I'll post the code here and you can look it over. Or use it if you have a need for it.
Here are 2 examples. One with E-cores and one without.
i7-1370P i9-9900K
Code:
[Rainmeter]Update=1000BackgroundMargins=0,0,0,0OnRefreshAction=[!CommandMeasure CpuCores "Run"][!CommandMeasure CpuLogical "Run"][Metadata]Name=CPUtestAuthor=TGonZoInformation=Calculate P-cores and E-coresLicense=Creative Commons BY-NC-SA 3.0Version=1.0.0[Variables]fontName=Trebuchet MStextSize=12;=========================================================[meterBase]Meter=ImageX=0Y=0W=160H=140SolidColor=47,47,47,240UpdateDivider=-1;-------------[CpuCores]Measure=PluginPlugin=RunCommandParameter=wmic cpu get NumberOfCores/Format:ListOutputType=ANSIRegExpSubstitute=1Substitute="(?siU)^.*NumberOfCores=([\d]{1,2})":"\1","#CRLF#":""UpdateDivider=-1[CpuLogical]Measure=PluginPlugin=RunCommandParameter=wmic cpu get NumberOfLogicalProcessors/Format:ListOutputType=ANSIRegExpSubstitute=1Substitute="(?siU)^.*NumberOfLogicalProcessors=([\d]{1,2})":"\1","#CRLF#":""UpdateDivider=-1[CpuPcores]Measure=CalcFormula=([CpuLogical]-[CpuCores] = 0 ? [CpuCores] : [CpuLogical]-[CpuCores])DynamicVariables=1[CpuEcores]Measure=CalcFormula=[CpuCores]-CpuPcoresDynamicVariables=1[CpuFirstEcore]Measure=CalcFormula=(CpuEcores = 0 ? 0 : [CpuLogical]-CpuEcores+1)DynamicVariables=1;-------------[MeterCPUs]Meter=StringMeasureName=CpuCoresMeasureName2=CpuLogicalMeasureName3=CpuPcoresMeasureName4=CpuEcoresMeasureName5=CpuFirstEcoreFontSize=13FontColor=255,255,255,255Padding=10,10,10,10AntiAlias=1Text=Cores = %1 #CRLF#Logicals = %2 #CRLF#-----------------#CRLF#P-cores = %3 #CRLF#E-cores = %4 #CRLF#1st E-core = %5
Let me know what you think.
Statistics: Posted by TGonZo — Yesterday, 9:38 pm