You are viewing a single comment's thread from:

RE: Make Your Steem Server Last Longer With Memory Compression

in #witness-category6 years ago

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.


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

Without the package, the necessary driver might not be installed.

Yeah, I read that It is a module of the mainline Linux kernel since 3.14 and so I checked:

$ uname -r

And then I scratched my head for a bit until I realized it's not part of the base kernel package.

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.033
BTC 71192.75
ETH 3667.67
USDT 1.00
SBD 3.75