Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zram]

The tag has no usage guidance.

1
vote
1answer
51 views

How to change zram sector size?

I have cloned a disk into a sparse file that is about 80G but indeed requires only about 12G, even not compressed it fits on my memory, but in order to save some resources I want to use zram: sudo ...
6
votes
1answer
254 views

Make or force tmpfs to swap before the file cache

Consider the following scenario. You have a slow read-only media (e.g. write-protected Thumb Drive, CD/DVD, whatever) that you installed Linux on (not a Live CD per se, but a normal build), and use it ...
0
votes
1answer
42 views

compress a single file … zram ? cloop?

We have a legacy centos 5.11 server; filesystems are ext3, we cannot change. Is it possible to have realtime compression on a single file (a giant log file) ? zram : I cannot find it in the repos... ...
3
votes
1answer
839 views

Is zstd for zram actually available in Linux 4.15?

I found zstd in /drivers/block/zram/zcomp.c, but I can't find anything zstd-related in /crypto. So is zstd for zram actually available in Linux 4.15 or not?
5
votes
1answer
1k views

Prevent zram LRU inversion with zswap and max_pool_percent = 100

The major disadvantage of using zram is LRU inversion: older pages get into the higher-priority zram and quickly fill it, while newer pages are swapped in and out of the slower [...] swap The ...
0
votes
0answers
150 views

Why /sys/block/zram0/comp_algorithm not exist?

See zram kernel doc we know there should have /sys/block/zram0/comp_algorithm Examples: #show supported compression algorithms cat /sys/block/zram0/comp_algorithm lzo [lz4] #...
6
votes
1answer
2k views

What is an alternative for zcache?

I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory. Apparently, zcache has been discontinued. Is there an ...
2
votes
1answer
855 views

systemd : write a .service daemon for setting up swap and fs in zram

I recently acquired a laptop with a ssd and in order not to weigh too much on the ssd (which I was told had a limited number of write cycles), I decided to write a systemd unit file for setting up a ...
0
votes
1answer
222 views

Have I installed and started zram successfully?

On my Kubuntu 13.10 laptop, have installed zram by sudo aptitude install zram-config and the output of swapon -s Filename Type Size Used Priority /...
4
votes
0answers
722 views

How much RAM is there?

I'm trying to estimate how effective the zram kernel module is in case of my PC. I have a pretty old machine (7y) with the only 1 GiB of RAM. I created two zram swaps (two core processor), 250MiB ...
5
votes
2answers
2k views

How do I determine ZCACHE works on my box?

I have an Marwell Kirkwood ARM-based NAS server Zyxel NSA 310. I compiled my own 3.8 kernel and enabled ZCACHE, but I still see 256 MB of RAM. I am not sure if GNU free utility should show extra ...
3
votes
0answers
568 views

zram swap instability

I use Mint 13 Maya with mainline kernel 3.6.3 for Ubuntu Quantal on my Asus P53E Notebook. I use zram swap that comes with the package zram-config. I've noticed that using it the system to hangs at ...
13
votes
3answers
8k views

What is the appropriate value of vm.swappiness when using zram?

I'm using zram on my computer as a compressed RAM-backed swap. When the system needs to swap something out, swapping it to a zram-backed swap file is more or less equivalent to compressing that data ...
4
votes
1answer
2k views

How to fix zramswap error?

I installed zramswap-enabler on Ubuntu 11.10 using the ppa but when installing programs or running system upgrades I get this error: Setting up zramswap-enabler (0.2.1-0~12~oneiric1) ... start: Job ...
0
votes
1answer
2k views

Zram does not start at start-up

I am using pinguyos 11.10. Pinguyos is a variant of Ubuntu 11.10. I have installed zram like this: sudo add-apt-repository ppa:shnatsel/zram sudo apt-get update sudo apt-get install zramswap-enabler ...
9
votes
2answers
7k views

Cleancache vs zram?

I have an old laptop here with only 512 MB of RAM. Since a few kernel releases, I am using zram to convert 256 MB of it to a compressed ramdisk which is then used as swap. This has proved to be very ...
9
votes
5answers
10k views

How to set up properly zram and swap

I'm configuring & compiling new 3.0 kernel. One of the goodies I planned to use for some time (by patching) that was merged into 3.0 is zram. Is it possible to set both hdd swap and zram swap so ...