yuzi-co / Forager

Advanced multi-algo profit switching miner
GNU General Public License v3.0
24 stars 14 forks source link

AMD CPU: CPU-tdp.json #24

Closed eMTee72 closed 6 years ago

eMTee72 commented 6 years ago

Updated cpu-tdp.json with ", "AMD Ryzen 5 1600 Six-Core Processor": 65}" but Wattage still not shown (still reporting: 0W) Same type of change on a Intel CPU worked fine.

The AMD-string I extracted from DeviceList.bat... something doing wrong?


   Type: CPU

  Id Group Name                                            Cores Threads CacheL3   Clock Load Temp Power*
  -- ----- ----                                            ----- ------- -------   ----- ---- ---- ------
CPU0   CPU AMD Ryzen 5 1600 Six-Core Processor                 6      12    16MB 3200Mhz 100%          0W
eMTee72 commented 6 years ago

Interesting: AfterburnerList.bat reports better results:


Signature     : 1296123981
Version       : 131072
HeaderSize    : 32
EntryCount    : 38
EntrySize     : 1324
Time          : 1526232451
GpuEntryCount : 1
GpuEntrySize  : 1304

SrcName          SrcUnits LocalizedSrcName LocalizedSrcUnits RecommendedFormat     Data MinLimit MaxLimit Flags        GPU
-------          -------- ---------------- ----------------- -----------------     ---- -------- -------- -----        ---
GPU temperature  °C       GPU temperature  °C                %.0f                    59        0      100  None          0
GPU usage        %        GPU usage        %                 %.0f                   100        0      100  None          0
FB usage         %        FB usage         %                 %.0f                     9        0      100  None          0
Memory usage     MB       Memory usage     MB                %.0f              2222.246        0     8192  None          0
Core clock       MHz      Core clock       MHz               %.0f               1162.97        0     2500  None          0
Memory clock     MHz      Memory clock     MHz               %.0f                  1900        0     7500  None          0
Power            W        Power            W                 %.1f                 97.98        0      300  None          0
Fan speed        %        Fan speed        %                 %.0f                    48        0      100  None          0
Fan tachometer   RPM      Fan tachometer   RPM               %.0f                  1775        0    10000  None          0
CPU1 temperature °C       CPU1 temperature °C                %.0f                41.375        0      100  None          0
CPU1 usage       %        CPU1 usage       %                 %.0f                   100        0      100  None          0
CPU2 usage       %        CPU2 usage       %                 %.0f                   100        0      100  None          1
CPU3 usage       %        CPU3 usage       %                 %.0f                   100        0      100  None          2
CPU4 usage       %        CPU4 usage       %                 %.0f              4.687502        0      100  None          3
CPU5 usage       %        CPU5 usage       %                 %.0f                   100        0      100  None          4
CPU6 usage       %        CPU6 usage       %                 %.0f              6.250002        0      100  None          5
CPU7 usage       %        CPU7 usage       %                 %.0f                   100        0      100  None          6
CPU8 usage       %        CPU8 usage       %                 %.0f                   100        0      100  None          7
CPU9 usage       %        CPU9 usage       %                 %.0f                   100        0      100  None          8
CPU10 usage      %        CPU10 usage      %                 %.0f              9.375002        0      100  None          9
CPU11 usage      %        CPU11 usage      %                 %.0f                   100        0      100  None         10
CPU12 usage      %        CPU12 usage      %                 %.0f              4.687502        0      100  None         11
CPU usage        %        CPU usage        %                 %.0f                 68.75        0      100  None 4294967295
CPU1 clock       MHz      CPU1 clock       MHz               %.0f                  3400        0     5000  None          0
CPU2 clock       MHz      CPU2 clock       MHz               %.0f                  3400        0     5000  None          1
CPU3 clock       MHz      CPU3 clock       MHz               %.0f                  3400        0     5000  None          2
CPU4 clock       MHz      CPU4 clock       MHz               %.0f                  3400        0     5000  None          3
CPU5 clock       MHz      CPU5 clock       MHz               %.0f                  3400        0     5000  None          4
CPU6 clock       MHz      CPU6 clock       MHz               %.0f                  3400        0     5000  None          5
CPU7 clock       MHz      CPU7 clock       MHz               %.0f                  3400        0     5000  None          6
CPU8 clock       MHz      CPU8 clock       MHz               %.0f                  3400        0     5000  None          7
CPU9 clock       MHz      CPU9 clock       MHz               %.0f                  3400        0     5000  None          8
CPU10 clock      MHz      CPU10 clock      MHz               %.0f                  3400        0     5000  None          9
CPU11 clock      MHz      CPU11 clock      MHz               %.0f                  3400        0     5000  None         10
CPU12 clock      MHz      CPU12 clock      MHz               %.0f                  3400        0     5000  None         11
CPU clock        MHz      CPU clock        MHz               %.0f                  3400        0     5000  None 4294967295
RAM usage        MB       RAM usage        MB                %.0f                  4586        0    16384  None          0
Pagefile usage   MB       Pagefile usage   MB                %.0f                 11939        0    16384  None          0
yuzi-co commented 6 years ago

If Afterburner is enabled cpu-tdp.json is not used I will need to add it as fallback if AB doesnt report some power usage (like when they dont support AMD cpus for example)

If it is disabled, its possible that the json is badly formatted (although you would probably notice an error)

I need to think... ))

eMTee72 commented 6 years ago

On the system with the Intel CPU, I made a similar change. AB is also running on that system, but Forager didn't report the Watt before I updated the cpu-tdp.json.

So to me it looks like cpu-tdp is already being used, as the Watt were reported after I added the CPU to cpu-tdp. Let me know if there's anything specific you want me to test? And I'll give you some time to think about this :-)

yuzi-co commented 6 years ago

I have added a few fixes that will hopefully solve this Please check with latest master

eMTee72 commented 6 years ago

I grabbed today's code, added the string (as above) to cpu-tdp.json, inserted AFTERBURNER = ENABLED into Config and now CPU Watt usage is also reported! Benchmarking all C-miners again now ;-)

yuzi-co commented 6 years ago

excellent, closing ticket then :)