Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[request] zram kernel module available ?

Featured Replies

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

 

 

  • Author

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.