Code: Select all
$ sudo modprobe zram
$ sudo /etc/init.d/zram start
Code: Select all
$ sudo modprobe zram
$ sudo /etc/init.d/zram start
Not sure it would be "better" but if it works it would be useful to add it , but first: does it take a loooong time to run that final update command?peter_li wrote: ↑Fri Jun 16, 2023 9:53 am Is this article still okay or would it be better to write: If you want to use it immedeately, not waiting for the next restart, do something like this:Code: Select all
$ sudo modprobe zram $ sudo /etc/init.d/zram start
As I remember it was not along time, I think. But I had the impression that it will only do the activation after the next reboot. So I aded this.Jerry3904 wrote: ↑Sun Jun 18, 2023 11:51 amNot sure it would be "better" but if it works it would be useful to add it , but first: does it take a loooong time to run that final update command?peter_li wrote: ↑Fri Jun 16, 2023 9:53 am Is this article still okay or would it be better to write: If you want to use it immedeately, not waiting for the next restart, do something like this:Code: Select all
$ sudo modprobe zram $ sudo /etc/init.d/zram start
Code: Select all
$ free -mw
total used free shared buffers cache available
Mem: 2005 348 836 104 94 725 1487
Swap: 0 0 0
charlie@Brown:~
$ sudo modprobe zram ; sudo zram start
zram devices probed successfully
Setting up swapspace version 1, size = 501.3 MiB (525615104 bytes)
no label, UUID=4e7c8d66-5993-4d74-87f6-3582e9fd9e00
charlie@Brown:~
$ free -mw
total used free shared buffers cache available
Mem: 2005 362 818 107 94 728 1470
Swap: 501 0 501
Code: Select all
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
...
sr0 11:0 1 1024M 0 rom
zram0 252:0 0 501.3M 0 disk [SWAP]