[DEV] n00b ROM zRAM vm etc


  1. MrBobo

    MrBobo Well-Known Member

    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)

    Advertisement
    :
    i2f, RedMurkal, Smoothkaos and 5 others like this.
  2. MrBobo

    MrBobo Well-Known Member

    so far I am finding this fairly responsive with minimal lag. I will continue testing, I just wanted to share progress and what I was up to.
  3. LilBit

    LilBit Well-Known Member Contributor

    Thank You Mr.Bobo!!


    LilBit was here----------- (hehehe)
    Smoothkaos likes this.
  4. Smoothkaos

    Smoothkaos Well-Known Member

    @ 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
  5. MrBobo

    MrBobo Well-Known Member

    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.
    aaanadie and Smoothkaos like this.
  6. Smoothkaos

    Smoothkaos Well-Known Member

    I agree quite honestly. That along with the zram is THE answer for the Warp IMHO
  7. Konceptz

    Konceptz Well-Known Member

    downloaded and installed....running now and will post any issues and results.....
  8. Smoothkaos

    Smoothkaos Well-Known Member

    Flashed the test and I'm noticing that I'm zipping right into apps I open. Only lag is actually very bad and it's after I open then close an app and then go into my app drawer. I'm getting about a 4-10 second screen load before it actually displays the apps. Anybody else have this?
  9. oscar112709

    oscar112709 Well-Known Member

    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
  10. downthemachine

    downthemachine Developer Incognito VIP Member

    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
  11. SicFreak

    SicFreak The Message is SIC!

    I haven't installed these latest updates...but from yesterday's I'm flying now... Took a while for things to flow properly, but now they are and I'm pretty satisfied with it.
    LilBit likes this.
  12. mikegmoney

    mikegmoney Well-Known Member

    Don't know if any has has this issue yet,but after I flashed the zram test build I completely lost 3g...
  13. Smoothkaos

    Smoothkaos Well-Known Member

    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.
  14. Smoothkaos

    Smoothkaos Well-Known Member

    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
  15. croy2007

    croy2007 Resident Punisher Guide

    I don't know what's different for me. I have tried everything but I can't get it to lag for me I have been running the test build for 12 hours.
  16. Smoothkaos

    Smoothkaos Well-Known Member

    @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
  17. downthemachine

    downthemachine Developer Incognito VIP Member

    I'm pretty sure the lag has to do with either the size of the swap, or vm.swappiness.
    Set it lower
    MrBobo likes this.
  18. Tigatron

    Tigatron Well-Known Member

    Ive got swapiness set to 80 and its running much better.
    RedMurkal and MrBobo like this.
  19. MrBobo

    MrBobo Well-Known Member

    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?
  20. Smoothkaos

    Smoothkaos Well-Known Member

    I too tried vm.swappiness @ 80 and the first 5 minutes have been good regarding lag
  21. LilBit

    LilBit Well-Known Member Contributor

    Same here, no test builds for me yet. I'm gonna wait till you guys get this one figured out!!:D Meanwhile I'm good to go with the original zram update:)
  22. Smoothkaos

    Smoothkaos Well-Known Member

    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 :)
    LilBit likes this.
  23. LilBit

    LilBit Well-Known Member Contributor

    LOL:D Well, The Holiday and all, everyone may slow down on this project till after Turkey day!!:)
    Smoothkaos and oscar112709 like this.
  24. MrBobo

    MrBobo Well-Known Member

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

    #echo "6400,8960,19200,23040,38400,64000" > /sys/module/lowmemorykiller/parameters/minfree;
    Smoothkaos likes this.
  25. oscar112709

    oscar112709 Well-Known Member

    What is swapiness? And how can I go there?
Loading...

Share This Page