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  Our witness @gridcoin.science, intentionally configured with just 16GiB of RAM, is currently making use of zram: <center>[]((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))</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></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.
author | deltik |
---|---|
permlink | make-your-steem-server-last-longer-with-memory-compression |
category | witness-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"]} |
created | 2018-01-16 09:56:42 |
last_update | 2019-08-20 01:51:27 |
depth | 0 |
children | 27 |
last_payout | 2018-01-23 09:56:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 138.078 HBD |
curator_payout_value | 19.309 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10,747 |
author_reputation | 387,365,520,609 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,904,551 |
net_rshares | 16,698,867,111,536 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ausbitbank | 0 | 2,077,303,817,919 | 25% | ||
vortac | 0 | 4,274,731,990,434 | 100% | ||
transisto | 0 | 9,113,042,108,814 | 100% | ||
sc-steemit | 0 | 97,800,133,700 | 100% | ||
moisesmcardona | 0 | 1,336,774,480 | 1% | ||
cryptohazard | 0 | 0 | 100% | ||
doitvoluntarily | 0 | 220,437,826,016 | 100% | ||
barton26 | 0 | 5,192,243,720 | 100% | ||
minersean | 0 | 661,512,369 | 100% | ||
ravonn | 0 | 6,758,993,422 | 100% | ||
personz | 0 | 31,612,344,549 | 100% | ||
diggndeeper.com | 0 | 532,997,274,516 | 100% | ||
libertyranger | 0 | 1,799,174,310 | 100% | ||
grider123 | 0 | 6,907,380,180 | 100% | ||
roomservice | 0 | 0 | 30% | ||
diogogomes | 0 | 342,622,566 | 100% | ||
yehey | 0 | 17,693,415,795 | 100% | ||
dutch | 0 | 68,102,238,375 | 100% | ||
nadieyja | 0 | 50,867,734 | 10% | ||
opc | 0 | 224,518,244 | 39% | ||
shedrack | 0 | 316,469,081 | 100% | ||
inquiringtimes | 0 | 228,824,190,106 | 100% | ||
dailygrcstats | 0 | 146,093,086 | 5% | ||
embalsespr | 0 | 53,747,871 | 5% | ||
trailhispano | 0 | 54,255,304 | 5% | ||
mystic-natura | 0 | 50,783,677 | 20% | ||
toggleton | 0 | 608,042,505 | 100% | ||
erfiguera | 0 | 52,302,200 | 20% | ||
delta1512 | 0 | 1,769,525,200 | 100% | ||
bienvenida | 0 | 170,546,829 | 5% | ||
introduceyoursel | 0 | 54,699,011 | 5% | ||
preguntame | 0 | 51,311,819 | 5% | ||
bobinson | 0 | 576,155,883 | 100% | ||
draffanahmed | 0 | 616,124,052 | 1% | ||
what-is-life | 0 | 1,001,247,771 | 100% | ||
abc.love.steemit | 0 | 2,729,693,845 | 100% | ||
fortunex | 0 | 50,767,702 | 100% | ||
juliux | 0 | 614,610,097 | 100% | ||
xandros | 0 | 0 | 100% | ||
piotr42 | 0 | 609,358,016 | 100% | ||
albert1986 | 0 | 67,739,042 | 100% | ||
kapable | 0 | 0 | 0% | ||
jlordc | 0 | 3,085,570,160 | 100% | ||
gridcoin.science | 0 | 0 | 100% | ||
sofash | 0 | 368,641,136 | 100% | ||
xsorbik | 0 | 0 | 100% | ||
pakaran | 0 | 0 | 100% |
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.
author | bitgeek |
---|---|
permlink | re-make-your-steem-server-last-longer-with-memory-compression-20180116t194745 |
category | witness-category |
json_metadata | "" |
created | 2018-01-16 19:47:45 |
last_update | 2018-01-16 19:47:45 |
depth | 1 |
children | 0 |
last_payout | 2018-01-23 19:47:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 617 |
author_reputation | 13,049,044,453,787 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,013,124 |
net_rshares | 0 |
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.
author | blervin |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180203t053005107z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-02-03 05:30:06 |
last_update | 2018-02-03 05:30:06 |
depth | 1 |
children | 2 |
last_payout | 2018-02-10 05:30:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 566 |
author_reputation | 3,496,734,580,041 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,566,155 |
net_rshares | 884,019,622 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
deltik | 0 | 884,019,622 | 100% |
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.
author | deltik |
---|---|
permlink | re-blervin-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180205t124715658z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-02-05 12:47:15 |
last_update | 2018-02-05 12:47:15 |
depth | 2 |
children | 1 |
last_payout | 2018-02-12 12:47:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 445 |
author_reputation | 387,365,520,609 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,138,634 |
net_rshares | 0 |
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.
author | blervin |
---|---|
permlink | re-deltik-re-blervin-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180205t134547057z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-02-05 13:45:45 |
last_update | 2018-02-05 13:45:45 |
depth | 3 |
children | 0 |
last_payout | 2018-02-12 13:45:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 227 |
author_reputation | 3,496,734,580,041 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,150,425 |
net_rshares | 0 |
Thanks for the detailed explanation. Will definately try this out to check the pros/cons of such a setup.
author | blockbrothers |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t155503408z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-16 15:55:03 |
last_update | 2018-01-16 15:55:03 |
depth | 1 |
children | 0 |
last_payout | 2018-01-23 15:55:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 105 |
author_reputation | 31,782,529,019,015 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,970,652 |
net_rshares | 0 |
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
author | bobinson |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180211t022935054z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-02-11 02:29:36 |
last_update | 2018-02-11 02:29:36 |
depth | 1 |
children | 3 |
last_payout | 2018-02-18 02:29:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 204 |
author_reputation | 55,343,141,313,811 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 36,555,622 |
net_rshares | 885,983,948 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
deltik | 0 | 885,983,948 | 100% |
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!
author | deltik |
---|---|
permlink | re-bobinson-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180216t174148076z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-02-16 17:41:48 |
last_update | 2018-02-16 17:41:48 |
depth | 2 |
children | 2 |
last_payout | 2018-02-23 17:41:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 240 |
author_reputation | 387,365,520,609 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 38,056,698 |
net_rshares | 953,896,197 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
bobinson | 0 | 953,896,197 | 100% |
you could edit it now;)
author | isnochys |
---|---|
permlink | re-deltik-re-bobinson-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20190212t141008119z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2019-02-12 14:10:09 |
last_update | 2019-02-12 14:10:09 |
depth | 3 |
children | 1 |
last_payout | 2019-02-19 14:10:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 23 |
author_reputation | 47,865,164,835,204 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,769,533 |
net_rshares | 0 |
wow! I will give a try to run a seed node on a 16GB RAM machine. . This is very cool.
author | cryptohazard |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180124t095106180z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-24 09:51:06 |
last_update | 2018-01-24 09:51:06 |
depth | 1 |
children | 0 |
last_payout | 2018-01-31 09:51:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 85 |
author_reputation | 17,111,780,434,071 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,880,830 |
net_rshares | 0 |
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.
author | diggndeeper.com |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t165925991z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-22 16:59:24 |
last_update | 2018-01-22 17:01:03 |
depth | 1 |
children | 2 |
last_payout | 2018-01-29 16:59:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.768 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 229 |
author_reputation | 51,561,042,347,297 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,428,881 |
net_rshares | 157,234,195,982 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
diggndeeper.com | 0 | 157,234,195,982 | 30% |
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).
author | deltik |
---|---|
permlink | re-diggndeepercom-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t225120762z |
category | witness-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"} |
created | 2018-01-22 22:51:21 |
last_update | 2018-01-22 22:51:21 |
depth | 2 |
children | 1 |
last_payout | 2018-01-29 22:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 4.470 HBD |
curator_payout_value | 1.490 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 979 |
author_reputation | 387,365,520,609 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,496,817 |
net_rshares | 533,043,167,999 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
diggndeeper.com | 0 | 533,043,167,999 | 100% |
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.
author | diggndeeper.com |
---|---|
permlink | re-deltik-re-diggndeepercom-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t233426871z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-22 23:34:27 |
last_update | 2018-01-22 23:34:27 |
depth | 3 |
children | 0 |
last_payout | 2018-01-29 23:34:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 125 |
author_reputation | 51,561,042,347,297 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,503,970 |
net_rshares | 0 |
This is the best post in Steemit..π₯π₯π₯
author | doctor.steemit |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t104800854z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-16 10:48:03 |
last_update | 2018-01-16 10:48:03 |
depth | 1 |
children | 1 |
last_payout | 2018-01-23 10:48:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 37 |
author_reputation | -51,580,064,616 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,912,432 |
net_rshares | -6,623,813,553 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ravonn | 0 | -6,623,813,553 | -100% |
It is. Unfortunate that you did not actually read it but just spammed here.
author | dutch |
---|---|
permlink | re-doctorsteemit-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t125611662z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-16 12:56:12 |
last_update | 2018-01-16 12:56:45 |
depth | 2 |
children | 0 |
last_payout | 2018-01-23 12:56:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 75 |
author_reputation | 11,905,004,165,125 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,933,793 |
net_rshares | 0 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
libertyranger | 0 | 0 | 100% |
Thank you for this. Do I need to take down the witness (stop the docker) when I set up the zram?
author | justyy |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180612t155851978z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-06-12 15:58:51 |
last_update | 2018-06-12 15:58:51 |
depth | 1 |
children | 1 |
last_payout | 2018-06-19 15:58:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.032 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 96 |
author_reputation | 280,616,224,641,976 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 60,463,651 |
net_rshares | 13,094,699,498 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 410,989,596 | 20% | ||
superbing | 0 | 2,695,249,668 | 20% | ||
dailyfortune | 0 | 53,426,622 | 20% | ||
dailystats | 0 | 4,732,334,521 | 20% | ||
dailychina | 0 | 3,255,950,180 | 20% | ||
turtlegraphics | 0 | 1,946,748,911 | 20% |
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
author | quochuy |
---|---|
permlink | re-justyy-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180613t115951045z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-06-13 11:59:51 |
last_update | 2018-06-13 11:59:51 |
depth | 2 |
children | 0 |
last_payout | 2018-06-20 11:59:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 151 |
author_reputation | 758,372,221,814,367 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 60,574,816 |
net_rshares | 0 |
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.
author | libertyranger |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t165525413z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-22 16:55:21 |
last_update | 2018-01-22 16:55:21 |
depth | 1 |
children | 1 |
last_payout | 2018-01-29 16:55:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 288 |
author_reputation | 7,267,049,896,950 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,428,117 |
net_rshares | 0 |
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`.
author | deltik |
---|---|
permlink | re-libertyranger-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180122t222344259z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-22 22:23:45 |
last_update | 2018-01-22 22:23:45 |
depth | 2 |
children | 0 |
last_payout | 2018-01-29 22:23:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 149 |
author_reputation | 387,365,520,609 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,492,161 |
net_rshares | 1,316,045,496 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
libertyranger | 0 | 1,316,045,496 | 100% |
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.
author | scalextrix |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t105326142z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-16 10:53:30 |
last_update | 2018-01-16 10:53:30 |
depth | 1 |
children | 2 |
last_payout | 2018-01-23 10:53:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.136 HBD |
curator_payout_value | 0.038 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 166 |
author_reputation | 17,941,237,668,958 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,913,188 |
net_rshares | 18,822,584,830 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
barton26 | 0 | 4,983,160,080 | 100% | ||
ravonn | 0 | 6,755,307,518 | 100% | ||
dutch | 0 | 6,469,712,645 | 10% | ||
deltik | 0 | 614,404,587 | 100% |
I was just thinking we could do the same for Gridcoin, especially on the Pis which tend to struggle to keep the wallet running.
author | ravonn |
---|---|
permlink | re-scalextrix-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t122622003z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-16 12:26:21 |
last_update | 2018-01-16 12:26:21 |
depth | 2 |
children | 1 |
last_payout | 2018-01-23 12:26:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.131 HBD |
curator_payout_value | 0.029 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 127 |
author_reputation | 1,551,172,951,761 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,928,283 |
net_rshares | 17,399,021,399 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
scalextrix | 0 | 5,841,606,854 | 25% | ||
barton26 | 0 | 5,087,701,900 | 100% | ||
dutch | 0 | 6,469,712,645 | 10% |
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...
author | scalextrix |
---|---|
permlink | re-ravonn-re-scalextrix-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t144506229z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-01-16 14:45:06 |
last_update | 2018-01-16 14:46:06 |
depth | 3 |
children | 0 |
last_payout | 2018-01-23 14:45:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 240 |
author_reputation | 17,941,237,668,958 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,955,756 |
net_rshares | 2,180,046,293 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
sodom | 0 | 2,180,046,293 | 100% |
<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>
author | steem-network |
---|---|
permlink | re-make-your-steem-server-last-longer-with-memory-compression-20180116t095808 |
category | witness-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"}" |
created | 2018-01-16 09:58:15 |
last_update | 2018-01-16 09:58:15 |
depth | 1 |
children | 0 |
last_payout | 2018-01-23 09:58:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 973 |
author_reputation | -788,969,433,247 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,904,770 |
net_rshares | 0 |
Thanks for shearing news Thanks for me informasion .. Very nice post
author | steemcros | ||||||
---|---|---|---|---|---|---|---|
permlink | re-deltik-2018116t176755z | ||||||
category | witness-category | ||||||
json_metadata | {"tags":["witness-category","steemdev","witness","steem","blockchain"],"app":"esteem/1.5.0","format":"markdown+html","community":"esteem"} | ||||||
created | 2018-01-16 10:06:09 | ||||||
last_update | 2018-01-16 10:06:09 | ||||||
depth | 1 | ||||||
children | 0 | ||||||
last_payout | 2018-01-23 10:06:09 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 70 | ||||||
author_reputation | -776,623,985,510 | ||||||
root_title | "Make Your Steem Server Last Longer With Memory Compression" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 29,906,001 | ||||||
net_rshares | 0 |
Very refreshing and helpful post! Thank you!!!
author | xsorbik |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180512t143822829z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"steemit/0.1"} |
created | 2018-05-12 14:38:24 |
last_update | 2018-05-12 14:38:24 |
depth | 1 |
children | 0 |
last_payout | 2018-05-19 14:38:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 46 |
author_reputation | 13,217,424,469 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,310,638 |
net_rshares | 0 |
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
author | yehey |
---|---|
permlink | re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t145904595z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"users":["yehey"],"app":"steemit/0.1"} |
created | 2018-01-16 14:58:57 |
last_update | 2018-01-16 15:05:00 |
depth | 1 |
children | 1 |
last_payout | 2018-01-23 14:58:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.226 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 315 |
author_reputation | 22,184,787,552,504 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,958,676 |
net_rshares | 24,524,218,559 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yehey | 0 | 18,054,505,914 | 100% | ||
dutch | 0 | 6,469,712,645 | 10% |
Hey @yehey! This idea was actually @deltik's genius coming through. Hope it works out for you, let us know! Dutch
author | dutch |
---|---|
permlink | re-yehey-re-deltik-make-your-steem-server-last-longer-with-memory-compression-20180116t150405606z |
category | witness-category |
json_metadata | {"tags":["witness-category"],"users":["yehey","deltik"],"app":"steemit/0.1"} |
created | 2018-01-16 15:04:06 |
last_update | 2018-01-16 15:04:48 |
depth | 2 |
children | 0 |
last_payout | 2018-01-23 15:04:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 115 |
author_reputation | 11,905,004,165,125 |
root_title | "Make Your Steem Server Last Longer With Memory Compression" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,959,801 |
net_rshares | 0 |