Increase swap size?
-
A week ago, user @Giiba made a comment about increasing the swap size. They never followed up to the question how to do this, so I'm asking here.
Is it possible to increase the swap size? If yes, how to do this? Currently it's only 31mb on my Nexus5 and almost permanently full while having apps like the browser and uReadIt crash/slow down when viewing lots of pictures for example.
-
Yeah but swapping will kill your SD card sooner or later, so its highly discouraged. I wonder what Apps you have open so that you run out of RAM on N5...
-
Rather than changing swap size, there is another open issue about enabling zRAM on Nexus devices (as it is not currently enabled there in the kernel).
-
@dobey said in Increase swap size?:
Rather than changing swap size, there is another open issue about enabling zRAM on Nexus devices (as it is not currently enabled there in the kernel).
Interesting. got a link? Might be relevant for my nexus 7 halium port
-
-
Sorry, I never did see your question.
If I recall this is how it goes:
$ sudo bash $ cd /userdata $ swapoff $ fallocate -l 64000000 SWAP.img $ mkswap SWAP.img $ swapon SWAP.img $ exit
That will increase the swap to 64mb, as a note the '-l' is a lower case L.
I found the N5 unstable until I had 128mb'ish. However the primary app I use is Morph and that has been improved since the last I tried UT on my N5. Depending on how much you care to risk you device's storage you can go as much as you want. I used it for 2 months as a daily driver with 512mb of swap and it is still running fine (but as an Android device atm).
-
For almost three years now I have 2GB swap on my Pro 5.