Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Possible ram fix for 4.3, NEED TESTERS!

OP @non4

11th March 2014, 09:30 PM   |  #1  
@non4's Avatar
OP Senior Member
Flag Gothicus
Thanks Meter: 817
 
3,720 posts
Join Date:Joined: Jun 2012
More
So a while ago I discussed with my friend rohit joshi (developer of tegra overclock) about a system file called adj, and how it may be responsible for sometimes disturbing ram behaviour. It couldn't be adjusted AFAIK on 4.1, but it seems to allow modification on 4.3.

1: Mount system R/W

2: Open /sys/module/lowmemorykiller/parameters/and open the file named adj

3: Change it to the following: 0,10,25,50,80,150 and save the file

Now please observe ram management in intense situations such as using chrome or heavy games, so far I have noticed no irrational behavior like asphalt 8 committing suicide etc, but its early days and we need more data. Custom values are welcome but please mention what you used

Note: These values reset upon reboot

Sent while my supervisor wasn't looking
The Following 3 Users Say Thank You to @non4 For This Useful Post: [ View ]
11th March 2014, 09:43 PM   |  #2  
MixoMaxoViper's Avatar
Senior Member
Flag POLSKA
Thanks Meter: 29
 
207 posts
Join Date:Joined: Jan 2014
More
Great,work on eXistenZ 2.1.5!
Before:429MB ram free
After:563MB ram free!
On stock without this mod i have 429mb free LOl
11th March 2014, 09:49 PM   |  #3  
Daniel D.'s Avatar
Senior Member
Thanks Meter: 317
 
911 posts
Join Date:Joined: Apr 2012
Donate to Me
I think Supercharger solve those problems this way for two years now.
11th March 2014, 09:50 PM   |  #4  
@non4's Avatar
OP Senior Member
Flag Gothicus
Thanks Meter: 817
 
3,720 posts
Join Date:Joined: Jun 2012
More
Hmm this isn't really it's purpose, also these values fluctuate on their own btw . It's supposed to stop foreground processes and other important stuff from getting killed in low memory situations, for example once my alarm stopped responding because I was busy extracting a zip file. This fix is for this kind of wierdness

Sent while my supervisor wasn't looking
11th March 2014, 10:28 PM   |  #5  
poran123's Avatar
Senior Member
Flag Shillong
Thanks Meter: 87
 
798 posts
Join Date:Joined: Aug 2012
More
asphalt 8 close by itself if i play tokyo track.. on other track game works nicely
11th March 2014, 10:54 PM   |  #6  
@non4's Avatar
OP Senior Member
Flag Gothicus
Thanks Meter: 817
 
3,720 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by poran123

asphalt 8 close by itself if i play tokyo track.. on other track game works nicely

Hmm just spotted your comment there, I've been running Tokyo fine on high graphics, have you done anything else to the ram like change the minfrees? Feel free to play around with these values and report if you have any luck

Sent while my supervisor wasn't looking
11th March 2014, 11:02 PM   |  #7  
poran123's Avatar
Senior Member
Flag Shillong
Thanks Meter: 87
 
798 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by @non4

Hmm just spotted your comment there, I've been running Tokyo fine on high graphics, have you done anything else to the ram like change the minfrees? Feel free to play around with these values and report if you have any luck

Sent while my supervisor wasn't looking

i didnt change anything only did what is written on the op....
The Following User Says Thank You to poran123 For This Useful Post: [ View ]
11th March 2014, 11:12 PM   |  #8  
@non4's Avatar
OP Senior Member
Flag Gothicus
Thanks Meter: 817
 
3,720 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by poran123

i didnt change anything only did what is written on the op....

Lol, I just got the dreaded home crash! Will continue to experiment, it makes no sense how bad it is, I just ran this game on high graphics on a galaxy s2 and homescreen didn't even redraw when I was done!

I found some info on this driver here:
https://android.googlesource.com/ker...memorykiller.c

It might actually be worth trying higher values instead of lower ones from what I'm reading here

Sent while my supervisor wasn't looking
Last edited by @non4; 11th March 2014 at 11:21 PM.
The Following User Says Thank You to @non4 For This Useful Post: [ View ]
11th March 2014, 10:35 PM   |  #9  
Senior Member
Flag Belgrade
Thanks Meter: 50
 
158 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by @non4

3: Change it to the following: 0,10,25,50,80,150 and save the file

Could you explain more what these values are...
is it oom_adj parameters
and why changing them so drastically?
Default values are 0,58,117,235,529,1000

Shouldn't we try first minfree parameters which are also IMHO odd...
15000,17532,20065,22598,25131,30263 which equals (Nx4/1024)
58.6 68.5 78.4 88.3 98.2 118.2 Megabytes

I change mine to 8192,16384,18432,24576,32768,65536 or 32,64,72,96,128,256 Mb

so far so good... will see over a longer period of time...
Last edited by freedom74; 11th March 2014 at 11:07 PM.
The Following User Says Thank You to freedom74 For This Useful Post: [ View ]
11th March 2014, 10:51 PM   |  #10  
@non4's Avatar
OP Senior Member
Flag Gothicus
Thanks Meter: 817
 
3,720 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by freedom74

Could you explain more what these values are...
is it oom_adj parameters
and why changing them so drastically?
Default values are 0,58,117,235,529,1000

Shouldn't we try first minfree parameters which are also IMHO odd...
15000,17532,20065,22598,25131,30263 which equals (Nx4/1024)
58.6 68.5 78.4 88.3 98.2 118.2 Megabytes

I change mine to 8192,16384,18432,24576,32768,65536 or 32,64,72,96,128,256 Mb

so far so good... will se over a longer period of time...

I changed them this way simply based on advice given, as I say different values are welcome I don't fully understand it myself however what I know is it seems to be working. I have been told that newer snapdragon devices have different adjacent values to other phones. This causes apps that SHOULD be closed to instead not be closed and so the system resorts to closing your fave game or whatever. Adjacent and minfrees have a relationship but I'm not sure exactly how it works, will try and find some better info on it

Sent while my supervisor wasn't looking
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes