Memory tweaks
Speaking of memory tweaks here's a ex manager file for sysctl tweaks. Extract the zip, Just load the file in the tools>user settings>load file
These settings are more to prevent system lockups after reducing swap
For future reference here's a list of recommendations
1. Swappiness does not disable swap, it just reduces the tendency for the kernel to use swap until a certain threshold is reached (watermark in the zone) which you can't set
Under the memory tab
2. Dirty ratio- set this to a higher value because its the maximum percentage that dirty pages are stored in ram, mine is 80
3. Dirty background ratio- set it to anything you want and see what happens. System stores dirty pages until it reaches this percentage of ram used and then calls the flusher. System lockups occur when too much dirty data is being written to disk at once. To prevent lockups reduce this to a low value like 5, otherwise set to a higher value to reduce writes. Mine is set to 40
4. Dirty writeback centisecs- is the interval at which the flusher daemon is woken up to write out dirty data. Set it higher to delay writes
5. Min free kbytes - don't touch it, won't effect daily usage
6. Vfs cache pressure - set it to a moderate value, the lower the value the more likely the kernel is to retain cache. Any lower than 20 is not recommended by me unless you have a drop cache script running every morning. If not then I guarantee your phone will be sluggish by the next morning due to too much cache being unused. Mine is set to 40, default is 100.
7. Overcommit ratio - ignore it, don't even know why it's here since afaik it only is applicable if overcommit memory is set to 2. This is never the case since its always set to 1 by default which means always allocate memory on request without checking free mem. If there is no mem then OOM is called. Setting it to 2 will never allocate new memory and will instantly cause a kernel panic. Tldr: has no effect on android