Just a raw idea, not tested/verified by myself:
Swap can also be established using a swap file, so you could easily test whether it works at all. Try via adb shell
or a terminal app, after becoming root, whether the dd
, mkswap
, and swapon
commands are available. If so, you can try:
# create a file to be used for swapping
# (adjust the filename to where the file should reside, and the count
# to the size in kb it should occupy)
dd -if=/dev/zero -of=</path/to/swapfile> bs=1024 count=65536
# initialize the file for swap use
# (use the file created in the previous step)
mkswap </path/to/swapfile>
# enable swapping
swapon </path/to/swapfile>
# to disable swapping to that file:
# swapoff </path/to/swapfile>
There are ways to fine-tune this (e.g. setting specific values for swappiness) – but with the steps described you can easily test whether it works at all, without big danger of breaking things. Not even a reboot is required. In the best case, it simply works – in the worst case it does not, and you might have to manually delete the </path/to/swapfile>
;)