Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,164 Members 38,630 Now Online
XDA Developers Android and Mobile Development Forum

Possible ram fix for 4.3, NEED TESTERS!

Tip us?
 
@non4
Old
#1  
@non4's Avatar
Senior Member - OP
Thanks Meter 746
Posts: 3,323
Join Date: Jun 2012
Location: Gothicus
Default Possible ram fix for 4.3, NEED TESTERS!

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
If you don't want it ROOTED then DONT LEAVE IT WITH ME!
The Following 3 Users Say Thank You to @non4 For This Useful Post: [ Click to Expand ]
 
MixoMaxoViper
Old
#2  
MixoMaxoViper's Avatar
Senior Member
Thanks Meter 29
Posts: 189
Join Date: Jan 2014
Location: POLSKA
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

XPERIA SP-DISCOPHONE

ANDROID VERSION: 4.3
BUILD: .205
KERNEL: .205
ROM: http://forum.xda-developers.com/xper...4#post55540984-SpaceCaker StAOSP Hybrid ROM
 
Daniel D.
Old
#3  
Daniel D.'s Avatar
Senior Member
Thanks Meter 299
Posts: 870
Join Date: Apr 2012

 
DONATE TO ME
I think Supercharger solve those problems this way for two years now.
New: Sony Xperia SP C5303 (locked BL) - 12.1.A.1.205
Old: Sony Xperia Arc S LT18i (unlocked BL) - My Custom ROM (.587) - LuPuSv16_R1 - V6 SuperCharger - Mounts2SD

German Translations made by me:
XDA: Blurred System UI | Xperia SystemUI v10.1 | Advanced Xperia Z Launcher 2.0.6b
PlayStore: ES File Explorer v3 | SManager | Weather & Clock Widget | Skyrim Alchemy FREE & Skyrim Alchemy PRO
 
@non4
Old
#4  
@non4's Avatar
Senior Member - OP
Thanks Meter 746
Posts: 3,323
Join Date: Jun 2012
Location: Gothicus
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
If you don't want it ROOTED then DONT LEAVE IT WITH ME!
 
poran123
Old
#5  
poran123's Avatar
Senior Member
Thanks Meter 54
Posts: 656
Join Date: Aug 2012
Location: Shillong
asphalt 8 close by itself if i play tokyo track.. on other track game works nicely
 
@non4
Old
#6  
@non4's Avatar
Senior Member - OP
Thanks Meter 746
Posts: 3,323
Join Date: Jun 2012
Location: Gothicus
Quote:
Originally Posted by poran123 View Post
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
If you don't want it ROOTED then DONT LEAVE IT WITH ME!
 
poran123
Old
#7  
poran123's Avatar
Senior Member
Thanks Meter 54
Posts: 656
Join Date: Aug 2012
Location: Shillong
Quote:
Originally Posted by @non4 View Post
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: [ Click to Expand ]
 
@non4
Old
(Last edited by @non4; 11th March 2014 at 10:21 PM.)
#8  
@non4's Avatar
Senior Member - OP
Thanks Meter 746
Posts: 3,323
Join Date: Jun 2012
Location: Gothicus
Quote:
Originally Posted by poran123 View Post
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
If you don't want it ROOTED then DONT LEAVE IT WITH ME!
The Following User Says Thank You to @non4 For This Useful Post: [ Click to Expand ]
 
freedom74
Old
(Last edited by freedom74; 11th March 2014 at 10:07 PM.)
#9  
Senior Member
Thanks Meter 48
Posts: 156
Join Date: Feb 2011
Location: Belgrade
Quote:
Originally Posted by @non4 View Post
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...
The Following User Says Thank You to freedom74 For This Useful Post: [ Click to Expand ]
 
@non4
Old
#10  
@non4's Avatar
Senior Member - OP
Thanks Meter 746
Posts: 3,323
Join Date: Jun 2012
Location: Gothicus
Quote:
Originally Posted by freedom74 View Post
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
If you don't want it ROOTED then DONT LEAVE IT WITH ME!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes