Jump to content

[request] zram kernel module available ?


wildcat_paris

Recommended Posts

Hello Igor,

 

I am using vanilla 4.4 for labomo-r1

 

it seems zram module is missing. Do you intend to compile the kernel with this option, please?

gr@bpi:~$ sudo modprobe -Rf zram
modprobe: FATAL: Module zram not found.

On raspbian, kernel 3.18.x-4.1.x, there is a kernel module "zram" useful for embedded systems... working fine (also using on my x86 laptop)

 

https://wiki.gentoo.org/wiki/Zram

 

Nice week-end,

 

Regards,

 

Guillaume

 

 

Link to comment
Share on other sites

Igor,

 

Thanks it is fine with http://mirror.igorpecovnik.com/test/linux-image-next-sunxi_4.5_armhf.deb

gr@bpi:~$ cat /proc/version
Linux version 4.2.3-sunxi (root@kitchen) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #16 SMP Fri Oct 9 23:08:18 CEST 2015

gr@bpi:~$ lsmod
[...]
zram                   17790  2
lz4_compress            3201  1 zram

gr@bpi:~$ swapon -s
Filename                                Type            Size    Used    Priority
/home2/swap                             file            4999996 0       -1
/dev/zram0                              partition       256980  0       5
/dev/zram1                              partition       256980  0       5

ok, now testing... compiling thunderbird 42b1 on my "labomo-r1" FTTH home router :)

 

Edit : Igor, this is an awesome piece of work! :-)

 

Edit 2 : I am not sure if it is really useful here

CONFIG_CLEANCACHE=y
CONFIG_FRONTSWAP=y

Edit 3 :

compared to :

- (arm) Raspbian : zsmalloc seems to be missing

- (x86-amd64) Ubuntu 14.04 : the same as armbian : modules zram + lz4_compress

pi@pi ~ $ lsmod
Module                  Size  Used by
zram                   20112  0
lz4_compress            3100  1 zram
zsmalloc               10430  1 zram

pi@pi ~ $ cat /proc/version
Linux version 4.1.10-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #820 SMP PREEMPT Sun Oct 4 16:26:51 BST 2015

Edit 4:

zsmalloc is probably useful : allocate small object to reduce memory fragmentation

http://lwn.net/Articles/477067/

 

zsmalloc is builtin, so ok

gr@bpi:~$ sudo modprobe --show-depends zram
insmod /lib/modules/4.2.3-sunxi/kernel/lib/lz4/lz4_compress.ko
insmod /lib/modules/4.2.3-sunxi/kernel/drivers/block/zram/zram.ko
gr@bpi:~$ sudo modprobe --show-depends -v zsmalloc
builtin zsmalloc

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines