Witness Updated to 0.19.6 and Server using ZRAM! by justyy

View this thread on steempeak.com
· @justyy · (edited)
$5.15
Witness Updated to 0.19.6 and Server using ZRAM!
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](https://helloacm.com/steem-blockchain-incident-of-negative-vesting-and-witness-node-updated-to-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](https://ipfs.busy.org/ipfs/QmbTvHLt7jhbsh7WqTaignyAsgEFg1ANgNux8dvKyzQC12)

```
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).

![](https://cdn.steemitimages.com/DQmX483Qw8JXdtM6JLafWJKy5qSt1MxTd1PX6yH9ZJ11gLb/image.png)

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](https://helloacm.com/steem-witness-replay-time-takes-longer-and-longer/) 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)

![](https://cdn.steemitimages.com/DQmakFXb9afJdUGG8QkRnkyLvd1iuBD7uJfoL9xaNg8HcUs/image.png)
*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/](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](https://steemit.com/witness-category/@justyy/justyy-just-another-witness) by 
1. voting me [here](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy), or
2. voting me as [a witness proxy](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1) - let @justyy represent you.

Thank you! **Some of My Contributions: [SteemIt Tutorials, Robots, Tools and APIs](https://helloacm.com/tools/steemit/)**
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 45 others
properties (23)
post_id62,300,472
authorjustyy
permlinkwitness-updated-to-0-19-6-and-server-using-zram
categorywitness-category
json_metadata{"image":["https:\/\/ipfs.busy.org\/ipfs\/QmbTvHLt7jhbsh7WqTaignyAsgEFg1ANgNux8dvKyzQC12"],"community":"busy","app":"steemit\/0.1","tags":["witness-category","busy","witness-update","zram","witness"],"links":["https:\/\/helloacm.com\/steem-blockchain-incident-of-negative-vesting-and-witness-node-updated-to-0-19-5\/","https:\/\/helloacm.com\/steem-witness-replay-time-takes-longer-and-longer\/","https:\/\/helloacm.com\/steem-witness-updated-to-0-19-6-and-server-using-zram\/","https:\/\/steemit.com\/witness-category\/@justyy\/justyy-just-another-witness","https:\/\/steemconnect.com\/sign\/account_witness_vote?approve=1&witness=justyy","https:\/\/v2.steemconnect.com\/sign\/account-witness-proxy?proxy=justyy&approve=1","https:\/\/helloacm.com\/tools\/steemit\/"],"users":["justyy"],"format":"markdown"}
created2018-09-12 23:24:12
last_update2018-09-12 23:58:51
depth0
children4
net_rshares4,903,056,371,643
last_payout2018-09-19 23:24:12
cashout_time1969-12-31 23:59:59
total_payout_value4.300 SBD
curator_payout_value0.845 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,742
author_reputation1,990,164,104,714,661
root_title"Witness Updated to 0.19.6 and Server using ZRAM!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (109)
@ericet ·
ζ”―ζŒδΈ€δΈ‹θ‘Œι•Ώ

Posted using [Partiko iOS](https://steemit.com/@partiko-ios)
properties (22)
post_id62,300,532
authorericet
permlinkericet-re-justyy-witness-updated-to-0-19-6-and-server-using-zram-20180912t232525715z
categorywitness-category
json_metadata{"app":"partiko"}
created2018-09-12 23:25:27
last_update2018-09-12 23:25:27
depth1
children1
net_rshares0
last_payout2018-09-19 23:25:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length68
author_reputation358,463,090,245,284
root_title"Witness Updated to 0.19.6 and Server using ZRAM!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@justyy ·
$0.02
properties (23)
post_id62,300,809
authorjustyy
permlinkre-ericet-ericet-re-justyy-witness-updated-to-0-19-6-and-server-using-zram-20180912t233136115z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit\/0.1"}
created2018-09-12 23:31:36
last_update2018-09-12 23:31:36
depth2
children0
net_rshares22,188,017,624
last_payout2018-09-19 23:31:36
cashout_time1969-12-31 23:59:59
total_payout_value0.022 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5
author_reputation1,990,164,104,714,661
root_title"Witness Updated to 0.19.6 and Server using ZRAM!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (9)
@steemitboard ·
Congratulations @justyy! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png)](http://steemitboard.com/@justyy) Award for the number of posts published

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07">SteemitBoard - Witness Update</a></td></tr></table>

> You can upvote this notification to help all Steemit users. Learn why [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
post_id62,309,136
authorsteemitboard
permlinksteemitboard-notify-justyy-20180913t020541000z
categorywitness-category
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2018-09-13 02:05:39
last_update2018-09-13 02:05:39
depth1
children0
net_rshares0
last_payout2018-09-20 02:05:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,029
author_reputation38,705,954,145,809
root_title"Witness Updated to 0.19.6 and Server using ZRAM!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### 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](https://discord.gg/KpBNYGz)**
properties (22)
post_id62,452,368
authorsteem-ua
permlinkre-witness-updated-to-0-19-6-and-server-using-zram-20180914t165932z
categorywitness-category
json_metadata{"app":"beem\/0.19.54"}
created2018-09-14 16:59:33
last_update2018-09-14 16:59:33
depth1
children0
net_rshares0
last_payout2018-09-21 16:59:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length689
author_reputation23,203,609,903,979
root_title"Witness Updated to 0.19.6 and Server using ZRAM!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000