ChromebookDo you find that your Chromebook leaks memory? Well regardless of your Chromebook model, one quick command line with a restart can definitely help. The solution uses zRam or compressed swap space and you can use it on a Chromebook because it’s part of Linux, which is the underlying core of a Chrome OS device.

Essentially, zRam creates a swap disk to virtually increase the amount of memory your system can use. This is a description from the zRAM / compressed cache project site:

“This project creates RAM based block device (named zram) which acts as swap disk. Pages swapped to this disk are compressed and stored in memory itself. Compressing pages and keeping them in RAM virtually increases its capacity. This allows more applications to fit in given amount of memory.”

Here are the simple steps found in the Chromebook Central Google Group to enable it:

  1. Open up a terminal tab with the CTRL + ALT + T keys.
  2. Type “swap enable” (without the quotes).
  3. Restart your Chromebook.

That’s it! The change is persistent, meaning the swap file will stay active after each restart. If you want to disable it, just follow the same instructions but type “disable” instead of “enable.” And if you want to manage the actual size of the swap file, you can do that too: When enabling it, follow the command with a number representing the size of the swap file in megabytes.

Enable zRam

I’ve used this function on several Chromebook models and have noticed that blank tabs are mostly a thing of the past, even after opening and closing dozens of tabs during a typical day.

The nice thing is that you have nothing to lose by enabling the swap function since it can easily be disabled.