Zram in the Wiki

Forum for discussion and implementation of project work to enhance mxlinux.org and other MX Websites
Message
Author
peter_li
Posts: 67
Joined: Sun Apr 28, 2019 3:57 am

Zram in the Wiki

#1 Post 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
DELL Latitude E6510 i5, 4 threads with Kernel 5.10, MX-21 Mate and Windows 10.
Deutsches Wiki: https://wiki.mxlinuxusers.de/wiki/Hauptseite unter Verwendung von MediaWiki

User avatar
CharlesV
Global Moderator
Posts: 7056
Joined: Sun Jul 07, 2019 5:11 pm

Re: Zram in the Wiki

#2 Post 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.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Jerry3904
Administrator
Posts: 23042
Joined: Wed Jul 19, 2006 6:13 am

Re: Zram in the Wiki

#3 Post 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?
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

peter_li
Posts: 67
Joined: Sun Apr 28, 2019 3:57 am

Re: Zram in the Wiki

#4 Post 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.
DELL Latitude E6510 i5, 4 threads with Kernel 5.10, MX-21 Mate and Windows 10.
Deutsches Wiki: https://wiki.mxlinuxusers.de/wiki/Hauptseite unter Verwendung von MediaWiki

Charlie Brown

Re: Zram in the Wiki

#5 Post 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.

Post Reply

Return to “Website”