#22666: zram doesn't work with lz4 on big endian machines --------------------------+-------------------------------- Reporter: jhalfmoon@… | Owner: developers Type: defect | Status: new Priority: normal | Milestone: Component: kernel | Version: Chaos Calmer 15.05 Resolution: | Keywords: zram lz4 --------------------------+--------------------------------
Comment (by hojuruku): Works for me bro on trunk. Hint if you want to create a new zram device you can do it using the hotadd feature not reloading the module. That might solve your problem. rtfm the zram.txt document bundled with the linux kernel. https://www.kernel.org/doc/Documentation/blockdev/zram.txt 7) Add/remove zram devices zram provides a control interface, which enables dynamic (on-demand) device addition and removal. In order to add a new /dev/zramX device, perform read operation on hot_add attribute. This will return either new device's device id (meaning that you can use /dev/zram<id>) or error code. Example: cat /sys/class/zram-control/hot_add 1 To remove the existing /dev/zramX device (where X is a device id) execute echo X > /sys/class/zram-control/hot_remove ``` cd /sys/block/zram1 echo 1 > reset echo lz4 > comp_algorithm echo 4096K > disksize mkfs.ext2 -b 4096 /dev/zram1 mkdir /mnt/foo mount -t ext4 /dev/zram1 /tmp/foo ``` And the filesytem works fine. Besides you want to use lzo for swap and lz4 for mounting /tmp on ext4. I'm working on a patch for procd zram /tmp to use busybox only to get the job done. No block mount stuff. -- Ticket URL: <https://dev.openwrt.org/ticket/22666#comment:1> OpenWrt <http://openwrt.org> Opensource Wireless Router Technology _______________________________________________ openwrt-tickets mailing list openwrt-tickets@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets