I voted to make a change to this script, as creating zRAM devices based on the number of CPU cores can cause an issue too. See https://github.com/Nefelim4ag/systemd-swap/issues/176 It's a deprecated practice which can do more harm than good. For anyone who want to fix this issue, you can do this by: 1. Open your file manager as an admin. Mine is: nautilus admin:/// 2. Search for zramswapon file, edit the # get the number of CPUs to num_cpus=1. 3. Do the same for zramswapoff file. 4. Reboot your PC. Check zRAM with: sudo zramctl, now you should only have 1 zRAM device.