Hey! Tested it out. So far, so good! I don't notice a huge difference rhough, since I was generally happy with the performance in the first place. But still, excellent work!

Just one quick question, can someone explain to me how to interpret the script the OP posted when someone complained about a performance decrease instead of seeing an improvement? What are the default values for ram usage anyway? Rough estimate?

if you put the backgroup ram limits too low, like in here, it means that OOM manager will start killing some background processes -> leads to slower startup times since you have to start the applications again when you start to use then vs. just starting from background. Those changes to swappiness and background priorities can make application respond a bit faster, but I would believe that low ram limits on backgroup processes are causing negative impacts aswell as framework needs to restart killed processes.

First of all - N9 (and N950) is not using any storage device (neither eMMC nor OneNAND) for swapping. It uses an in-memory compressed swap (ramzswap) instead. So, there should be no noticeable application lockups.

Second thing - the "from the factory" setup was tested for an average end user usage scenario (can't tell exact details, but it's pretty wide in terms of the apps used in it). As the average can be quite distant from some particular user's scenario, that user can see some improvements (or otherwise) after applying this mod.