Package Details: zramswap 5-1

Git Clone URL: https://aur.archlinux.org/zramswap.git (read-only, click to copy)
Package Base: zramswap
Description: Sets up zram-based swap devices on boot
Upstream URL: http://en.wikipedia.org/wiki/ZRam
Licenses: GPL
Submitter: Svenstaro
Maintainer: rpodgorny
Last Packager: rpodgorny
Votes: 230
Popularity: 1.55
First Submitted: 2011-10-05 23:35
Last Updated: 2019-12-20 16:58

Required by (0)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 ... Next › Last »

duffydack commented on 2018-03-18 23:35

Lz4 is faster apparently, also arch wiki zram example. I can set it myself, it's no biggie.

rpodgorny commented on 2018-03-18 23:09

i'm not forcing any particular algorithm so the default is being used. ...which seems to be lzo.

any reason why i should override the default?

duffydack commented on 2018-03-18 22:43

Any chance the script can set the algorithm to lz4. I can do this myself if need be, but think it's a good default to have using this PKG. Regards

rpodgorny commented on 2017-11-19 22:42

i don't think it's outdated. it's just a simpler version if you want zram only.

lod commented on 2017-11-19 19:31

Outdated approach for creating hybrid swap space.
Use this instead: https://wiki.archlinux.org/index.php/swap#systemd-swap

vgivanovic commented on 2017-02-21 17:35

This package and zswap should be combined. (I'm leaving a similar comment aur:zwap.)

Anakon commented on 2015-10-08 11:27

May I suggest to use the nproc command to get cpucount instead of parsing /proc/cpuinfo ?
For example on an Odroid C1 this leads to a wrong number of 5 :
$ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 1 (v7l)
processor : 0
BogoMIPS : 3.27

processor : 1
BogoMIPS : 3.27

processor : 2
BogoMIPS : 3.27

processor : 3
BogoMIPS : 3.27

Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc05
CPU revision : 1

Hardware : ODROIDC
Revision : 000a
Serial : 1b00000000000000

bluerider commented on 2015-04-06 17:48

I have taken your advice and have started my own package:
<https://aur.archlinux.org/packages/zswap/>

bluerider commented on 2015-04-06 01:25

I recommended it for replacement because it solves several things with the current zramswap script:
1) uses zramctl
2) allows the existence of zram devices beforehand
3) removes only swap zram devices when called to stop
4) suppports effcient swap reset
5) allows different parameters for each zram module.

-- the +2 is to ensure there are 2 free zram devices for other purposes
-- the /7 is because the output has 7 lines per zram devices when using bash.

rpodgorny commented on 2015-04-06 00:04

nice, and:

1) i suggest you create a separate package with the -git suffix as per https://wiki.archlinux.org/index.php/VCS_package_guidelines

2) looking at your scripts, it seems to be configured by editing the .sh file directly. this is a general no-no and should be changed to source the config from /etc.

3) just as a quality of code improvement recommendation, you should document your code more - at least the magical constants (num_devices+2, ...raw))/7, ...).