You are viewing a single comment's thread from:

RE: Make Your Steem Server Last Longer With Memory Compression

in #witness-category7 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.

Sort:  

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.

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.

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 76394.21
ETH 2959.60
USDT 1.00
SBD 2.65