MaynardMiner / SWARM

Profit Switching Mining Administrator For HiveOS/Linux & Windows: HiveOS Integrated
MIT License
92 stars 40 forks source link

gminer benchmark incorrectly saves hashrate (Related To Windows .NET Russian Formatting) #121

Closed petrovsky34 closed 5 years ago

petrovsky34 commented 5 years ago

gminer

petrovsky34 commented 5 years ago

miniz

petrovsky34 commented 5 years ago

8x 1050ti zhash gminer 12 USD

8x 1050ti zhash miniz 1.50 usd

petrovsky34 commented 5 years ago

gminer 1500 zhash miniz 160 zhash

petrovsky34 commented 5 years ago

x8 1050 ti biminer 11 gh/s speed ethash

petrovsky34 commented 5 years ago

gminer all algorithms do not show right

MaynardMiner commented 5 years ago

Okay. I will go the through the API, and see what is going on, but its weird since I don't immediately reproduce. The hashrates seem fine for me.

MaynardMiner commented 5 years ago

So you are stating:

gminer hashrates are off for you. bminer ethash is off for you.

Those are the two I will look at.

MaynardMiner commented 5 years ago

@petrovsky34 Just so I know-

When you run benchmark miner gminer-1 command, and benchmark miner again- Does it continue to produce bad hashrates?

MaynardMiner commented 5 years ago

Thank you for the feedback btw. It's hard to troubleshoot effectively 4 different OS's/ versions worth of potential issues.

MaynardMiner commented 5 years ago

For the record, I had three other windows users show me hashrates, and it was correct for them. I am not saying your crazy, because from photos your are not, just this isn't easy to find issue.

petrovsky34 commented 5 years ago

I deleted gminer

petrovsky34 commented 5 years ago

just run swarm gminer benchmark on your computer

petrovsky34 commented 5 years ago

ffgfg grdgd vbbvv xcvvxvxc

petrovsky34 commented 5 years ago

11111 22222

MaynardMiner commented 5 years ago

May I see your args? I would like to try to use your settings, to try to reproduce.

petrovsky34 commented 5 years ago

ok -RigName1 1054 -RigName2 1063 -Algorithm aergo,argon2d-dyn,argon2d4096,allium,bcd,balloon,beam,bitcore,c11,daggerhashimoto,dedal,equihash96,equihash144,equihash192,equihash200,equihash210,ethash,exosis,hex,hmq1725,lbk3,lyra2rev3,lyra2v3,lyra2z,phi,phi2,polytimos,progpow,rainforest,sha256t,skunk,sonoa,timetravel,tribus,verushash,x16r,x16rt,x16s,x17,x21s,x22i,xevan,yescrypt,yescryptr16,yescryptr32,zhash,astralhash,jeonghash,padihash,pawelhash,veil -API Yes -Currency RUB -Location EUROPE -PoolName nicehash,zergpool -Type NVIDIA1,NVIDIA2 -Nicehash_Wallet1 36QFg44C35w2job1yJwkgP16sCFYCJt8jU -Nicehash_Wallet2 36QFg44C35w2job1yJwkgP16sCFYCJt8jU -Wallet1 Xb6b1dtNAbV7epmA7JiVEwmboN9fkxryRa -Wallet2 Xb6b1dtNAbV7epmA7JiVEwmboN9fkxryRa -PasswordCurrency1 DASH -PasswordCurrency2 DASH -Benchmark 220 -Interval 60 -Update Yes -GPUDevices1 0,1,2,3,5,6,8,9 -GPUDevices2 4,7 -Auto_Coin Yes -Startup Yes -Switch_Threshold 5 -SWARM_Mode no -AlgoBanCount 1 -Donate .5 -PoolBanCount 2 -Platform windows -HiveOS No"

MaynardMiner commented 5 years ago

Okay, I'm looking at it.

For the record, you could probably just cut out the algos you don't want to mine from .\config\pools\pool-algos.json instead of adding all the algos there. May make life easier, and avoid dealing with typos.

petrovsky34 commented 5 years ago

ok

petrovsky34 commented 5 years ago

thanks

MaynardMiner commented 5 years ago

The background agent is what gathers the stats, does it look incorrect as well?

petrovsky34 commented 5 years ago

43t453453

petrovsky34 commented 5 years ago

The background agent correctly shows!

MaynardMiner commented 5 years ago

So the background agent is recording the right stats it seems, but for some reason when SWARM goes to read, it- Is pulling incorrect value.

Swarm saves the Hashrate to a debug file:

.\build\txt\NVIDIA1-Hash.txt

Does that value change correctly?

MaynardMiner commented 5 years ago

Also, you are not running out disk space, right?

petrovsky34 commented 5 years ago

yes correctly shows! NVIDIA1-Hash.txt

MaynardMiner commented 5 years ago

So when it pulls from that file, some how the figure it getting messed up. This is a very weird read-write parsing issue. I'm going to see what I can do. But now I know what to look at. thx

petrovsky34 commented 5 years ago

ok

petrovsky34 commented 5 years ago

miniz correctly shows

petrovsky34 commented 5 years ago

6666666666666666666666

petrovsky34 commented 5 years ago

vvvvvvvvvvvvvvvvvvvvvvvvvvv

MaynardMiner commented 5 years ago

It it written to file with a "," instead of a "." ?

The hashrate I mean

petrovsky34 commented 5 years ago

no

petrovsky34 commented 5 years ago

that this means red written

MaynardMiner commented 5 years ago

http://nist.time.gov/actualtime.cgi Does that link work for you?

I think the NIST may be a timedate language issue. I will look into it.

Line 643 is systeminfo (Last photo)

I am looking for "Total Physical Memory", does it not print out in english? That may be why that is failing.

You can open cmd and type systeminfo, and see what language it is printed in.

petrovsky34 commented 5 years ago

99999999999999999999

MaynardMiner commented 5 years ago

That's why, its not in english. lol

I will see if there is a way to force it to output as english, so I can parse.

petrovsky34 commented 5 years ago

I from Russia Russian language

MaynardMiner commented 5 years ago

Yeah. I noticed.

There must be a way I can temporarily change the language of output for developing purposes, so I can parse non-english windows commands. It's something I am not familiar with, but will research ASAP.

petrovsky34 commented 5 years ago

ok

petrovsky34 commented 5 years ago

windows 8 swarm does not work ???

MaynardMiner commented 5 years ago

.\build\powershell\hashrates.ps1 At line 99, function Get Hashrates

function Get-HashRate {
    param(
        [Parameter(Mandatory = $true)]
        [String]$Type,
        [Parameter(Mandatory = $false)]
        [String]$API,
        [Parameter(Mandatory = $false)]
        [Int]$Port
    )

        $HashFile = Get-Content ".\build\txt\$Type-hash.txt"
        [Double]$HashFile
}

Try changing

[Double]$HashFile

to

[Decimal]$HashFile

See if that corrects the value.

You can open with wordpad and change it.

petrovsky34 commented 5 years ago

ok

petrovsky34 commented 5 years ago

no 5555555555555555555555555555555555

petrovsky34 commented 5 years ago

gminer1 150hs gminer2 69hs must be

MaynardMiner commented 5 years ago

Can I see the contents of NVIDIA1-hash.txt. It should just be a number.

But I want to play with the pwsh culture, and see if I can make it fail.

petrovsky34 commented 5 years ago

ккккккккккккккккккккккккккк

MaynardMiner commented 5 years ago

PS C:\Users\Mayna> $A = "64,9" PS C:\Users\Mayna> $A|Set-Content "test.txt" PS C:\Users\Mayna> $B = Get-Content "test.txt" PS C:\Users\Mayna> [Double]$B 649

Apparently Powershell can't handle the ","

I will have a fix next release (probably tonight).

petrovsky34 commented 5 years ago

ok well I will be looking forward to it)))

petrovsky34 commented 5 years ago

windows 8 swarm does not work ???

MaynardMiner commented 5 years ago

Since you know how- you can try this:

function Get-HashRate {
    param(
        [Parameter(Mandatory = $true)]
        [String]$Type,
        [Parameter(Mandatory = $false)]
        [String]$API,
        [Parameter(Mandatory = $false)]
        [Int]$Port
    )

        $HashFile = Get-Content ".\build\txt\$Type-hash.txt"
        $HashFile = $HashFile -replace ",","."
        [decimal]$HashFile
}