aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/zram-swap
Commit message (Collapse)AuthorAgeFilesLines
* zram-swap: fix number of created zram devices for multicore CPU'sEmil Muratov2018-12-181-45/+29
| | | | | | | | | | Use only one zram swap device of the specified $size instead of [N x $size] devices for multicore CPUs Now zram module uses multiple compression streams for each dev by default, so we do not need to create several zram devs to utilize multicore CPUs. Signed-off-by: Emil Muratov <gpm@hotplug.ru> (backported from 814cae7362c3bd57e8fd9305d5d0b48ff219d4d0)
* zram-swap: fix zram dev reset for multicore cpu devicesEmil Muratov2018-12-181-12/+10
| | | | | | | | | | | * "zram stop" could reset up to $(num_of_cores) zram devices even if some of those were not mounted as swap dev's. This fix tries to enumerate mounted swap zram dev's before making a reset * remove hot-added zram devs on stop (except zram0) Signed-off-by: Emil Muratov <gpm@hotplug.ru> (backported from 9edc1fe8abac6638cd05640279bc741a23b8d260)
* zram-swap: compression algorithm configuration optionEmil Muratov2018-12-181-0/+18
| | | | | | | | | | | | | Compression algorithms for zram are provided by kernel crypto API, could be any of [lzo|zl4|deflate|<some_more>] depending on kernel modules. Compress algo for zram-swap could be defined via 'zram_comp_algo' option in 'system' section of '/etc/config/system' file, or via cli (for e.x. with 'uci set system.@System[0].zram_comp_algo=lz4 && uci commit system'). check available algo's via 'cat /sys/block/zram0 /comp_algorithm' Signed-off-by: Emil Muratov <gpm@hotplug.ru> (backported from b9e89adfb7881806d01e3bd259852e352f3b3ce8)
* zram-swap: Shell cosmeticSamuel Casa2018-12-181-4/+4
| | | | | Signed-off-by: Samuel Casa <samuel.casa@neratec.com> (backported from 65e9561b3d0546bfe6bad1840d81c0aa07b0c68d)
* zram-swap: remove trailing whitespaces in init scriptSamuel Casa2018-12-181-2/+2
| | | | | | | Signed-off-by: Samuel Casa <samuel.casa@neratec.com> [slightly reword subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io> (backported from b291517fdf5a698726fe94010055ec90d85f365a)
* zram-swap: CONFIG_PROCD_ZRAM_TMPFS compatibilityConn O'Griofa2016-09-051-2/+11
| | | | | | | | Enable CONFIG_PROCD_ZRAM_TMPFS compatibility via two changes to list_cpu_idx(): * detect if /tmp is being used by /dev/zram0; if yes, offset initial value by 1 to skip first zram device. * hot-add /dev/zram1, if not already present. Signed-off-by: Conn O'Griofa >connogriofa@gmail.com>
* cosmetic: remove trailing whitespacesLuka Perkov2015-10-151-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 47197
* license info - revert r43155John Crispin2014-11-031-3/+0
| | | | | | | | turns out that r43155 adds duplicate info. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43167
* Add more license tags with SPDX identifiersJohn Crispin2014-11-031-0/+3
| | | | | | | | | | | | | | | | | | Note, that licensing stuff is a nightmare: many packages does not clearly state their licenses, and often multiple source files are simply copied together - each with different licensing information in the file headers. I tried hard to ensure, that the license information extracted into the OpenWRT's makefiles fit the "spirit" of the packages, e.g. such small packages which come without a dedicated source archive "inherites" the OpenWRT's own license in my opinion. However, I can not garantee that I always picked the correct information and/or did not miss license information. Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 43155
* zram-swap: fix dependenciesHauke Mehrtens2013-11-131-1/+1
| | | | | | | | | swapon/swapoff are no longer provided by swap-utils; they are provided by block-mount instead. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> SVN-Revision: 38795
* packages: clean up the package folderJohn Crispin2013-06-212-0/+169
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007