DRAM computer memory technology.
Questions tagged [zram]
36 questions
47
votes
7 answers
How do I use zRam?
I installed zRam as described on webupd8.org. I installed it from the terminal. Is that all I have to do or do I have to do some configuration or something? Does the zram-enabler do everything by itself or do I have to set some parameters?
Steiger
- 7,857
18
votes
1 answer
How do I prevent initramfs from resuming from a zram device?
Whenever initramfs is updated I get a message similar to this:
I: The initramfs will attempt to resume from /dev/zram1
I: (UUID=1d4b8573-7eee-43c9-a02a-10a65fc17b8a)
I: Set the RESUME variable to override this.
However, because all my swap…
Andrea Corbellini
- 16,126
12
votes
4 answers
How to permanently enable compressed ram swap? What version to use?
EDIT: In precise there's now zram-config. It's an upstart job compressing up to half of your ram spread over $(number of CPU cores) swap devices. It didn't allways start at boot but issuing sudo service zram-config start works.
I enabled…
turbo
- 4,712
10
votes
5 answers
How to change zram size?
I installed zram with sudo apt-get install zram-config. After that it started automatically and when I verified with cat /proc/swaps it's running properly
But when I used sudo echo 128M > /sys/block/zram0/disksize to change the zram size like in the…
phuclv
- 760
10
votes
1 answer
ZRAM vs. regular swap partition
I don't fully understand the functionality and the potential advantages of zram.
For example: once zram is activated, what percentage of memory will be dedicated to paging?
Another issue: obviously the total ram size is the upper bound of swap file…
MadHatter
- 501
8
votes
1 answer
Has zram been removed in the latest ubuntu (17.10)?
When running sudo modprobe zram (or modinfo for that matter) I get the following error:
modprobe: FATAL: Module zram not found in directory /lib/modules/4.13.0-21-generic
Has zram been removed from Ubuntu 17.10?
Ru Hasha
- 183
5
votes
2 answers
How to install zram on Ubuntu 13.04?
I tried to install zRam using the following commands in the terminal:
sudo add-apt-repository ppa:shnatsel/zram
sudo apt-get update
sudo apt-get install zramswap-enabler
But it throws the following error message which says that the package is not…
Andressa
- 51
4
votes
2 answers
Can I use zRAM and a disk swap file at the same time?
I have 24GB of available RAM in my machine, but I usually use far less than 8GB of it. However, sometimes I'm involved with large data files and I suddenly need 40GB, and on infrequent occasions, I'd like to be able to access even more (up to 60GB).…
Thomas Browne
- 376
- 3
- 8
- 26
4
votes
1 answer
Can I combine Zram with Zswap without double compression?
I currently have most of my swap on Zram, since I don't want to wear my SSD excessively.
BUT, I do have a swap partition left over from when the system was installed, and I just lowered the priority of this, and enabled it as well...
My question is…
James Lewis
- 981
4
votes
1 answer
make zram use lz4 compression algorithm
Ubuntu 18, trying to make zram to use lz4 compression.
Tried modifying /usr/bin/init-zram-swapping file
#!/bin/sh
...........
...........
for i in $(seq ${NRDEVICES}); do
DEVNUMBER=$((i - 1))
echo $mem > /sys/block/zram${DEVNUMBER}/disksize
…
Sirajus Salekin
- 1,737
- 13
- 29
3
votes
0 answers
zRAM, increasing size - 16.04/Xenial
How to control zram seems to be quite confusing. I'd like to change my zram size from 8G to 10G, and maybe later to 12G (I have a total of 16G). I have gone into /etc/initramfs-tools/initramfs.conf and changed COMPCACHE_SIZE to "10G", after which…
Diagon
- 470
3
votes
1 answer
How do I replace zram swap with a swap file?
I am running a Jetson Nano with Jetpack 4.4 which (Ubuntu 18.04), by default, has 4x495 Meg ZRAM partitions for swap space. The problem is that for a data science project I need MORE RAM than the 4gig installed on the Jetson (and whatever I get from…
Thomas Browne
- 376
- 3
- 8
- 26
2
votes
1 answer
Customisation of zram and enable zram disable swap partition
How do I enable zram and disable the swap partition?
How do I use zram instead of a swap partition to gain some speed and hard disk?
How do I configure zram to my needs?
Why do these things?
Pavlos Theodorou
- 2,713
2
votes
2 answers
Cannot install zRam
I tried to install zRam using following commands in terminal -
sudo add-apt-repository ppa:shnatsel/zram
sudo apt-get update
sudo apt-get install zramswap-enabler
But it throws the following error which says that the package is not available,
E:…
user24665
- 183
2
votes
1 answer
Relation of swappines and zram
I have been interested in zram so I tried to test it. But as I continue to read the guide on what and how to install it, I have realized that it creates a file /dev/zram0 and mounts it as a swap, I use mount to know it. I have set the swappiness of…
user128712
- 2,452