Hello, I'm not sure I'm posting to the right list since luci seems to have a different mailinglist so I'm sorry if I'm sending to the wrong one. Some people have modded their routers and added support for different storage devices and I suggest a change to the current swap space implementation. Currently, evey swap space, either created using the interface or uci is mounted with incremental priority. It may be possible to achieve some performance increase if the interface(s) would allow striping the swap space accross several devices given that Linux supports striping by default with no modifications.
Every new swap space partition is set-up with defaults (I'm sorry, I forgot to partition and I'm using a swapfile): /swap/swapfile_1 none swap sw 0 0 However, by hacking /etc/init.d/fstab and adding pri=1 as a mount option: -echo "$device none swap ${noauto}sw 0 0" >> /tmp/fstab +echo "$device none swap ${noauto}sw,pri=1 0 0" >> /tmp/fstab You can get the striping: # cat /proc/swaps Filename Type Size Used Priority /swap/swapfile_1 file 2040 264 1 /swap/swapfile_2 file 2040 272 1 In my case, I'm unsure whether this will yield any performance but present or future hardware mods might benefit from it. Maybe if you implemented some method (via uci for example) to specify the mount options for swap, one could benefit from this (old) striping option and avoid manual hacks to /etc/init.d/fstab. Best regards, Horia V. Corcalciuc _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel