Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
17
Moderator of r/WaltonchainMining

RUN CPU BACKEND - DISCLAIMER IF YOUR PC BLOWS UP IT WASN'T ME

90 comments
85% Upvoted
What are your thoughts? Log in or Sign uplog insign up
level 1

This won't give you the best performance, because the real cores and logical threads are working together and thus interfering.

I also told the slack people this tip (apperently only Ryzen and Threadrippers benefit from it):

Select fastest preset in the Walton Miner, then your CPU should have 100% CPU Usage. After, go to Task manager and right click on Walton.Exe, which consumes all CPU, Go to "Details", then a new Task Manager Tab opens, Again, right click on the exe and then you can select "Set Affinity"

Now you just disselect all odd cores so only even numbers stay (0,2,4,6 etc...)

The best way for mining is to only utilize the real Cores, but not the additional threads

level 2

I am almost doubling the hashrate from a pair of x5650 cpu's. Initially, with the Walton miner slider maxed out and affinity set, I was getting around 110-120k. I just did this trick for all 24 threads and the hashrate is currently 216k and climbing!

level 2
2 points · 5 months ago

only currently getting 50% with ryzen 7 - around 200k right now.

level 3

Me too man. Exactly the same. 50% with 200k. Looking for things to improve as well.

edit: %

level 3

Tried this on an 1800x at stock clocks, and peaked at 256k with 16 threads.

*edit: got one peak at 282k, but it seems to settle around 245-248 most of the time.

level 4

yup - mine is around 250k now after what hankmoody recommended

level 3

oh maaan why you dont buy a intel phi? cheaper and much better

level 2

Wow! That worked well for me. Thank you. I went from 185k to 220k on my Ryzen 7 but I’m only at 54% CPU usage. Any suggestions to increase my CPU usage?

level 3
3 points · 5 months ago

would like to know as well - I would like to bump up to around 75-80% and leave it there. Currently at 65%

level 4

I just overclocked my Ryzen 7. I'm now at 72% and I peaked at 300K. I settled around 270K-280K. Have you tried overclocking yours? I've never done it before and it was actually pretty easy using the Ryzen Master program.

level 3

you have to wait a little it goes up ;)

level 2
Original Poster1 point · 5 months ago

Like this for cryptonight, is it confirmed here?

level 3
1 point · 5 months ago · edited 5 months ago

I might be doing something wrong, but I haven't gotten this to beat the geth start method with a 1950x yet (may be processor dependent? again, or operator dependent heh).

level 4
Original Poster1 point · 5 months ago

I never got this to work in 1.3 beta. It just halfed my hash. I know because its same method i was telling alot of slack users to do on nicehash. Will try it out and see.

level 2

thanks man, really helpful! Hashrate just increased to around 200k from 160k. CPU Usage down from 61% to around 53%. What else can I do to improve this /u/hank_mooody ?

level 3

OC ;)

level 2

Getting 560k with his method 200k with yours on a 1950x.

level 3

With what method are you getting 560k?

Thanks

level 4

You're literally in the thread ma dude

level 5

I know but you said his and yours haha

level 6

his - > op yours - > the guy I answered to

level 7

Thanks :)

Is your 1950x standard or have you tweaked it? I've just finished my first build and getting 480k

level 8

I overclocked it as well as the ram. My average is a bit lower compared to what I estimated back then too. 500k is good.

level 9

Yeah my average is around 490k..

There are times when it drops to 300k and as high as 700k. Would be nice to keep it towards the high end... maybe with some tweaking.

level 2

fastest preset only uses 45% of cpu, not 100%

level 2
Original Poster1 point · 5 months ago

Confirmed

level 3

Would it be better to purchase a thread ripper or a 1080ti for mining?

level 4
Original Poster1 point · 5 months ago

For now and moveing into future 1080ti

level 4

intel phi

level 2

I did this on an i7 7700k and went from 160k/100% to 130k/53%

Am I doing something wrong?

level 3
1 point · 5 months ago · edited 5 months ago

Only works for AMD Ryzen/Threadripper

level 2

Is there an ELI5 of why this would increase hash rate when only using half the corse? Will this only work on TR's, not older CPU's i.e i5's or i7s?

level 3

Because half the cores are just virtual and there's a lot of syncing/swapping overhead. You're now basically using only the "real" cores. Don't get irritated by "only 50%" cpu usage, it means nothing as it also counts virtual cores.

level 2

this flat out does not work for thread rippers. just tested it.

level 1

This is working great CPU is beating GPU, so people who claim the GPU is beating CPU are plainly retarded. GPU is implemented limited right now to test. They will announce in advance when GPU is being released as they mentioned.

level 1

You're a hero man. Couldn't set up a VM for my TR, but this helped push me over 500k. Muchas Gracias!

level 1

Thanks for this, kaito!!! I tried it on one of my dual x5650 machines and it's almost doubling my hashrate! Looks like I've got a lot of work to do for the rest of them now..

Is there a way to make Powershell batch files, so if I have to restart I can just run the batch files?

level 2
Original Poster1 point · 5 months ago

Let me know when you learn how to do it

level 3

Okay, I'll get busy with some google-fu once I'm done getting this manually input into the rest of the fleet! :)

level 3

I've almost got it figured out.

You edit your registry to be able to execute .ps1 files, which are powershell scripts. Go to:

HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\open\command

and change the value to:

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noLogo -ExecutionPolicy unrestricted -file "%1"

Now you open up Powershell ISE, create a new script, save it as a .ps1 file, and set it up so you can either manually execute the file or set it to startup so that the script starts on boot.

The only thing I haven't figured out is how to separate the commands. I made a test file that started up power shell, went to the correct directory, and started start.bat.... but because start.bat takes a little bit to finish executing, where the etherbase command should come up is blank.

Maybe you can figure it out from there?

level 4

Would adding a delay after running start.bat be a workaround? It's the Start-Sleep command.

level 5

I tried start-sleep for as high as 30 seconds and it still didn't work, unfortunately.

level 5

This is where I'm stuck at.. I just can't get the etherbase command to run after the miner starts.

https://i.imgur.com/WlTsFau.png

level 6

I actually haven't tried any of this yet. Too busy wrangling VMs yesterday so I didn't notice any of this awesome development. I'll have a look tonight and see if there's anything I can do. I'm a Bash guy but I'll take a stab at Powershell haha

level 7
2 points · 5 months ago · edited 5 months ago

Awesome. I'm literally a nothing guy, and this is 100% new to me so trying to google-fu it is hard. I'm going to try Start-Process the next time I'm able to remote in to my servers.

https://i.imgur.com/ENN4OLM.png

level 8

Hey! Just in case you haven't seen it yet, /u/scavicchio did an awesome job automating all of this. Also see this fix for the delay issue you had mentioned.

level 9

Thank you!

level 9

Oh heck yeah, you guys are awesome!!

level 1

I tried this method yesterday and it gave me roughly an extra 100k on my i9.

I didn't know the command to set my wallet address, so I dragged my json file to the nodes folder in WTC folder.

It I type ETH.accounts it shows up my public Walton address so this must work.

And ETH.hashrate gives my hashrate.

I have the same wallet from my json file open on another computer which is an i5 mining, which shows the mining history. I have 2 wtc so far.

How do you tell what miner earnt the rewards?

level 1
2 points · 5 months ago

thank you for sharing this!

level 2
Original Poster1 point · 5 months ago

Np

level 1

Anyone else getting fatal error: cannot connect because targetcomputer is actively blocking connection? After starting the miner. I have firewall off btw and am running powershell as admin.

level 2

Make sure the WTC GUI isn't running

level 3

I have closed everything that is related to the wallet.

level 2

yes I have

level 1

I tried to combine all commands in a batch file so I don't have to manually type this in each time I restart my computer, but I didn't manage to make it work. Can anyone here help me out with this please?

level 1

Looks like this method also starts GPU mining at the same time for me. My CPU and GPU both went under load once I ran miner.start()

https://i.imgur.com/xqSNLqu.png

level 2
Original Poster1 point · 5 months ago

Coincidence

level 1

Is there any way to view how many connections to the network you have when doing this method? It says I am hashing at 280k on Ryzen 1700 but I have no confirmation that blocks are actually coming through.

level 1

My 8700K shows 85% utilization in SpeedFan. Any ideas how to increase threads? I got an error trying Powershell Here’s the error: https://imgur.com/a/Uap3j

level 1

You don't need to attach a second session for checking the hashrate. Just press Enter once it's running and it will give you a ">" Then type miner.getHashrate();

level 2
Original Poster1 point · 5 months ago

Its much easier with a second window and keep the interface clean

level 1

Anyone mining with a Ryzen 5 1600X 3.6 6 core? What’s your hashrate approximately?

level 2

i am hitting ~100k with a 1600

level 3

In the GUI wallet or powershell with max cores?

level 4

i just switched to powershell. It doesnt make much difference if I use all threads or only half of them. Hovers around 70k with peaks up to 100k atm

level 5

Seems low....

level 6

I have a relatively cpu intensive algo running on my gpus atm so its def slowing it down a bit. How much are you getting on 1600x?

level 1

Worked for me. TR 1950x @4 ghz 1.5 V. 100%cpu usage. Up to 800kh/s. But 65 °. Ordered a new thermal paste.

level 1

i dont find much difference between powershell and wallet

level 2
Original Poster1 point · 5 months ago

You won’t unless you have a 16thread or higher cpu

level 1

i am running multiple miner with same address, is there a way to check h/s rate on any site with address?

level 2
Original Poster2 points · 5 months ago

No idea, not that I know. It’s not pool mining or nicehash ☺️

level 1

Is this viable for a 8700k? It has exactly 12 threads.

level 2
Original Poster1 point · 5 months ago

Try it but I don’t think you’ll gain much.

level 2

Let me know how yours works. I overclocked to 4.9 or 5.0 GHz and at 11 and 12 threads this method caused my computer to reboot.

level 1

What does step 9 do in the second power shell window? Just curious what this http links your second power shell window to? :

9. Enter : .\walton.exe attach http://127.0.0.1:8545

Thanks :)

level 2
Original Poster2 points · 5 months ago

allows you to run commands on the first window but in a 2nd window. Such as eth.hashrate to get your hashate

level 1

How do you tell if you mined a block using this method other than loading up the wallet or checking the website?

level 2
Original Poster1 point · 5 months ago

Look through your console. It’ll tell you

level 3

Does it specifically say block mined or what though? I've been looking and can't find it since I only get a block or so a day.

level 4
Original Poster1 point · 5 months ago

Something like ‘you have successfully mined a block’ or found a block

level 5

Thanks, I must just keep missing it since I have a couple machines.

level 6
Original Poster1 point · 5 months ago

You could probably log your console output but you’d need to google how

level 1

I'm using this method and after a while it stops showing the INFO stuff :

INFO [04-07|12:13:00] Start mining WTCBlock blockheight=13642 transactions=0

When I press a button it seems to sync everything. My hashrate doesn't drop though. I'm wondering if there is an issue and if I'm even mining the right blocks since I haven't gotten one in 4 days with 800k hash in total.

level 2
Original Poster1 point · 5 months ago

If unsure wipe your wallet, reinstall and start it up again. Check explorer for current block number.

level 3

Its what I did and I think it worked. I'll keep monitoring.

level 3

Still having the issue after all. I made a thread for it.

level 1
1 point · 5 months ago · edited 5 months ago

Awesome! I really want to give it a go. However, I can't get .\start.bat to work. (The daemon) It gives me the following output:

PS C:\Program Files\WTC> .\start.bat

C:\Program Files\WTC>if exist node1\ (echo "exist" ) else ( echo "not exist"
.\walton.exe --datadir node1 init genesis.json ) "exist"

C:\Program Files\WTC>walton --identity "development" --rpc --rpcaddr 127.0.0.1 - -rpccorsdomain "*" --datadir "node1" --port "30303" --rpcapi "admin,personal,db ,eth,net,web3,miner" --networkid 999 --rpcport 8545 console
.\start.bat : INFO [04-07|19:16:55] Initialised chain configuration
config="{ChainID: 15 Homestead: 1 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Metropolis: <nil> Engine: unknown}" At line:1 char:1

  • .\start.bat

  •   + CategoryInfo          : NotSpecified: (INFO [04-07|19:...gine: unknown}" 
     :String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

INFO [04-07|19:16:55] Starting P2P networking 2018/04/07 19:16:55 Waiting for clients INFO [04-07|19:16:57] UDP listener up self=enode://fca f3dba80b006013f4b1abca6916ef81d71b00e0821bd9404d9f106ebed98c14d59aa2979caeb232f 451e0bf13949d742424cc618ac282025e6eec3ac7badc6@[::]:30303 INFO [04-07|19:16:57] RLPx listener up self=enode://fca f3dba80b006013f4b1abca6916ef81d71b00e0821bd9404d9f106ebed98c14d59aa2979caeb232f 451e0bf13949d742424cc618ac282025e6eec3ac7badc6@[::]:30303

INFO [04-07|19:16:57] HTTP endpoint closed: http://127.0.0.1:8545 INFO [04-07|19:16:57] IPC endpoint closed: \.\pipe\gwtc.ipc INFO [04-07|19:16:57] Blockchain manager stopped INFO [04-07|19:16:57] Stopping Ethereum protocol INFO [04-07|19:16:57] Ethereum protocol stopped INFO [04-07|19:16:57] Transaction pool stopped

Anyone got an idea what happened? The WTC Wallet is not open.

Community Details

1.2k

Subscribers

7

Online

Waltonchain mining information repository and help

Create Post
r/WaltonchainMining Rules
1.
Be nice
2.
No price or market discussion
3.
No misleading titles
4.
Search the WIKI before posting
5.
No brigading
6.
No peddling mining pools
7.
No peddling hacked executables
Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.