nano-node icon indicating copy to clipboard operation
nano-node copied to clipboard

Slow sync/High memory usage

Open longfellowone opened this issue 8 years ago • 4 comments

Pulled latest docker image from nanocurrency/node. I assume this is the new v10 node?

4GB ram node running at 90% RAM usage, 2x CPU peaking at 70% usage. Been almost 48 hours and sync still not complete

"count": "4973818", "unchecked": "1179423"

image

longfellowone avatar Feb 17 '18 16:02 longfellowone

Same issue here, but on win10 64 with HDD

Sovxx avatar Feb 17 '18 18:02 Sovxx

Here is my node resource usage here - I updated to 10.0 on Sat 10AM in the timezone the graph is in.

Resource graph

terah avatar Feb 18 '18 03:02 terah

I think it is possible to cut down on the memory usage during bootstrap by flushing the unchecked cache more frequently.

I moved the flush code into the inner loop of rai::bootstrap_attempt::run, flushing every 1000 loops or so, and was able to get through the bootstrap with less than 1G of memory.

procrasti avatar Mar 10 '18 12:03 procrasti

Most of these issues will be resolved by lazy bootstrapping (#995), which will largely negate the need for an storing blocks that have not been validated on disk.

There are further improvements for network I/O, disk I/O, CPU utilization, and RAM utilization.

I am going to close this ticket so we can track the individual improvements directly. Please let me know if you have any additional questions.

rkeene avatar Aug 23 '18 18:08 rkeene