The first thing to check is whether zram is enabled in the linux kernel by checking out procconfig or procconfig. Increased performance in linux with zram virtual swap. Ubuntu details of source package zramconfig in bionic. Zram is a kernel module which has been available in the vanilla linux kernels since version 2. Automatically detects the number of cpu cores to allocate to zram computation, disables existing swap and enables zram swap. In theory, enabling zram in ubuntu or debian should be one simple step. Enable zram for improved memory handling and less swapping.
Starting at buster released july 2019 its possible to simply install the zram tools package and customize etcdefaultzramswap for your needs. Whenever i ran out of ram on a linux system, i used to enable swap memory. Because every time after startup system i have to do this comand sudo service zram start. Script to dynamically enable zram on a raspberry pi or other linux system. The debian directory contains package meta data and commands to initialize the service. I used the debian wikki and tested with dmesg and found. Ubuntu developers mail archive it should generally not be necessary for users to contact the original maintainer. Installation went just fine, but it did not enable zram. To use this, you will need a machine with an internet connection. The following binary packages are built from this source package.
For systems using a standard sysvbased init system, its possible to copy the following script to etcinit. Execstopsbin swapoff devzram0 install wantedbymultiuser. How to enable the zram module for faster swapping on linux by jack wallen jack wallen is an awardwinning writer for techrepublic and. This installs a simple upstart job to enable zram support on kernels that have the module available. Depending on your internet connection, you may download either of the following. Starting at buster released july 2019 its possible to simply install the zramtools package and customize etcdefaultzramswap for your needs. How enable zram module on kernel debian lik distro.
565 1601 1044 672 1126 947 1410 1498 50 316 1109 87 978 599 1504 1115 510 1413 1027 667 1397 509 1468 563 1382 1117 1027 620 690 1338 1283 271 299 1507 221 558 625 210 53 531 799 347 1407