Witness Updated to 0.19.6 and Server using ZRAM!

in #witness-category6 years ago (edited)

I set the SHM size to 48G on my witness server (with 50GB RAM) and the server stopped to produce blocks with the following message:

2736622ms th_a database.cpp:2596 show_free_memory ] Free memory is now 50M. Increase shared file size immediately

I had to stop the node, increase the shared file size, mounted more spaced to /dev/shm. Meanwhile, I thought it would be a good idea to upgrade node from 0.19.5 to 0.19.6 using command ./run.sh install.

Also, I enabled zram which is to compress the RAM using LZO compression algorithm.

image.png

du -h /dev/shm/shared_memory.bin
49G     /dev/shm/shared_memory.bin

and the uncompressed size - which is the SHM size is set to 96GB - usually this number is suggested by the following:

SIZE = 2 * RAM - SWAP

The ZRAM let your node last a bit longer with the limited RAM size - however at the cost of speed because it takes efforts for processors to zip and unzip the RAM on the fly i.e. it takes a bit longer this time (around 40 hours reindexing time).

For steem re-indexing, the time required can be shortened if the CPU frequency is higher. Anyway, the node has produced two blocks since last re-enabled - everything seems good so far!

Being a steem witness is not easy, it takes efforts to maintain your server regularly e.g. applying updates/hardforks - this requires that you monitor (that is your duty) the healthy of your witness node from time to time (I check that every day - every few hours when I am awake - on my phone)


The latency is good and the witness is running smoothly

// Reposted to: https://helloacm.com/steem-witness-updated-to-0-19-6-and-server-using-zram/

If you like what I am doing ...

Support me and my work as a witness - witness thread by

  1. voting me here, or
  2. voting me as a witness proxy - let @justyy represent you.

Thank you! Some of My Contributions: SteemIt Tutorials, Robots, Tools and APIs

Sort:  

支持一下行长

Posted using Partiko iOS

Congratulations @justyy! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of posts published

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard - Witness Update

You can upvote this notification to help all Steemit users. Learn why here!

Hi @justyy!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 5.036 which ranks you at #961 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 324 contributions, your post is ranked at #155.

Evaluation of your UA score:
  • You've built up a nice network.
  • The readers appreciate your great work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.32
TRX 0.12
JST 0.034
BTC 64647.93
ETH 3160.25
USDT 1.00
SBD 4.09