Slower/older computer, have linux?
From
Morningstarr@HOBBYSPC to
ALL on Sunday, May 17, 2026 21:16:29
Setting up ZRAM is the absolute best upgrade you can give your computer.Instead of moving data to your slow hard drive when your 4GB of RAM fills up, ZRAM creates a compressed folder inside your actual RAM. Linux compresses data on the fly at lightning-fast CPU speeds. Because it compresses at roughly a 2:1 ratio, your 4GB of physical RAM will act and feel like 6GB or 7GB of RAM, preventing your hard drive from grinding.Here is how to check for it, install it, and configure it perfectly alongside your new swappiness setting.1. Check if ZRAM is Already RunningSome versions of Ubuntu enable it by default. Run this command to check:bashzramctl
Use code with caution.If it returns nothing: ZRAM is not running. Proceed to Step 2.If it lists a device (like /dev/zram0): It is already working! You can skip to Step 4.2. Install ZRAM If it wasn't running, you can install Ubuntu's automatic ZRAM configuration tool with this command:bashsudo apt update && sudo apt install zram-config
Use code with caution.3. Start the ServiceOnce installed, start the service using systemd:bashsudo systemctl start zram-config
Use code with caution.Now, run zramctl again. You should see it active, showing your compressed RAM pool.4. The Critical Step: Adjust Swappiness for ZRAMThis is where the magic happens. When using ZRAM, the rules for swappiness change completely.Because ZRAM lives inside your ultra-fast RAM, you actually want the system to swap aggressively into ZRAM instead of waiting until the last minute. This keeps your physical memory perfectly organized and compressed.If you are using ZRAM, change your swappiness to 100 or 150 so the system uses the compressed RAM pool as much as possible, completely bypassing your hard drive. To test it instantly :bashsudo sysctl vm.swappiness=100
Use code with caution.5. Make it Permanent with ZRAMSince you previously saved vm.sysctl.swappiness=10 to your configuration file, you should update it to 100 to get the maximum speed benefit from ZRAM. Open the file in a text editor:bashsudo nano /etc/sysctl.conf
Use code with caution.Scroll to the very bottom, find your old line, and change it to:textvm.sysctl.swappiness=100
Use code with caution.(If you don't see it, just add vm.sysctl.swappiness=100 as a new line at the bottom).Press Ctrl + O then Enter to save, and Ctrl + X to exit.
---
þ Synchronet þ Hobby Space - Express Yourself hobbyspc.synchro.net