-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neucoind uses high amount of CPU power #30
Comments
Could you provide more metrics to investigate that bug (memory usage, cpu usage, OS, etc) ? Also just as a note, neucoind run on RPi2 with more than what you describe and even if it's a bit laggy, it doesn't consume that much. |
Sylvain Laurent writes:
The neucoind process is now running for about 1 month (real time). $ uname -a $ free $ neucoind getinfo top says: $ ps -A | grep neucoind; sleep 60; ps -A | grep neucoind so it is taking 19 seconds CPU time during 60 seconds of real time.
Yes, when I started neucoind a month ago, after it had downloaded the Obvious thing to try would be stopping and starting neucoind again, but If you want to support my work: |
Since I didn't get a reply with further instructions and the CPU consumption rose even further, I stopped and started neucoind again. Now it is at 1 second CPU time per 60 seconds of real time. I guess this is ok. I will keep an eye on CPU usage. Probably it will start going up again in a few days. As there are already reports about missbehaving foundation wallets on the forum for a while, I think you should look into this closely. I wouldn't be surprised if these issues are related. |
Sorry I guess I missed your previous answer, a high cpu usage at start is due to the load and check of data on disk. What forum are you talking ? |
Sylvain Laurent writes:
Yes, but this problem report is about the load being high after neucoind
forum.neucoin.org HTE, |
This was not due to that, the most relevant information would be the debug.log if you run with the -debug option to investigate a posteriori. I'm closing this issue but you can still reply to it. |
Why are you closing this issue when the problem I reported hasn't been dealt with in any way? Is there anything particular about the debug.log, that I should provide. I have the feeling we are misunderstandig each other. Please reread the full issue. Thanks. |
I don't see anything else beside staking that could take a lot of CPU power, were you downloading the blockchain from the beginning when the problem happened ? If so your node might try to generate a lot of valid PoS block but reject them right after downloading more of the blockchain. The debug.log would show that behavior. Could you try the "setstaking" RPC to turn on or off the staking thread to check if it lower your cpu usage (only on the git version for now). |
So after I restarted neucoind 3 days ago, it behaved well for two days, but now its consuming CPU again:
So my fist guess about a data structure becoming inefficient after a while The debug.log got truncated at restarting, and now is at about 8MB.
Should I send you the debug.log somewhere? Is there something particular I can try to compile the git version if you think it helps debugging this. I'll leave that busy process running for now, in case you have any idea BTW what's the bounty for debugging such issues and where to claim it? |
I haven't had the time to profil it yet, my guess lie to the use on an un-optimised version of scrypt (instead of a version with SSE2 for example). As the issue is not related to profiling I would redirect you to Google but using DEBUG=1 when using make add debug symbol to the binary, I would also suggest the use of either gprof (don't forget to add -pg if you use it) or oprofile. We review each trimester to see if it fit our criteria for bounty and contact those eligible afterward. The code foundation is up and running :). |
I am seeing the same high CPU usage with neucoin-qt on Ubuntu, installed from a binary (neucoin-qt_1.1.1_debian_amd64.deb). I noticed my computer was a little loud and found that the neucoin-qt process was using ~35%CPU. I just now restarted neucoin-qt and it is down around 1% (again). |
I have neucoind running on a quite fast machine (64 bit, 3.4GHz) and it is only following the blockchain and staking on two UTXOs. It consumes about 30% of CPU time for this! I don't know what's taking so much processing power, but this is not cheap and not environmentally friendly.
The text was updated successfully, but these errors were encountered: