Re: zram-swap: default to lzo instead of lzo-rle compression

2021-12-01 Thread Sven Roederer
Am Mittwoch, 1. Dezember 2021, 14:08:15 CET schrieb Rui Salvaterra: > Hi, Felix, > > On Wed, 1 Dec 2021 at 12:45, Felix Fietkau wrote: > > Maybe upstream would accept a simple makefile change that merges both > > into a single module without changing any of the source files. > > That's the most

Re: zram-swap: default to lzo instead of lzo-rle compression

2021-12-01 Thread Rui Salvaterra
Hi, Felix, On Wed, 1 Dec 2021 at 12:45, Felix Fietkau wrote: > > Maybe upstream would accept a simple makefile change that merges both > into a single module without changing any of the source files. That's the most logical course of action, yes. Otherwise, this patch [1] I sent last year seems

Re: zram-swap: default to lzo instead of lzo-rle compression

2021-12-01 Thread Felix Fietkau
On 2021-12-01 00:27, Sven Roederer wrote: Am Montag, 29. November 2021, 10:57:37 CET schrieb Rui Salvaterra: Hi, Sven, On Sun, 28 Nov 2021 at 01:40, Sven Roederer wrote: > Rui, not sure if to call it a bug. At the end there is a hardcoded default > algo in the module, that is used initially

Re: zram-swap: default to lzo instead of lzo-rle compression

2021-11-30 Thread Sven Roederer
Am Montag, 29. November 2021, 10:57:37 CET schrieb Rui Salvaterra: > Hi, Sven, > > On Sun, 28 Nov 2021 at 01:40, Sven Roederer wrote: > > Rui, not sure if to call it a bug. At the end there is a hardcoded default > > algo in the module, that is used initially when creating the device. The > >

Re: zram-swap: default to lzo instead of lzo-rle compression

2021-11-29 Thread Rui Salvaterra
Hi, Sven, On Sun, 28 Nov 2021 at 01:40, Sven Roederer wrote: > > Rui, not sure if to call it a bug. At the end there is a hardcoded default > algo in the module, that is used initially when creating the device. The check > for the valid algo is done later at device-activation. > I spend some

Re: zram-swap: default to lzo instead of lzo-rle compression

2021-11-27 Thread Sven Roederer
Am Donnerstag, 17. September 2020, 12:11:19 CET schrieben Sie: > On Thu, 17 Sep 2020 at 10:38, e9hack wrote: > > Hi, > > > > I think commit 419f149e482641ddc520f80a7ab2038f7e2ebc8a is not the proper > > fix for the described issue. > > > > The kernel module lzo-rle is still missing. To solve

Re: zram-swap: default to lzo instead of lzo-rle compression

2020-09-17 Thread Sven Roederer
Am Donnerstag, 17. September 2020, 11:38:42 CEST schrieb e9hack: >The kernel module lzo-rle is still missing. To solve this, it must be > installed on the root-fs: > > diff --git a/package/kernel/linux/modules/lib.mk > b/package/kernel/linux/modules/lib.mk index 1289cc1f25..fade8a5cfd 100644 >

RE: zram-swap: default to lzo instead of lzo-rle compression

2020-09-17 Thread Adrian Schmutzler
Hi, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of e9hack > Sent: Donnerstag, 17. September 2020 11:39 > To: j...@mein.io; rsalvate...@gmail.com > Cc: openwrt-devel@lists.openwrt.org > Subject: zram-swap: d

Re: zram-swap: default to lzo instead of lzo-rle compression

2020-09-17 Thread Rui Salvaterra
On Thu, 17 Sep 2020 at 10:38, e9hack wrote: > > Hi, > > I think commit 419f149e482641ddc520f80a7ab2038f7e2ebc8a is not the proper fix > for the described issue. > > The kernel module lzo-rle is still missing. To solve this, it must be > installed on the root-fs: > > diff --git

zram-swap: default to lzo instead of lzo-rle compression

2020-09-17 Thread e9hack
Hi, I think commit 419f149e482641ddc520f80a7ab2038f7e2ebc8a is not the proper fix for the described issue. The kernel module lzo-rle is still missing. To solve this, it must be installed on the root-fs: diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk

Merged: zram-swap: default to lzo instead of lzo-rle compression

2020-09-17 Thread Jo-Philipp Wich
Merged into my staging tree at http://git.openwrt.org/?p=openwrt/staging/jow.git. Thank you! ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[PATCH] zram-swap: default to lzo instead of lzo-rle compression

2020-07-30 Thread Rui Salvaterra
On devices with small amounts of RAM, zram-swap fails to initialise due to the default compression algorithm (lzo-rle). Startup example on an AirGrid M2, with 32 MiB of RAM: root@airgrid:/etc/config# /etc/init.d/zram start zram_start: activating '/dev/zram0' for swapping (13 MegaBytes)