[FS#3646] Unable to Swap /proc/swaps does not exist (ramips rt305x/)

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Sat Feb 27 20:41:17 EST 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#3646 - Unable to Swap /proc/swaps does not exist (ramips rt305x/)
User who did this - odmdas (odmdas)

----------
Hi, xapukserge.

A quick search showed that the swap option is enabled for all targets except those marked as small_flash [0].

config KERNEL_SWAP
	bool "Support for paging of anonymous memory (swap)"
	default y if !SMALL_FLASH

rt305x is marked as small_flash [1].

FEATURES+=usb ramdisk small_flash

small_flash feature flag was introduced in commit cf7154d.

You can try building a modified OpenWrt with the swap option forcibly enabled and see if there is any worth. Especially on the upcoming 21.02 release with the 5.4 kernel. Post your results.
I use a similar device, ZyXEL Keenetic, without LuCI, and there are some free megabytes of RAM.
What is your use case in which swap is needed?

[0] https://github.com/openwrt/openwrt/blob/v19.07.6/config/Config-kernel.in

[1] https://github.com/openwrt/openwrt/blob/v19.07.6/target/linux/ramips/rt305x/target.mk

----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3646#comment9427

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list