I would like to enable swapping for the LibreELEC 8.2.3.1-m201d because AmLogic S805 TV Box has only 512 Mb RAM and freezes on the YouTube browsing.
What I do:
1) Set the build options to:
and the Linux kernel options to:
2) Compile and create the developer release image, install the image to the SD Card and boot it.
3) Customise the swap configuration file:
Code
#cp /etc/swap.conf /storage/.config/
#sed -i 's/SWAP_ENABLED="no"/SWAP_ENABLED="yes"/' /storage/.config/swap.conf
and create the file /storage/.config/autostart.sh with contents:
But after all the swapping does not work:
Code
LibreELEC:~ # free
total used free shared buffers cached
Mem: 353848 280324 73524 0 42460 139240
-/+ buffers/cache: 98624 255224
Swap: 262104 0 262104
LibreELEC:~ # swapon --show
NAME TYPE SIZE USED PRIO
/storage/.cache/swapfile file 256M 0B 10000
LibreELEC:~ # ls -l /storage/.cache/swapfile
-rw------- 1 root root 268435456 Nov 7 17:08 /storage/.cache/swapfile
LibreELEC:~ # cat /proc/sys/vm/swappiness
40
LibreELEC:~ # dmesg | grep -i swap
[ 8.132168@3] systemd[1]: Starting Mounting swapfile...
[ 9.996927@0] Adding 262104k swap on /storage/.cache/swapfile. Priority:10000 extents:9 across:299000k SSFS
Display More
What is my mistake?