• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] [DEV] n00b ROM zRAM vm etc

MrBobo

Android Expert
Jul 12, 2011
1,203
1,316
Dimondale, MI
Thread to separate out some beta/dev testing while I tweak the zRam and the VM settings for n00b VII

Issue Background lag was noticed after I implemented zRam

Flashable Test Zip

Music I am listening to while I work :)

Changes in-test currently: (test contents of script: /system/etc/init.d/S02zRam)

#!/system/bin/sh
sleep=1;
echo "1536,2048,4096,8192,16384,24576" > /sys/module/lowmemorykiller/parameters/minfree;
echo $((64*1024*1024)) > /sys/block/zram0/disksize;
mkswap /dev/block/zram0;
swapon -p 10 /dev/block/zram0;
sysctl -w vm.swappiness=50;
sysctl -w vm.vfs_cache_pressure=70;
sysctl -w vm.dirty_ratio=90;
sysctl -w vm.dirty_background_ratio=70;

Reading Materials for info on these settings:

RootzWiki info, I like the explanation of what each things done about half way down the page (I am not proposing using all of the scripts, nor do I affirm the claims about battery life)
 
@ Mrbobo - I see that in the latest script that the rest of us are using, we are set at 60 swappiness. What was the initial swappiness set at in the first zip you put out early yesterday morning (the 1st of the 2)? After running the current script for 24 hours and counting and with 124 apps with 6 active widgets running I'm not as snappy as I was after first installing. It also seems that the first zip had me at my peak. Don't take this as I'm not happy with the current setup though because I'm still better off than the with the old swap setup. Just trying to find out more information on what the difference is between the two :D
 
Upvote 0
@ Mrbobo - I see that in the latest script that the rest of us are using, we are set at 60 swappiness. What was the initial swappiness set at in the first zip you put out early yesterday morning (the 1st of the 2)? After running the current script for 24 hours and counting and with 124 apps with 6 active widgets running I'm not as snappy as I was after first installing. It also seems that the first zip had me at my peak. Don't take this as I'm not happy with the current setup though because I'm still better off than the with the old swap setup. Just trying to find out more information on what the difference is between the two :D

60 is the default swappiness, so the second zip yesterday didn't change anything for that, I just put that in there as a placeholder.

The real change was this line: echo "6400,8960,19200,23040,38400,64000" > /sys/module/lowmemorykiller/parameters/minfree;

I got those values from what blooddawn had on the ct mod ROM.

I am leaning towards making those numbers smaller at this point like in the first post of this thread.

I think the lowmemorykiller/parameters/adj setting in the op will also help a lot. I am running this set up now and will try it overnight.

if you want to have it how I first released it, just put a # in front of the echo line above to disable lowmemory killer settings (they will just revert back to stock).

I think swappiness might be part of the answer, I am working on finding the sweet spot.
 
Upvote 0
Since you're having extended power menu issues too, I'd probably reflash the VII update. That'll bring you back to stock settings and then flash the zram update from the other thread (unless of course it's already been fixed in the OP with the zram update with minfree included, but MrBobo might have to confirm). I think your flash got jacked somehow buddy.
 
Upvote 0
Yes I do 10 sec waiting to for the apps to show up I get a blank screen....... but the lag comes from after a reboot but then I open voltage app and pull the two levels high then there no more lag.... but still get that. 10sec missing up other then that its good to me

It's weird huh? It's only happening to me when I open and then close an app and go back to my main screen in holo launcher but that only has about a 2-3 second lag. However, when I go to the app drawer I get that longer lag. Apps blast right open though and I don't usually go to my drawer so not a deal breaker. STILL better than scripts running in n00b_VI
 
Upvote 0
60 is the default swappiness, so the second zip yesterday didn't change anything for that, I just put that in there as a placeholder.

The real change was this line: echo "6400,8960,19200,23040,38400,64000" > /sys/module/lowmemorykiller/parameters/minfree;

if you want to have it how I first released it, just put a # in front of the echo line above to disable lowmemory killer settings (they will just revert back to stock).

@Mrbobo - I just want to be clear on where exactly the # needs to be in that line... Can you create the line here where the # should be please? I wanna mess with this too and to quickly disable it while testing is a great tool to have in my belt
 
Upvote 0
Have you thought about disabling swap on data? Honestly if you are not running through a million cached pages, dual swap isn't needed. Zram is a great function when implimented correctly.but you still need to compress and decompress pages

I did remove the 55swap init.d completely so it's just zRam now, is that what you are saying?

what do you mean about compress/decompress pages, is that something I need to adjust or are you just commenting that zRam stores compressed pages?
 
Upvote 0
I also went back to the last update and took the test build off. Was lagging a bit so I put swappiness @ 80 and it's decent now. Still, the best was the very first zip that mrbobo put out after the VII Update but I got turned around and don't know how to get back to that since that first zip was updated too. I can't figure out where the # symbol should go in that line. Awaiting mrbobo's direction on that question still :)
 
  • Like
Reactions: LilBit
Upvote 0
I also went back to the last update and took the test build off. Was lagging a bit so I put swappiness @ 80 and it's decent now. Still, the best was the very first zip that mrbobo put out after the VII Update but I got turned around and don't know how to get back to that since that first zip was updated too. I can't figure out where the # symbol should go in that line. Awaiting mrbobo's direction on that question still :)

LOL:D Well, The Holiday and all, everyone may slow down on this project till after Turkey day!!:)
 
Upvote 0
I also went back to the last update and took the test build off. Was lagging a bit so I put swappiness @ 80 and it's decent now. Still, the best was the very first zip that mrbobo put out after the VII Update but I got turned around and don't know how to get back to that since that first zip was updated too. I can't figure out where the # symbol should go in that line. Awaiting mrbobo's direction on that question still :)

the pound goes at the beginning of the line like so:

#echo "6400,8960,19200,23040,38400,64000" > /sys/module/lowmemorykiller/parameters/minfree;
 
  • Like
Reactions: Smoothkaos
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones