snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Bug] Low CPU utilization when running miner node

Open xbeastx opened this issue 3 years ago • 6 comments

🐛 Bug Report

Most time miner node is just in 'Syncing' or 'Peering' state. And some times it become 'Mining' but not so long. Just for a couple seconds.

Steps to Reproduce

Just compile latest testnet2 source

  1. run-miner.sh

Expected Behavior

Because Aleo is POSW most of the time it must mine new blocks and utilize 100% CPU

Your Environment

  • snarkOS Version 2.0.0
  • Rust Version 1.56.1
  • Computer OS Ubuntu 20.04

xbeastx avatar Nov 28 '21 23:11 xbeastx

I also encountered this difficulty. waiting for solve.

CodeGp2018 avatar Nov 29 '21 11:11 CodeGp2018

How many cores is your machine? 16-cores is the minimum requirement for testnet2.

howardwu avatar Nov 29 '21 12:11 howardwu

How many cores is your machine? 16-cores is the minimum requirement for testnet2.

Sure, I have server with 24 core/48 threads and it almost inactive... like 8 threads of 48 sometime is busy and even not always:

htop

xbeastx avatar Nov 29 '21 13:11 xbeastx

Same problem here; the miner uses only 1 CPU...

htop2

0xPNZ avatar Nov 30 '21 17:11 0xPNZ

I see this picture. Only One or two core is loaded about 50% of the time. Other 50% of the time is loaded all cores. The situation alternates every 5-10 seconds image image

alar0n avatar Dec 01 '21 09:12 alar0n

This should have improved with the recent changes, but there is probably still room for improvement here.

ljedrz avatar Dec 06 '21 08:12 ljedrz

Not applicable to testnet3.

ljedrz avatar Sep 02 '22 13:09 ljedrz