Improve Steemd Blockchain Sync. Is it possible to improve CPU performance?

in witness •  7 years ago 

I changed my witness server for several days and I noticed it is taking a long time to remake a blockchain synchronization.

As you can see in the image below, 8 hours have passed and it's not full synched.

Immagine2.png

This is very strange becuse this my new server has more performance then the old one.

sync.png

what I think is: even the cpu are more then the old server (12 cores), have the worst characteristics.

WHY CPU AND NOT RAM?

At the first sync, even if you had downloaded the file before, steemd process use only ONE CORE and not so much RAM.

I verified it into 2 different servers:

  • Server one with 8 CPU
  • Server two with 12 CPU

SERVER 1

Immagine2.png

SERVER 2

server 2.png

So i can say the problem for the first Sync is the CPU.

My old server takes around 3 hours and my new one take around 8 hours.

what I thought was:

Do I really have to wait all this time?

And i studied the possibility to make the CPU AFFINITY into Ubuntu whit the program called TASKSET.
It permit you to choose the core to use for a specific application.

SO I TRIED TO DO IT WITH THE SYNTAX:

taskset -c 0,7 ./steemd --replay-blockchain
This was done on my old server with 8 CPU

tasklist.png

I HAVE TO SAY: The result was negative

tasklist 3.png

The same result without starting the taskset.....

So i wrote into steemit.chat to ask if steemd is a multicore app or if it it a single core application and i received the @someguy123 response.

someguy.png

AT THE END I HAVE TO SAY: THERE IS NO POSSIBILITY TO SYNC WITH MULTIPLE CORE IN ORDER TO GO FASTER

I hope in the next future this will be fixed because It's really annoying to wait so much time to sync.

IF YOU HAVE MORE INFO ABOUT IT PLEASE LET ME KNOW.


I have to remember you, I'm giving free votes to all my witness followers based on this schema:

1- until I get 20 I'll give an upvote equal to 100% to my followers
2- when i get 30 I'll give an upvote equal to 75% to my followers
3- when i get 40 I'll give an upvote equal to 50% to my followers
4- when i get 50 I'll give an upvote equal to 25% to my followers

THIS WILL BE DONE:

  • ONLY TO MY WITNESS FOLLOWERS
  • ONLY ON ONE DAILY POST FOR SINGLE USER

If you think what I'm doing is something you like, please UPVOTE ME AS WITNESS on this portal:

https://steemit.com/~witnesses

witness.png

Best Regards @yanosh01

steemit.png

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

This post has received gratitude of 4.60% from @appreciator courtesy of @yanosh01!

Where did you find an archive of the backed up blockchain? I tried to download it from one site I found in a tutorial,but the domain name had been sold so its no longer available for download.

Congratulations! this post got an upvote by @steemrepo and was manually picked by the curator @yanosh01 to be added on STEEM REPOSITORY, simply comment "YES" and we upload it on STEEM REPO Website.
Wants to know more about the Steem Repo project? Contact us on Discord

Congratulations! this post got an upvote by @steemrepo and was manually picked by the curator @yanosh01 to be added on STEEM REPOSITORY, simply comment "YES" and we upload it on STEEM REPO Website.
Wants to know more about the Steem Repo project? Contact us on Discord