Page 1 of 1
Zram in the Wiki
Posted: Fri Jun 16, 2023 9:53 am
by peter_li
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
Re: Zram in the Wiki
Posted: Sun Jun 18, 2023 11:41 am
by CharlesV
I dont have an answer to your question, but there are a few recent posts here regarding zram and their issues / setup for.
If you search you will find someone might have mentioned this.
Re: Zram in the Wiki
Posted: Sun Jun 18, 2023 11:51 am
by Jerry3904
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
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?
Re: Zram in the Wiki
Posted: Wed Jun 21, 2023 3:22 pm
by peter_li
Jerry3904 wrote: Sun Jun 18, 2023 11:51 am
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
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?
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.
Re: Zram in the Wiki
Posted: Wed Jun 21, 2023 4:17 pm
by Charlie Brown
It does that immediately, just till next boot (also the
/etc/init.d/.. is not needed, directly
zram is enough):
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]
... Shortly, one can put
sudo modprobe zram ; sudo zram start in Autostart as an alternative.