WRT1900AC v1 (mamba) with latest master.
I checked PROCD_ZRAM_TMPFS "Mount /tmp using zram" and that created a 16MB /tmp. 16MB is not enough for sysupgrade. The next image I want to flash is 25MB and sysupgrade insists on copying the image to /tmp, even if the image is just stored in another ram/tmpfs.
root@OpenWrt:/# dmesg | grep -i "zram"
[ 2.770877] zram: Added device: zram0
[ 2.841518] zram0: detected capacity change from 0 to 16777216
[ 3.082207] EXT4-fs (zram0): noquota option not supported
[ 3.086091] EXT4-fs (zram0): mounted filesystem with ordered data mode. Opts: errors=continue,noquota
[ 3.086193] init: Using up to 16384 kB of RAM as ZRAM storage on /mnt
[ 13.808685] zram: Added device: zram1
[ 13.891369] zram1: detected capacity change from 0 to 126877696
[ 13.940687] Adding 123900k swap on /dev/zram1. Priority:-2 extents:1 across:123900k SSDsc
I have some questions:
- Can I change the default size? How?
- Zram occupies RAM as the virtual drive fills with data, but does it free the RAM when files are deleted from the drive? Like a "discard" on SSD?
Thank you.