• 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

Well, this works rather well, except I made the script 66mb by just removing the 2. 256 is way to big for our phone. Remember this is compressed into the ram of the phone. My recommendations are to set swap to around 60mb and do the same for swap on data.
I will look into speeding up this process .
 
  • Like
Reactions: LilBit
Upvote 0
Well, this works rather well, except I made the script 66mb by just removing the 2. 256 is way to big for our phone. Remember this is compressed into the ram of the phone. My recommendations are to set swap to around 60mb and do the same for swap on data.
I will look into speeding up this process .


Yup...I checked compressed size against original data size and came up with a 2.5:1 ratio. So a 60mb disksize is really like having 150mb on zram alone.
 
Upvote 0
the pound goes at the beginning of the line like so:

#echo "6400,8960,19200,23040,38400,64000" > /sys/module/lowmemorykiller/parameters/minfree;


I just noticed that I somehow have two S02zRam files in my init.d folder. Doesn't seem right. One is S02zRam and the other is S02zRam.bak. Ummmmm :thinking::thinking::thinking: Is this part of the plan to have a zRam backup in there? Could it be causing some of the lag ish?

Update: I went ahead and deleted the .bak version
 
Upvote 0
Yup...I checked compressed size against original data size and came up with a 2.5:1 ratio. So a 60mb disksize is really like having 150mb on zram alone.

What I'm trying to say is you don't need a huge file. You will never fill it up. On another project we have issues with memory allocation and swap helps for testing. So with 0megs free and a 200meg swap, it still at its max only uses 115meg. And that's completely running everything off swap.
 
Upvote 0
What is swapiness? And how can I go there?

Basically swappiness is more ram but it's slower than the normal ram (how I understand it). It uses part of your sdcard when your regular ram gets close to capacity. The number reflects how often the swap partition gets used in percentages. 60 swappiness means it will get used 60% of the time. I have mine at 60 right now.

How to get to it?
Here's the path: system/etc/init.d/S02zRam, edit the script and you'll see the swappiness in there. Save and exit then reboot. Voil
 
Upvote 0
What I don't understand is the minfree line in the zram script and the minfree settings in their folder in sys/module/lowmemorykiller/parameters/minfree . Does the init.d script overrun the module folder settings for minfree? I'm assuming that the sys/module minfree folder is the stock settings location and the init.d does in fact trump out. Hope I'm clear in my question. Splitting hairs, I know, but I'm a geek like that haha
 
Upvote 0
What I'm trying to say is you don't need a huge file. You will never fill it up. On another project we have issues with memory allocation and swap helps for testing. So with 0megs free and a 200meg swap, it still at its max only uses 115meg. And that's completely running everything off swap.


I know...I was agreeing with you :)
 
  • Like
Reactions: Deleted User
Upvote 0
Basically swappiness is more ram but it's slower than the normal ram (how I understand it). It uses part of your sdcard when your regular ram gets close to capacity. The number reflects how often the swap partition gets used in percentages. 60 swappiness means it will get used 60% of the time. I have mine at 60 right now.

How to get to it?
Here's the path: system/etc/init.d/S02zRam, edit the script and you'll see the swappiness in there. Save and exit then reboot. Voil
 
Upvote 0
What I don't understand is the minfree line in the zram script and the minfree settings in their folder in sys/module/lowmemorykiller/parameters/minfree . Does the init.d script overrun the module folder settings for minfree? I'm assuming that the sys/module minfree folder is the stock settings location and the init.d does in fact trump out. Hope I'm clear in my question. Splitting hairs, I know, but I'm a geek like that haha


Minfree is set in init.rc which is in the ramdisk of boot.img and can't be edited except by unpacking the boot.img and yes that line in the script does override those settings
 
  • Like
Reactions: Smoothkaos
Upvote 0
Is anybody else having wifi connecting but not passing thru data?

no, try another network and confirm it's not the router, I had an older router that would need to be rest once in a while when I changed ROMs or updated...

if that doesn't solve it I still think you might just need to do a data reset or re-flash from n00b VI to VII...

The tweaks here should have no effect on your wifi.
 
Upvote 0
I updated the OP with a new zip today, I have been running those settings for a couple days.

I still see a slight lag in the settings menu once in a while but other than that it's been pretty reliable.

I will continue to play but wanted to give an update that's stable.

I took dtm's advice and brought the size down (that's actually what I had originally but before we set the minfree values and it was using the zRam up with stock values)

I think next I will play with swappiness and the other lines I left in there but commented out for the time being.

Funny thing is that after all that I landed on a zRam implementation that's basically the same as the script we used for normal swap in n00b VI.

I am not 100% zRam has much benefit over swap, seems like a good idea and I like that it's compressed but it's been a little headache LOL
 
Upvote 0
I updated the OP with a new zip today, I have been running those settings for a couple days.

I still see a slight lag in the settings menu once in a while but other than that it's been pretty reliable.

I will continue to play but wanted to give an update that's stable.

I took dtm's advice and brought the size down (that's actually what I had originally but before we set the minfree values and it was using the zRam up with stock values)

I think next I will play with swappiness and the other lines I left in there but commented out for the time being.

Funny thing is that after all that I landed on a zRam implementation that's basically the same as the script we used for normal swap in n00b VI.

I am not 100% zRam has much benefit over swap, seems like a good idea and I like that it's compressed but it's been a little headache LOL

Thank you for all that effort MrBobo. Your work is appreciated. Now that I have time (weekend woohoo!) I'm going to get to work on different tests and try to help out. I'm confident we'll get it :D


Oh goody!! I know you guys will get it!!:D
I'm in the cheering section:dancing:
 
  • 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