View Single Post
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#37
A side effect of doing swapoff-swapon with no alternate swap location is that a lot of daemons shut down, and then come back once swap is reactivated. Phone runs pretty sluggish for a few minutes as these daemons come back to life, but seems pretty nice afterwards.

Anyone wanna write a small script that looks periodically at /proc/diskstats to detect rollover, waits until night and device idle and device on carger, creates temporary swap on $HOME, turns off and on mmcblk0p3, deactivates and deletes temporary swap?
 

The Following 3 Users Say Thank You to shadowjk For This Useful Post: