create account

Make Your Steem Server Last Longer With Memory Compression by deltik

View this thread on: hive.blogpeakd.comecency.com
· @deltik · (edited)
$157.39
Make Your Steem Server Last Longer With Memory Compression
On 13 January 2018, the RPC node at `steemd.privex.io` went down because the Steem daemon (`steemd`) exhausted the 256GB of RAM on that node.  The Graphene in-memory database just kept getting bigger.

To get their RPC node back online, @someguy123 wanted to upgrade to a server with 512GB of RAM, but [their provider told them that it would take **10 business days**](https://steemit.chat/channel/witness?msg=m5D6Mh5JLDXigrEo8), and that's not including the time it would take to get the node set up!

My team (@dutch and I) suggested a fix to @someguy123: RAM compression with [zram](https://www.kernel.org/doc/Documentation/blockdev/zram.txt).

The fix worked, and despite running out of 256GB of RAM, the @privex RPC node came back up after [**less than 34 hours of downtime**](https://steemit.chat/channel/witness?msg=nRk3tFGzMtJpHcYP5).

Unfortunately, the only way to prevent this ever-inflating memory usage from becoming unmaintainable would be to overhaul how Graphene accesses what it needs from the blockchain.  There are already mitigations in place, like [the `LOW_MEMORY_NODE` compile-time option](https://github.com/steemit/steem/blob/5dfcfe93bcdb315c1fe0b00a8bf0c1e7f456c885/doc/building.md) or disabling unneeded plugins, but as the blockchain grows, so will memory usage.

I've got some good news, though:

* zram will delay the inevitable.  Our testing so far has shown that the life of a Steem witness node with a fixed amount of RAM can be extended by months (or even longer; it's hard to gauge for sure) with zram.
* It's easy to set up zram.
* If you're running Ubuntu 14.04 or newer, it's even easier to set up zram.
* If you're on Debian 7 or newer, you can also use the Ubuntu instructions with some extra steps.

We are now recommending the use of zram as a new best practice for all new and existing Steem nodes.

---

## Witness @gridcoin.science Uses zram

![](https://i.imgur.com/lvS7OX9.jpg)

Our witness @gridcoin.science, intentionally configured with just 16GiB of RAM, is currently making use of zram:

<center>[![https://i.imgur.com/DgzzAPs.png](https://i.imgur.com/DgzzAPs.png)]((https://i.imgur.com/DgzzAPs.png))</center>

Above, you can see that the `steemd` memory-mapped file is 21GiB large, but zram has compressed some of it:

<center>[![https://i.imgur.com/OR8iNrD.png](https://i.imgur.com/OR8iNrD.png)]((https://i.imgur.com/OR8iNrD.png))</center>

Thanks to zram, we're able to run a witness below the commonly accepted minimum RAM requirement.

When either the CPU struggles to keep up with zram swapping or when zram swap space runs low, we plan to fail over to the backup witness briefly, increase the RAM of the primary witness, catch up the blockchain, and resume operations from the primary witness.

Currently, there's barely any CPU load, so we expect that zram will last us a while.

---

## Steem Daemon with zram on Ubuntu or Debian

Ubuntu makes it dead simple to set up zram.

> **Debian 7 only:** You need to enable the backports repository in `/etc/apt/sources.list`:
> 
>     deb http://ftp.debian.org/debian wheezy-backports main

> **All Debian releases:** Manually download and install the [`zram-config` package](https://packages.ubuntu.com/search?keywords=zram-config) version 0.5 from Ubuntu:
> 
>     sudo apt update
>     wget 'http://archive.ubuntu.com/ubuntu/pool/universe/z/zram-config/zram-config_0.5_all.deb'
>     sudo dpkg -i zram-config_0.5_all.deb
>     sudo apt install -f
>     rm -v zram-config_0.5_all.deb
> 
> Then go directly to step #3.

1. If you haven't already, enable the "universe" repository:

       sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

2. Install the `zram-config` package:

       sudo apt update
       sudo apt install zram-config
       
3. By default, `zram-config` sets up zram swap half the size of your RAM, but our testing revealed that the `steemd` in-memory database has a zram lzo compression ratio of greater than 2Γ—, which means you can comfortably double the default zram swap size.

   Set the calculated zram swap capacity to be equal to that of RAM:

   **Ubuntu 14.04 only:**
   
       sudo sed -i 's|/ 2 /|/ 1 /|g' /etc/init/zram-config.conf
   
   **zram-config 0.5 (all other releases as of September 2018):**
       
       sudo sed -i 's|/ 2 /|/ 1 /|g' /usr/bin/init-zram-swapping

4. Start up `zram-config`:

   **Ubuntu 16.04 and newer or Debian 8 and newer**:
   
       sudo systemctl restart zram-config

   **All releases:**

       sudo service zram-config restart

   You should now see zram swap:
   
       $ swapon --show
       NAME       TYPE      SIZE USED PRIO
       /dev/zram0 partition   2G   0B    5
       /dev/zram1 partition   2G   0B    5
       /dev/zram2 partition   2G   0B    5
       /dev/zram3 partition   2G   0B    5
       /dev/zram4 partition   2G   0B    5
       /dev/zram5 partition   2G   0B    5
       /dev/zram6 partition   2G   0B    5
       /dev/zram7 partition   2G   0B    5

       $ zramctl
       NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
       /dev/zram0 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram1 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram2 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram3 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram4 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram5 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram6 lzo             2G   4K   81B   12K       1 [SWAP]
       /dev/zram7 lzo             2G   4K   81B   12K       1 [SWAP]

5. _Optional, but highly recommended:_

   If you do not already have regular disk swap (either a swap file or a swap partition), create one and set it to enable on boot:

   This sets up a 4GiB swap file (`bs=1M count=4096`):

       sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
       sudo mkswap /swapfile
       echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab
   
   Extra swap will keep `steemd` running longer, even if you run out of zram swap.  You are at elevated risk of missing blocks when using disk swap because disk swap is much slower than zram swap.

6. _If you are not already storing the `steemd` memory-mapped file in a tmpfs (ramdisk) mount:_

   In `witness_node_data_dir/config.ini`, set `shared-file-dir` to a tmpfs mount (`/dev/shm` by default):

       shared-file-dir = /dev/shm

7. In the same `config.ini`, set `shared-file-size` to something sane.  In January 2018, the default for witnesses is `54G` (54GiB).  Anything below `22G` (22GiB) in January 2018 will fail for witnesses because the `steemd` in-memory database is about to reach that size.

   We suggest that you use double your RAM size plus however much disk swap you have minus 1GiB for other things that may be running in RAM.  If you have 16GiB of RAM and 4GiB of disk swap, set `shared-file-size = 35G` (16GiB Γ— 2 + 4GiB - 1GiB = 35GiB).

   Regardless of how big you set the file size, `steemd` will only use as much space as it needs.

8. Remount the `/dev/shm` tmpfs so that it can hold the entire `shared_memory.bin`.

   If your `shared-file-size = 35G`, consider setting the tmpfs file size to `36352M` ((35GiB + 0.5GiB buffer) * 1024 = 36352MiB):

       mount -o remount,size=36352M /dev/shm

9. If you have the files `shared_memory.bin` and `shared_memory.meta` already, copy them over to `/dev/shm` so that you don't have to replay the blockchain.

10. Start the Steem daemon:
    * `steemd` if you copied the files in the previous step
    * `steemd --replay-blockchain` if you need to replay the blockchain

## Steem Daemon with zram on Other Linux Distros

These instructions should be pretty portable across Linux distros as long as you install the `util-linux` package because it contains `/sbin/zramctl`.

* Debian/Ubuntu: `sudo apt install util-linux`
* Fedora: `sudo dnf install util-linux`
* RHEL/CentOS: `sudo yum install util-linux`
* Arch Linux: `sudo pacman -S util-linux`
* Gentoo: `sudo emerge util-linux`

1. If `zram` doesn't show up in `lsmod | grep zram`, run `sudo modprobe zram`.
   
   If you get a message that starts with `modprobe: FATAL: Module zram not found`, then you'll need to boot up with a kernel that has `zram` (standard with Linux 3.14 and newer).
2. Run `zramctl -f` to confirm that `/dev/zram0` is the first zram device available.
   
   If it's not `/dev/zram0`, that means you already started up zram somewhere else.  This guide recommends that zram be used exclusively for `steemd`'s memory-mapped file and assumes that `/dev/zram0` is the device you choose to use.
3. Determine how much space to allocate to the zram device.  Just use however much RAM you have:

       $ totalmem=$(LC_ALL=C free -b | grep -e "^Mem:" | sed -e 's/^Mem: *//' -e 's/  *.*//')
       $ echo "$totalmem"
       16742518784

4. Create a zram device with the size you determined in the previous step:

       $ sudo zramctl -f -s "$totalmem"
       /dev/zram0

5. Format the new zram device as swap:

       $ sudo mkswap /dev/zram0
       Setting up swapspace version 1, size = 15.6 GiB (16742514688 bytes)
       no label, UUID=632f5bc3-d5cf-4983-a5ba-bcbcfe9dd238

6. Mount the new swap device:

       $ sudo swapon /dev/zram0

7. Go to step #5 of the Ubuntu/Debian instructions above.

---

## Conclusion

I want to contribute to alleviating the operational growing pains of the Steemit platform.  Growing RAM usage, which increases costs of running Steem nodes, continues to be a nagging problem.  Collectively, that's a lot of RAM.  I hope this zram tutorial helps to squeeze out more value from the hardware available while being transparent to the software.

Perhaps if using zram becomes standard operating practice, we can have more reliable witnesses to support the long-term endurance of Steem (and by extension, Graphene).

Reducing RAM usage isn't all, though.  The witness @gridcoin.science is at the forefront of all the improvements I have worked on for witness operations.  For an overview of what @dutch and I have already done differently with @gridcoin.science, see [our announcement post](https://steemit.com/witness-category/@dutch/announcing-the-gridcoin-science-witness-stem-on-steem).

To support this witness, visit https://steemit.com/~witnesses and add **gridcoin.science** to the box at the bottom of the page, click vote, and authorize using your Active Key.

<center>![](https://steemitimages.com/DQmcdJwtxDGhAPeB2oGn2F8K4nQKaogVpQfd4oXoQDLn9uZ/image.png)</center>

We want to continue innovating and sharing our findings.  Please let me or @dutch know if this tutorial was helpful and what other topics you'd like us to explore.
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authordeltik
permlinkmake-your-steem-server-last-longer-with-memory-compression
categorywitness-category
json_metadata{"format":"markdown","links":["https://steemit.chat/channel/witness?msg=m5D6Mh5JLDXigrEo8","https://www.kernel.org/doc/Documentation/blockdev/zram.txt","https://steemit.chat/channel/witness?msg=nRk3tFGzMtJpHcYP5","https://github.com/steemit/steem/blob/5dfcfe93bcdb315c1fe0b00a8bf0c1e7f456c885/doc/building.md","(https://i.imgur.com/DgzzAPs.png)","(https://i.imgur.com/OR8iNrD.png)","https://packages.ubuntu.com/search?keywords=zram-config","https://steemit.com/witness-category/@dutch/announcing-the-gridcoin-science-witness-stem-on-steem","https://steemit.com/~witnesses"],"app":"steemit/0.1","tags":["witness-category","steemdev","witness","steem","blockchain"],"users":["someguy123","dutch","privex","gridcoin.science"],"image":["https://i.imgur.com/lvS7OX9.jpg","https://i.imgur.com/DgzzAPs.png","https://i.imgur.com/OR8iNrD.png","https://steemitimages.com/DQmcdJwtxDGhAPeB2oGn2F8K4nQKaogVpQfd4oXoQDLn9uZ/image.png"]}
created2018-01-16 09:56:42
last_update2019-08-20 01:51:27
depth0
children27
last_payout2018-01-23 09:56:42
cashout_time1969-12-31 23:59:59
total_payout_value138.078 HBD
curator_payout_value19.309 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10,747
author_reputation387,365,520,609
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,904,551
net_rshares16,698,867,111,536
author_curate_reward""
vote details (47)
@bitgeek ·
comment
Congratulations @deltik, this post is the eighth most rewarded post (based on pending payouts) in the last 12 hours written by a Dust account holder (accounts that hold between 0 and 0.01 Mega Vests). The total number of posts by Dust account holders during this period was 11547 and the total pending payments to posts in this category was $4033.65. To see the full list of highest paid posts across all accounts categories, [click here](www.steemit.com/steemit/@bitgeek/payout-stats-report-for-16th-january-2018--part-i). 

If you do not wish to receive these messages in future, please reply stop to this comment.
properties (22)
authorbitgeek
permlinkre-make-your-steem-server-last-longer-with-memory-compression-20180116t194745
categorywitness-category
json_metadata""
created2018-01-16 19:47:45
last_update2018-01-16 19:47:45
depth1
children0
last_payout2018-01-23 19:47:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length617
author_reputation13,049,044,453,787
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,013,124
net_rshares0
@blervin ·
Seriously awesome work on this post, thanks for putting it together. This inspired me to play around with zram and I had a LOT of trouble so I wanted to share my solution in case anyone else has issues.

It installed without issue on Ubuntu 16.04 but simply wouldn't start, responding with the less than helpful `zram-config.service: Failed with result 'exit-code'.`

To spare anyone the literal hours of troubleshooting I spent on this, the solution is pretty simple:

`apt-get -y install linux-image-generic`

Run this first and then follow this post from the top.
πŸ‘  
properties (23)
authorblervin
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180203t053005107z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-02-03 05:30:06
last_update2018-02-03 05:30:06
depth1
children2
last_payout2018-02-10 05:30:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length566
author_reputation3,496,734,580,041
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,566,155
net_rshares884,019,622
author_curate_reward""
vote details (1)
@deltik ·
For anyone wondering why installing `linux-image-generic` works, it's the dependency on the "`linux-image-extra`" for your kernel version.  The `zram` driver is included in that dependency:

```
$ dpkg -L linux-image-extra-4.4.0-112-generic | grep zram
/lib/modules/4.4.0-112-generic/kernel/drivers/block/zram
/lib/modules/4.4.0-112-generic/kernel/drivers/block/zram/zram.ko
```

Without the package, the necessary driver might not be installed.
properties (22)
authordeltik
permlinkre-blervin-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180205t124715658z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-02-05 12:47:15
last_update2018-02-05 12:47:15
depth2
children1
last_payout2018-02-12 12:47:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length445
author_reputation387,365,520,609
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id35,138,634
net_rshares0
@blervin ·
Yeah, I read that `It is a module of the mainline Linux kernel since 3.14` and so I checked:
```
$ uname -r
4.4.0-112-generic
```
And then I scratched my head for a bit until I realized it's not part of the base kernel package.
properties (22)
authorblervin
permlinkre-deltik-re-blervin-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180205t134547057z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-02-05 13:45:45
last_update2018-02-05 13:45:45
depth3
children0
last_payout2018-02-12 13:45:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length227
author_reputation3,496,734,580,041
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id35,150,425
net_rshares0
@blockbrothers ·
Thanks for the detailed explanation. Will definately try this out to check the pros/cons of such a setup.
properties (22)
authorblockbrothers
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t155503408z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-16 15:55:03
last_update2018-01-16 15:55:03
depth1
children0
last_payout2018-01-23 15:55:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length105
author_reputation31,782,529,019,015
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,970,652
net_rshares0
@bobinson ·
hey - I think there is a small mistake in line where swapfile is added to /etc/fstab

``echo "/swapfile swap swap defaults 0 0" | sudo tee /etc/fstab``

This will over-write the existing one. please check
πŸ‘  
properties (23)
authorbobinson
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180211t022935054z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-02-11 02:29:36
last_update2018-02-11 02:29:36
depth1
children3
last_payout2018-02-18 02:29:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length204
author_reputation55,343,141,313,811
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,555,622
net_rshares885,983,948
author_curate_reward""
vote details (1)
@deltik ·
Yes, that is a mistake.  This is the correct command:

    echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab

Unfortunately, I can no longer edit the article, so hopefully readers see this comment thread before it's too late!
πŸ‘  
properties (23)
authordeltik
permlinkre-bobinson-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180216t174148076z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-02-16 17:41:48
last_update2018-02-16 17:41:48
depth2
children2
last_payout2018-02-23 17:41:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length240
author_reputation387,365,520,609
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id38,056,698
net_rshares953,896,197
author_curate_reward""
vote details (1)
@isnochys ·
you could edit it now;)
properties (22)
authorisnochys
permlinkre-deltik-re-bobinson-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20190212t141008119z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2019-02-12 14:10:09
last_update2019-02-12 14:10:09
depth3
children1
last_payout2019-02-19 14:10:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length23
author_reputation47,865,164,835,204
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,769,533
net_rshares0
@cryptohazard ·
wow! I will give a try to run a seed node on a 16GB RAM machine. . This is very cool.
properties (22)
authorcryptohazard
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180124t095106180z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-24 09:51:06
last_update2018-01-24 09:51:06
depth1
children0
last_payout2018-01-31 09:51:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length85
author_reputation17,111,780,434,071
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,880,830
net_rshares0
@diggndeeper.com · (edited)
$1.77
I have been looking around. Is there a wiki or anything with this kind of information being curated? I feel like I'm missing something obvious, but I'm having a hard time finding consolidated information on running witness nodes.
πŸ‘  
properties (23)
authordiggndeeper.com
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t165925991z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-22 16:59:24
last_update2018-01-22 17:01:03
depth1
children2
last_payout2018-01-29 16:59:24
cashout_time1969-12-31 23:59:59
total_payout_value1.768 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length229
author_reputation51,561,042,347,297
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,428,881
net_rshares157,234,195,982
author_curate_reward""
vote details (1)
@deltik ·
$5.96
Using zram is new advice pioneered on the witness @gridcoin.science.  We hope this article is the first step towards widespread acceptance of memory compression as standard operating practice, as the benefits seem to outweigh the drawbacks, if there are even any drawbacks at all!

As far as consolidated information, there's no authoritative guide nor a "right way" to run a witness.  The best sources of basic witness operations have been guides that get written and rewritten periodically.

We built @gridcoin.science from gleaning information from all over the place, but there are some good guides out there still mostly relevant today like [@jerrybanfield's](https://steemit.com/witness/@jerrybanfield/get-a-steem-witness-seed-online-today-with-these-ubuntu-linux-commands), [@krnel's](https://steemit.com/witness-category/@krnel/complete-witness-installation-guide), and [@klye's](https://steemit.com/witness-category/@klye/the-complete-noob-guide-to-steem-witness-setup).
πŸ‘  
properties (23)
authordeltik
permlinkre-diggndeepercom-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t225120762z
categorywitness-category
json_metadata{"tags":["witness-category"],"users":["gridcoin.science"],"links":["https://steemit.com/witness/@jerrybanfield/get-a-steem-witness-seed-online-today-with-these-ubuntu-linux-commands","https://steemit.com/witness-category/@krnel/complete-witness-installation-guide","https://steemit.com/witness-category/@klye/the-complete-noob-guide-to-steem-witness-setup"],"app":"steemit/0.1"}
created2018-01-22 22:51:21
last_update2018-01-22 22:51:21
depth2
children1
last_payout2018-01-29 22:51:21
cashout_time1969-12-31 23:59:59
total_payout_value4.470 HBD
curator_payout_value1.490 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length979
author_reputation387,365,520,609
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,496,817
net_rshares533,043,167,999
author_curate_reward""
vote details (1)
@diggndeeper.com ·
I really appreciate that. Hopefully, we will see that come about. I would be happy to help, if there was a good spot for one.
properties (22)
authordiggndeeper.com
permlinkre-deltik-re-diggndeepercom-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t233426871z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-22 23:34:27
last_update2018-01-22 23:34:27
depth3
children0
last_payout2018-01-29 23:34:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length125
author_reputation51,561,042,347,297
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,503,970
net_rshares0
@doctor.steemit ·
This is the best post in Steemit..πŸ”₯πŸ”₯πŸ”₯
πŸ‘Ž  
properties (23)
authordoctor.steemit
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t104800854z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-16 10:48:03
last_update2018-01-16 10:48:03
depth1
children1
last_payout2018-01-23 10:48:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length37
author_reputation-51,580,064,616
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,912,432
net_rshares-6,623,813,553
author_curate_reward""
vote details (1)
@dutch · (edited)
It is. Unfortunate that you did not actually read it but just spammed here.
πŸ‘  
properties (23)
authordutch
permlinkre-doctorsteemit-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t125611662z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-16 12:56:12
last_update2018-01-16 12:56:45
depth2
children0
last_payout2018-01-23 12:56:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length75
author_reputation11,905,004,165,125
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,933,793
net_rshares0
author_curate_reward""
vote details (1)
@justyy ·
$0.03
Thank you for this. Do I need to take down the witness (stop the docker) when I set up the zram?
πŸ‘  , , , , ,
properties (23)
authorjustyy
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180612t155851978z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-06-12 15:58:51
last_update2018-06-12 15:58:51
depth1
children1
last_payout2018-06-19 15:58:51
cashout_time1969-12-31 23:59:59
total_payout_value0.032 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length96
author_reputation280,616,224,641,976
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id60,463,651
net_rshares13,094,699,498
author_curate_reward""
vote details (6)
@quochuy ·
No. But if you are already using disk swap and some data is already on disk swap then you might want to setup zram and replay to get  less data on disk
properties (22)
authorquochuy
permlinkre-justyy-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180613t115951045z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-06-13 11:59:51
last_update2018-06-13 11:59:51
depth2
children0
last_payout2018-06-20 11:59:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length151
author_reputation758,372,221,814,367
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id60,574,816
net_rshares0
@libertyranger ·
I love seeing this.  I am building a backup witnes this week and a seed node and will employ this on both servers.  By the end of the week I will have a live witness, backup witness and a seed.

Having the backup witness is only made possible due to your ZRAM build.

Thank you very much.
properties (22)
authorlibertyranger
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t165525413z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-22 16:55:21
last_update2018-01-22 16:55:21
depth1
children1
last_payout2018-01-29 16:55:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length288
author_reputation7,267,049,896,950
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,428,117
net_rshares0
@deltik ·
You're welcome, and that's great!  There is a real cost saving to getting the most out of your hardware for the RAM-hungry software that is `steemd`.
πŸ‘  
properties (23)
authordeltik
permlinkre-libertyranger-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t222344259z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-22 22:23:45
last_update2018-01-22 22:23:45
depth2
children0
last_payout2018-01-29 22:23:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length149
author_reputation387,365,520,609
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,492,161
net_rshares1,316,045,496
author_curate_reward""
vote details (1)
@scalextrix ·
$0.17
I use zram on my Gridcoin and SolarCoin fullnodes, they run on Raspberry Pis, so no-where near the RAM requirements of Graphene, but its the same fundamental problem.
πŸ‘  , , ,
properties (23)
authorscalextrix
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t105326142z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-16 10:53:30
last_update2018-01-16 10:53:30
depth1
children2
last_payout2018-01-23 10:53:30
cashout_time1969-12-31 23:59:59
total_payout_value0.136 HBD
curator_payout_value0.038 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length166
author_reputation17,941,237,668,958
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,913,188
net_rshares18,822,584,830
author_curate_reward""
vote details (4)
@ravonn ·
$0.16
I was just thinking we could do the same for Gridcoin, especially on the Pis which tend to struggle to keep the wallet running.
πŸ‘  , ,
properties (23)
authorravonn
permlinkre-scalextrix-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t122622003z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-16 12:26:21
last_update2018-01-16 12:26:21
depth2
children1
last_payout2018-01-23 12:26:21
cashout_time1969-12-31 23:59:59
total_payout_value0.131 HBD
curator_payout_value0.029 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length127
author_reputation1,551,172,951,761
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,928,283
net_rshares17,399,021,399
author_curate_reward""
vote details (3)
@scalextrix · (edited)
If you run headless then its not really an issue so far, but I imagine trying to use Qt on a Pi you would be running up against the RAM limit.

Of course the other option is to buy an SBC with more RAM, models are coming out with 4GB now...
πŸ‘  
properties (23)
authorscalextrix
permlinkre-ravonn-re-scalextrix-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t144506229z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-01-16 14:45:06
last_update2018-01-16 14:46:06
depth3
children0
last_payout2018-01-23 14:45:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length240
author_reputation17,941,237,668,958
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,955,756
net_rshares2,180,046,293
author_curate_reward""
vote details (1)
@steem-network ·
<html>
<p>Congratulations <a href="/@deltik" target="_blank">@deltik</a>, you have decided to take the next big step with your first post! The Steem Network Team wishes you a great time among this awesome community.</p>
<hr>
<div class="pull-left"><img src="https://steemitimages.com/DQmaAdLUJ3yaSkmcmWECWyPGPWcjfbCoZ8Tu4RM6H4DbjCi/steem-network-thumbs-up.gif" alt="Thumbs up for Steem NetworkΒ΄s strategy" title="I suggest Steem NetworkΒ΄s strategy" width="320" height="222"></div>
<h1>The proven road to boost your personal success in this amazing Steem Network</h1>
<p>Do you already know that awesome content will get great profits by following these <a href="/steem-network/@steem-network/spread-your-posts-through-this-proven-strategy-and-get-great-profits-in-return--for-posts-created-at-2018-01-16" target="_blank" alt="Steem Network" title="Follow Steem NetworkΒ΄s suggestions to boost your success">simple steps</a>, that have been worked out by experts?</p>
</html>
properties (22)
authorsteem-network
permlinkre-make-your-steem-server-last-longer-with-memory-compression-20180116t095808
categorywitness-category
json_metadata"{"tags": ["steem-network"], "users": ["steem-network", "deltik"], "image": ["https://steemitimages.com/DQmaAdLUJ3yaSkmcmWECWyPGPWcjfbCoZ8Tu4RM6H4DbjCi/steem-network-thumbs-up.gif"], "links": ["/@deltik", "/steem-network/@steem-network/spread-your-posts-through-this-proven-strategy-and-get-great-profits-in-return--for-posts-created-at-2018-01-16"], "community": "steem-network", "app": "steem-network/1.0.1", "format": "html"}"
created2018-01-16 09:58:15
last_update2018-01-16 09:58:15
depth1
children0
last_payout2018-01-23 09:58:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length973
author_reputation-788,969,433,247
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,904,770
net_rshares0
@steemcros ·
Thanks for shearing news

Thanks for me informasion ..

Very nice post
properties (22)
authorsteemcros
permlinkre-deltik-2018116t176755z
categorywitness-category
json_metadata{"tags":["witness-category","steemdev","witness","steem","blockchain"],"app":"esteem/1.5.0","format":"markdown+html","community":"esteem"}
created2018-01-16 10:06:09
last_update2018-01-16 10:06:09
depth1
children0
last_payout2018-01-23 10:06:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length70
author_reputation-776,623,985,510
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,906,001
net_rshares0
@xsorbik ·
Very refreshing and helpful post! Thank you!!!
properties (22)
authorxsorbik
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180512t143822829z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit/0.1"}
created2018-05-12 14:38:24
last_update2018-05-12 14:38:24
depth1
children0
last_payout2018-05-19 14:38:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length46
author_reputation13,217,424,469
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,310,638
net_rshares0
@yehey · (edited)
$0.23
Deltik/Dutch,
This is great news especially for those Witnesses under Top 50 including myself to cut the operating costs and continue to serve the community. I will definitely will try this approach and report back.

Where you been for the last 6 months? I've spent too much money on servers :)

Cheers mate,
@yehey
πŸ‘  ,
properties (23)
authoryehey
permlinkre-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t145904595z
categorywitness-category
json_metadata{"tags":["witness-category"],"users":["yehey"],"app":"steemit/0.1"}
created2018-01-16 14:58:57
last_update2018-01-16 15:05:00
depth1
children1
last_payout2018-01-23 14:58:57
cashout_time1969-12-31 23:59:59
total_payout_value0.226 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length315
author_reputation22,184,787,552,504
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,958,676
net_rshares24,524,218,559
author_curate_reward""
vote details (2)
@dutch · (edited)
Hey @yehey!

This idea was actually @deltik's genius coming through. Hope it works out for you, let us know!

Dutch
properties (22)
authordutch
permlinkre-yehey-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t150405606z
categorywitness-category
json_metadata{"tags":["witness-category"],"users":["yehey","deltik"],"app":"steemit/0.1"}
created2018-01-16 15:04:06
last_update2018-01-16 15:04:48
depth2
children0
last_payout2018-01-23 15:04:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length115
author_reputation11,905,004,165,125
root_title"Make Your Steem Server Last Longer With Memory Compression"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,959,801
net_rshares0