[Q] Worst RAM Management! - Xperia SP Q&A, Help & Troubleshooting

Hi! First of all I have a question... Why our lovely Xperia SP has that memory management? No matter what I do it becomes laggy after some hours (android 4.3), but after rebooting it is just fine, over 380/400 MB free!
I have been investigating a little bit in my owm phone and I found this: No matter what I do changing kernel or rom I can't change the values on /sys/module/lowmemorykiller/parameters/adj they are (always): 0,58,117,235,529,1000
I was wondering if this could be the origin of all our problems with RAM management! Please answer.. As far as I see this options
1. Investigate if changing this values make something important
2. Ask Sony (with signatures) for an update, or at least fixing all 4.3 bugs!, cause I was in Vanir AOSP 4.4.2 and it has always over 400 Mb RAM free, and my firend's moto g in 4.4.2 has the same, BUT it has worse gaming (Vanir), pease help?
I'm going back to 4.1.2 and see if it can be changed there
Thanks!
Edit: I just flashed stock indian tft 2.254 and RAM its damn good almost 500MB free, i'll test and see if it stills "eating it"

4.3 is disgusting. Its time Sony must hire new developers.
Ram management is awful. Even after using greenify, Ram is below 200mb. Unnecessary app and services are running in the background like mirrorlink, throw which I dont use.
Another weird problem after 4.3 update is phone automatically switches off itself when connected to charging overnight. After switching it on the uptime is over 8 hours. :laugh:

sourabhp said:
4.3 is disgusting. Its time Sony must hire new developers.
Ram management is awful. Even after using greenify, Ram is below 200mb. Unnecessary app and services are running in the background like mirrorlink, throw which I dont use.
Another weird problem after 4.3 update is phone automatically switches off itself when connected to charging overnight. After switching it on the uptime is over 8 hours. :laugh:
Click to expand...
Click to collapse
You are right not just sony but almost every company, comming from HTC and was the same :/
But I'm now running on stock 12.0.A.2.254 (indian TFT) and after debloating a little bit and odexing with titanium backup i'm really happy for now, RAM management is great I always have over 400 Mb free! And obviusly it has less bugs than 4.3, I highly recommend it if you are up to accept lossing the useless Sony's update

I think if you want to change the values if /sys/module/lowmemorykiller/parameters/adj you first need to mount / as R/W. You find that option in. ES File Manager on the sidebar below, click on Root Explorer and than on Mount as RW.
Gesendet von meinem Sony Xperia SP C5303

Schokonuss said:
I think if you want to change the values if /sys/module/lowmemorykiller/parameters/adj you first need to mount / as R/W. You find that option in. ES File Manager on the sidebar below, click on Root Explorer and than on Mount as RW.
Gesendet von meinem Sony Xperia SP C5303
Click to expand...
Click to collapse
will try thanks!

I actually covered this adj when discussing ram issues with a dev friend of mine. They should be much lower, however it seems impossible to edit. Might play with deeper permissions like chown and report if I have success
Edit: ok I actually managed to change it with just mount R/W, this didn't work on 4.1 rom. Have roughly halved the values, will report if I have any success
Sent while my supervisor wasn't looking

@non4 said:
I actually covered this adj when discussing ram issues with a dev friend of mine. They should be much lower, however it seems impossible to edit. Might play with deeper permissions like chown and report if I have success
Edit: ok I actually managed to change it with just mount R/W, this didn't work on 4.1 rom. Have roughly halved the values, will report if I have any success
Sent while my supervisor wasn't looking
Click to expand...
Click to collapse
Yeah I got back to 4.3 to test what you said in your own post, I made a script, but on 4.1 still better and more RAM, and it has no.bugs, however it looks that 4.3 is smoother while gaming... what do you think? please give me your personal opinion! :3
oh btw my current values are 0,10,20,40,90,150 if you wanna try them... (stock minfrees)

Related

[Q] Full RAM after using a some apps... with a little analysis

After fixing some lags with I/O system by using filesystem LagFix I still have a Lag problem in my system and I think it's not related to Samsung.
I think this could be an Android problem.
After a fresh reboot I get 124MB of free RAM.
BUT... every day I need to reboot the phone because after 3 hours it became laggy.
Now I analysed this and read a bit about the memory management on several forums and was able to reproduce the lag 2minutes after reboot.
I just need to use much applications one after another to raise the RAM usage for every application.
When the free RAM reaches 40MB I think the system clears some pieces for using it for the app I now want to use and there is the LAG.
Is there any fix for Android not caching every activity of an application in the RAM?
Now for me Android feels like: Usage -> Full RAM -> Lag
Sorry for the new thread but after 2 hours of research I didn't find anything useful over search function.
Yea, every program should have as much ram available as their size. 2gig for program storage on sgs, so there should be the same amount of ram ;D Anyway, theres still less memory for programs on the sgs than for example in the N1. I'd say there is about 384MB of ram total on the sgs and not the 512 claimed.
Sent from my GT-I9000 using XDA App
Not just the RAM for the apps... there's much more...all mails from internet, all google talk conversations, the wather I checked out from internet with any widget, feels like every interaction is cached into the RAM until it reaches the 40mb mark and after that every interaction on my system is laggy... for example: opening the notification bar needs 2-3 seconds.
I already talked to N1 users with the same problem
DasLeo said:
I already talked to N1 users with the same problem
Click to expand...
Click to collapse
Heading out the door in a minute so can't comment on the rest, but I strongly disagree with that part of your statement.
As an N1 owner I've NEVER seen lag like I suffer on the SGS. Never seen the absolute FREEZE in the GUI like the SGS gets.
I'm running FroYo on the N1 now, so can't compare side-by-side to the SGS things like memory usage, but I don't think that's the issue here if you're going to use the N1 as a comparison, despite other users complaining of lag.
You might try Autokiller or the free memory manager app from the Market and see if that improves thing, they'll keep more or less memory free depending on settings. You could test how soon lag comes with default, minimal, and aggressive settings.
I never testet Froyo because everyone said, it's unstable but for me it seems like froyo has other RAM management than Eclair when you said you can't reproduce this problem.
I'm already using a task killer... I have my main apps ignored or excluded and most time there are 2 or 3 apps which will be killed after lock or time or what else.
What's the problem here... if I would use a PC with 512MB RAM and use only 10 small applications, it won't cache everything in the ram until it's full.
Hi, didn't read all the posts, but u should look into the RFS file system, which is samsung proprietery file system. It has a very bad implementation on android (i could be wrong). As for ram, the phone has 512 mb, but 128 are reserved for Gsm/data connection. Just think if you had an incoming call and all your ram was in use, u had to wait for the system to clear up some memory before being able to receive the call physiclly. That would be a long wait.
I could be wrong and sorry for the bad english.
Sent from my GT-I9000 using XDA App
Have you ever tried "Minfreemanager" app?
It can change the minimum available memory level in different app usage.
The device must be rooted first.
Then select "Aggressive" preset and see the result.
rkantos said:
. I'd say there is about 384MB of ram total on the sgs and not the 512 claimed.
Click to expand...
Click to collapse
If this turns out to be true, samsung is up for a massive lawsuit from MANY angry customers who've been mislead due to false marketing
tra33372 said:
Have you ever tried "Minfreemanager" app?
It can change the minimum available memory level in different app usage.
The device must be rooted first.
Then select "Aggressive" preset and see the result.
Click to expand...
Click to collapse
DAMN!!! Nice app... it does exactly what I need cleans my RAM so I'll get 120MB and after that loading of apps is much faster than starting apps with Android included RAM cleaning.
It just cleans my RAM like a reboot but without the reboot
This should be a temporary solution until someone finds a better solution or until froyo is released.
I would like to have an application like this with an autoclean option on 2 hours
Guys please,
Getting off-topic here. Here is Android Development.
Not Q&A or General.
Please post in the right section.
Here is getting too many off-topics that pose no relation to Android Development.
Too cluttered.
Thanks
DasLeo said:
DAMN!!! Nice app... it does exactly what I need cleans my RAM so I'll get 120MB and after that loading of apps is much faster than starting apps with Android included RAM cleaning.
It just cleans my RAM like a reboot but without the reboot
This should be a temporary solution until someone finds a better solution or until froyo is released.
I would like to have an application like this with an autoclean option on 2 hours
Click to expand...
Click to collapse
Auto killer is better.Its exactly the same as minfreemanager but can be made to apply at boot.Minfree manager resets itself at boot.
I use Memory Booster Lite (free version) app to free up memory, must do that manually but it works very well, if you buy the app it free up memory automaticly.
Pika007 said:
If this turns out to be true, samsung is up for a massive lawsuit from MANY angry customers who've been mislead due to false marketing
Click to expand...
Click to collapse
The phone does have 512mb of ram. It just isn't used properly.
MOJO783010 said:
Hi, didn't read all the posts, but u should look into the RFS file system, which is samsung proprietery file system. It has a very bad implementation on android (i could be wrong). As for ram, the phone has 512 mb, but 128 are reserved for Gsm/data connection. Just think if you had an incoming call and all your ram was in use, u had to wait for the system to clear up some memory before being able to receive the call physiclly. That would be a long wait.
I could be wrong and sorry for the bad english.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
No, wrong. The reserved ram is in the form of a ram disk, which seems to be a bit oversized. Not really sure why a ram disk is needed at all, personally.
sammy555 said:
Auto killer is better.Its exactly the same as minfreemanager but can be made to apply at boot.Minfree manager resets itself at boot.
Click to expand...
Click to collapse
This is the correct solution. the JF* series of firmwares have very bad default settings for killing unused apps. Use this app to set them a bit better and you shouldn't have any problems.
Pika007 said:
If this turns out to be true, samsung is up for a massive lawsuit from MANY angry customers who've been mislead due to false marketing
Click to expand...
Click to collapse
It does have 512 of ram, but some is partitioned off for the phone, so that you can always receive phone calls. Just about every device does this, because users would be more upset if they couldn't pick up the phone until they had closed a bundle of running programs. Don't you think that people here would have noticed earlier if the SGS physically had less ram than claimed ?
As far as the OP is concerned, sounds like you are just running too many programs at once. Its not an android problem, its user error.
Any task manager, but particularly an auto-killer will set you right, although alternatively you could try not leaving every app open when you're finished with it. You think your PC would run ok if you left one game open while you opened another ?
DasLeo said:
I never testet Froyo because everyone said, it's unstable but for me it seems like froyo has other RAM management than Eclair when you said you can't reproduce this problem.
I'm already using a task killer... I have my main apps ignored or excluded and most time there are 2 or 3 apps which will be killed after lock or time or what else.
What's the problem here... if I would use a PC with 512MB RAM and use only 10 small applications, it won't cache everything in the ram until it's full.
Click to expand...
Click to collapse
I wasn't comparing a N1 on FroYo to the SGS on Eclair. My comments were in regard to when I was on Eclair, which was several months...FroYo's only been available for a couple of months. What I said was since I'm on FroYo now, I can't compare side-by-side, but my experience with an N1 on Eclair was never any lag problem or GUI freezes.
Anyways, I also suggested you try Autokiller, and you missed that or misunderstood it by saying you already run a Task Killer (which is generally considered a bad idea, but I see you picked up on Autokiller after someone else suggested it. Enjoy.
Pika007 said:
If this turns out to be true, samsung is up for a massive lawsuit from MANY angry customers who've been mislead due to false marketing
Click to expand...
Click to collapse
Nah, all phones advertise the actual chip size in it, not the amount the system actually lets you use.
tra33372 said:
Have you ever tried "Minfreemanager" app?
It can change the minimum available memory level in different app usage.
The device must be rooted first.
Then select "Aggressive" preset and see the result.
Click to expand...
Click to collapse
Thank you. This removes almost all lag I'm experiencing.

RAM Usage - my last phone with 1gb?

Hey,
i want to discuss the RAM usage by apps especially on our RAZR i.
In the past few weeks i realized my phone was getting slower and slower, it's not nearly as fluent as it was once. It always kills apps when it shouldn't, WhatsApp doesn't run reliable etc (sometimes i get notifications MUCH later than i should and only after opening the app). Well, i have ~70mb RAM left.
Now comes the funny part, i don't think i use that much unnecessary apps. I don't play games, delete not used apps regulary. Easy Uninstaller shows me 96 apps (and yes, this is an unnecessary app, but it makes cleaning the phone much more comfortable - so it is allowed to stay)
So what kills the RAM?
Facebook Service - can't kill - 50mb
SRT AppGuard - to kill Facebooks GPS and Location sniffers - 25mb
Dropbox - Camera Upload - 34mb
Then there is some other stuff like WhatsApp, PowerAmp Service, Maps, which consume ~80mb in total.
Now here comes a special list:
Light Flow - 45mb
Nova Launcher - 60mb
3G Watchdog - 30mb
Lux - finally lowered auto brightness - 24mb
Smart WiFi Toggler - 27mb
SwiftKey - 63mb
Whats on that list? Basically everything i NEED to make the phone run the way it's intended to. This consumes 240mb of RAM. And those are all features that should be implemented into Android (WiFi Toggler, Lux, Light Flow) or run because the original is so bad that i can't stand it (Nova Launcher instead of stock alone because of homescreen alignment, 3G Watchdog [no prediction / clarity in stock monitor], SwiftKey).
Then there's the Moto stuff you can't deactivate:
SmartActions - 40mb
MotoCare (?) - 42mb
This is basically my RAM usage i can't get rid off. I am constantly suffering Android quitting apps when it shouldn't, even when i only switch between Opera / Chrome and Adobe Reader and stay in one app a bit too long it quits the other one. Even my old Desire HD - which had 768mb of RAM - did not do that, admittedly with a great AOKP rom.
How do you handle your RAM usage? Do you have remotely as much problems as i have to handle 1gb? I don't know what i could do to reduce my RAM usage. My new tablet, a Note 10.1, makes it feel even worse as everything runs so perfect, you just know that's the best that 4.1 will ever be. Right now, i have 700mb left. I never care about RAM usage and the best thing is, when i open an app i sometimes find out it was still running in the background, it instantly appears on the screen. The Moto needs a lot longer for it now and you feel it's an overloaded phone..
i got the same problems lol
thats why im looking for an app that kills apps that i no longer need in the moment and just restarts them when i need them (something like IOS does)
anyway some apps that you are using does not use as much ram in my phone
AW: RAM Usage - my last phone with 1gb?
Use Greenify to hibernate Apps if they are not in use. Works great here :thumbup:
Gesendet von meinem XT890 mit Tapatalk 2
---------- Post added at 04:15 AM ---------- Previous post was at 04:13 AM ----------
http://forum.xda-developers.com/showthread.php?p=38192418
Gesendet von meinem XT890 mit Tapatalk 2
AW: RAM Usage - my last phone with 1gb?
Gesendet von meinem XT890 mit Tapatalk 2
I guess it would be the perfect solution.. If I was rooted. I don't want to do it yet, I have to send it in because of the auxiliary port not working properly and I am only waiting for any friend to buy a new android so I could borrow his while the RAZR I is being repaired. But finally, thank you, I found a proper reason why I should root my phone. Maybe I'll try the app on my rooted note 10.1 even though I will never need it just to find out how it likes my apps.
I use an app called Fast Reboot Pro. It restarts all running apps to release memory. Doing this once a day keeps my phone slick. I recommend you try it. :thumbup:
Sent from my RAZR i
If you don't use SmartActions then you can disable it in the app menu. Should help a tiny bit!
---------- Post added at 02:01 PM ---------- Previous post was at 01:49 PM ----------
kkh786 said:
I use an app called Fast Reboot Pro. It restarts all running apps to release memory. Doing this once a day keeps my phone slick. I recommend you try it. :thumbup:
Sent from my RAZR i
Click to expand...
Click to collapse
I just installed Fast Reboot and it really does make a lot of difference. In one click of a button everything was like I just turned the phone off and on but it all happened within a second so much more conveniant. And you don't have to be rooted for it to work either.
I'll try this for a few days then buy the pro version.
Where the app menu to disable smart actions?
Sent from my RAZR i
ultim said:
Where the app menu to disable smart actions?
Sent from my RAZR i
Click to expand...
Click to collapse
Go into settings\apps\all apps
Find SmartActions in the list and click on it
If disable button is greyed out then you'll need to uninstall the updates first otherwise just click disable button at the top right.
Oops. I've accumulated 150 apps (need some editing), and run smartactions on my Razr i with, to my surpise, no noticeable slow-down or difficulty swopping between apps on my phone. I'm rooted, so Android firewall disables most of then when running on mobile data (with background data also disabled) but on wi-fi at home and work they all run - 845 RAM being used at the mo - 32 processes running. WiFi off at night though, one running app puts flight mode on. I usually do a manual reboot once a week, just to give the phone a break.
You should instal Pi-Lama 0.3 Most of the Motorola's bloatware are gone together with Blur stuff.
Mh .. I will send it in in maybe 3 weeks. When i get it back fixed, i think i'll do it. What i don't get about most phones on the market is that their hardware is really great but the customized Android is just awful. I don't get it.. Admittedly the Motorola UI is not that bad, but i prefer the stock android look. I find that only Samsung does a good job in customizing their software. Every other UI is unpractical, drains the battery or looks bad (my opinion) ..
I dont know how your Note tablet performs, but my GS3 was awful price to performance, it is neck and neck with the moto razr i and the moto is faster in single-running apps environment because of its very high clock and bandwith of the cpu. However, flipboard used 89mb and touchwiz thing used more than 120mb in total so, no cheers there.
No android customization is good enough. Most of them are pretty but not good enough. What's more, the GS3 died after 3 days, and no engenieer could explain it (sorry for bad level of english), it just died...
Regarding RAM issue, moto services, all in all, use 101mb as i calculated and non-stoppable servicies such as maps location, fb location, whats app service and so on takes up as much as 220mb (a bit less, but just rounding out numbers)
My entire RAM usage is of about +-600mb of 970mb. However, i use a VPN and intra-network app for my work and that eats up another 150mb adding swype and some other things such as ftp servers i get up to 800mb used and it doesnt lag but IT DOES close apps by itself. The GS3 did it too, but its multicore could open them a bit faster when more than 2 or 3 were already running.
Stock JB...around 500-600MB free...
I'm using latest Omar Rom and greenify, about 60 apps installed. When I kill all apps I've got:
Available: 475 MB
Inactive: 175 MB
Which gives me 650MB free RAM (avail and inactive is in fact free). Unfortunately it does't mean anything. Phone is'n as fast as I would like it to be, android is amazingly ****ty optimized. My previous phone (btw Defy) have had 512MB RAM and single core CPU - and with android GB (CM7) speed was comparable - apps were smaller and less "memory hungry" than on ICS or JB.
I'm too thinking about 2GB of RAM in phone (maybe XIAOMI MI2).
adddaamo said:
I'm using latest Omar Rom and greenify, about 60 apps installed. When I kill all apps I've got:
Available: 475 MB
Inactive: 175 MB
Which gives me 650MB free RAM (avail and inactive is in fact free). Unfortunately it does't mean anything. Phone is'n as fast as I would like it to be, android is amazingly ****ty optimized. My previous phone (btw Defy) have had 512MB RAM and single core CPU - and with android GB (CM7) speed was comparable - apps were smaller and less "memory hungry" than on ICS or JB.
I'm too thinking about 2GB of RAM in phone (maybe XIAOMI MI2).
Click to expand...
Click to collapse
I'm really curious, What exactly do you need your phone do faster than it do right now?
I never see any Android Phone run faster than my razr i, the only problem is compatibility with some apps, and lack of development.
( i had a defy too, and you really can't compare defy with razr i)
diogo.sena said:
I'm really curious, What exactly do you need your phone do faster than it do right now?
I never see any Android Phone run faster than my razr i, the only problem is compatibility with some apps, and lack of development.
( i had a defy too, and you really can't compare defy with razr i)
Click to expand...
Click to collapse
Heh, I've overclocked defy to 1300MHz, with CM and minimalist theme it worked really great
I want an android phone with constant 60FPS and instant startup of apps. Now on RazrI it takes couple seconds for Chrome to became operational - where it should be instantaneous, switching between big apps also lags from time to time.
adddaamo said:
Heh, I've overclocked defy to 1300MHz, with CM and minimalist theme it worked really great
I want an android phone with constant 60FPS and instant startup of apps. Now on RazrI it takes couple seconds for Chrome to became operational - where it should be instantaneous, switching between big apps also lags from time to time.
Click to expand...
Click to collapse
who said razr i wont run at 60fps?
to me, chrome is fast enough but stock browser is even faster.. (new opera mobile beta is using webkit too and seems good)
funny thing that you mentioned browsers, cause razr i is by far the best smartphone in any javascript benchmark
i agree that is not optimal for games, but is a great smartphone.
Hi, so I bought mina XT890 two months ago, and currently I habe 98MB of free RAM. I have disabled a lot of Motorola apps, and I think that 98mb of free RAM is too short for a 1GB phone... I guess there is something wrong, some stuff being used underground and I can't see it. My GF has a S3 Mini, and the RAM usage is much better. She has more apps and games than I do...
godoy.rafa said:
Hi, so I bought mina XT890 two months ago, and currently I habe 98MB of free RAM. I have disabled a lot of Motorola apps, and I think that 98mb of free RAM is too short for a 1GB phone... I guess there is something wrong, some stuff being used underground and I can't see it. My GF has a S3 Mini, and the RAM usage is much better. She has more apps and games than I do...
Click to expand...
Click to collapse
Do not observe how much free RAM do you have. Just compare how this phone works. It's really Fast and reacts immediatelly even you see only 98MB free RAM. It's much more better than S3 mini.
Odesláno z mého XT890

Please help: big lag issue

Guys, I need a help. Tried everything, but still facing big lag especially when I click on dialer, contacts or messages (waiting couple of secs until they show up). This is more obvious when I click right after I 'woke up' my phone from deep sleep.
I'm using stock 20b with Iodak v8 kernel (tried v9 as well, but due to bluetooth and fm radio issue on stock, reverted to v8). Also, I did everything what I could found to improve performace: disabled and then deleted MLT, did a full wipe of everything (clean install), installed only apps that I need, turned off 3g, data and gps (only WiFi is on), installed Greenify and so on..
My current setup of kernel is following:
Governor: interactive (tried ondemand, but was even worst)
Max: 1600000
Min/Max Screen Off: 760000
Scheduler: SIO
CPUQuiet Power: userspace (noticed that only 3 cores are online instead of 4)
I appreciate any help, but please, don't tell me to search, 'cause I did. As for the other custom roms, I tried CM, but I prefer more stock, mostly because of Gallery, Polaris and FM Radio Apps.
Guys, is there any way to fix this lag issue? I don't care much for the battery, since this lag drives me crazy.
Thanks in advance.
Vladimir
vladja10 said:
Guys, I need a help. Tried everything, but still facing big lag especially when I click on dialer, contacts or messages (waiting couple of secs until they show up). This is more obvious when I click right after I 'woke up' my phone from deep sleep.
I'm using stock 20b with Iodak v8 kernel (tried v9 as well, but due to bluetooth and fm radio issue on stock, reverted to v8). Also, I did everything what I could found to improve performace: disabled and then deleted MLT, did a full wipe of everything (clean install), installed only apps that I need, turned off 3g, data and gps (only WiFi is on), installed Greenify and so on..
My current setup of kernel is following:
Governor: interactive (tried ondemand, but was even worst)
Max: 1600000
Min/Max Screen Off: 760000
Scheduler: SIO
CPUQuiet Power: userspace (noticed that only 3 cores are online instead of 4)
I appreciate any help, but please, don't tell me to search, 'cause I did. As for the other custom roms, I tried CM, but I prefer more stock, mostly because of Gallery, Polaris and FM Radio Apps.
Guys, is there any way to fix this lag issue? I don't care much for the battery, since this lag drives me crazy.
Thanks in advance.
Vladimir
Click to expand...
Click to collapse
This is "normal" for system apps. Download custom apps from google store like ExDialer,GOSms.. That will resolve your lag.. When you install those apps from store, use titanium backup to freeze stock apps(dialer,contacts,messages).
@vladja10 http://forum.xda-developers.com/showpost.php?p=49272503&postcount=1986
Thanks guys, but neither of these two options helped. There's some improvements, but still pretty much laggy.
Think I found out what causing lag: synchronization. Every time when phone is synchronizing, everything is so laggy, otherwise is ok. Following accounts have sync turned on: Skype, Facebook, WhatsApp, Twitter and Google.
Does anyone of you have experienced similar problem? Is there solution for this?
vladja10 said:
Think I found out what causing lag: synchronization. Every time when phone is synchronizing, everything is so laggy, otherwise is ok. Following accounts have sync turned on: Skype, Facebook, WhatsApp, Twitter and Google.
Does anyone of you have experienced similar problem? Is there solution for this?
Click to expand...
Click to collapse
I have all those apps running in my phone, but I did not face those lags.
But ya I did felt those lags when I'm still using stock JB OS. Stock JB from LG is sucks man, you should instal another ROM.
Currently I'm using CM11 (Kitkat 4.4.2 based), its lag free and have more free RAM. (around 350 - 400MB). :good:
The difference is like heaven and hell compared with the stock ROM (I only have 150 - 200MB Free RAM).
bomerzz said:
I have all those apps running in my phone, but I did not face those lags.
But ya I did felt those lags when I'm still using stock JB OS. Stock JB from LG is sucks man, you should instal another ROM.
Currently I'm using CM11 (Kitkat 4.4.2 based), its lag free and have more free RAM. (around 350 - 400MB). :good:
The difference is like heaven and hell compared with the stock ROM (I only have 150 - 200MB Free RAM).
Click to expand...
Click to collapse
The ROM can make a difference, but it has nothing to do with "Free RAM". I wish people would stop perpetuating this myth.
Free RAM is wasted memory on an Android device. Unless you are getting below about 50MB there is not a problem as the device is designed to use as much as it can and then swap it out automatically.
I agree about CM11 though. I'm running the latest nightly and the only problem I have is the delay in waking when you press the power button
SimonTS said:
The ROM can make a difference, but it has nothing to do with "Free RAM". I wish people would stop perpetuating this myth.
Free RAM is wasted memory on an Android device. Unless you are getting below about 50MB there is not a problem as the device is designed to use as much as it can and then swap it out automatically.
I agree about CM11 though. I'm running the latest nightly and the only problem I have is the delay in waking when you press the power button
Click to expand...
Click to collapse
Well.. Sorry for my false statement and thank you for correcting it
4X HD is my very first android device. But that's what I really thought after I flashed the CM11.. Its like whoa, more free space on RAM, and it feels like I'm using a new phone
bomerzz said:
Well.. Sorry for my false statement and thank you for correcting it
4X HD is my very first android device. But that's what I really thought after I flashed the CM11.. Its like whoa, more free space on RAM, and it feels like I'm using a new phone
Click to expand...
Click to collapse
You might want a read of this;-
RAM: What it is, how it's used, and why you shouldn't care
Well, I’m afraid that I’ll be forced to get back to CM (used it once, but missed some apps such are: FM Radio, stock gallery app (couldn’t find good replacement that synced photos with google acc) and Polaris Office – these apps I use on a daily basis). Anyway, before install CM, I’ll give one more try to Stock.
I did what @ottomanhero told me, and that actually helped. But, since I used Trickstermod to tweak governors, after every single reboot, stock values would be back, so I had to use init.d script, and there comes a problem.
Here is what I did (followed instructions from Iodak's OP):
- Using ES File Explorer created folder /system/etc/init.d and set permissions to rwxr-xr-x
- Created new file in init.d folder and name it 1script (used Note++ instead of Windows editors to avoid leaving an extra space at the end of each line or an invisible invalid character)
- Then added following commands:
Code:
#!/system/bin/sh
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/midrange_go_maxspeed_load
echo "60000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo 200 300 400 450 500 600 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock
- and finally set permissions to 1script rwxr-xr-x and owner to root group to shell
So, that should be it, but didn’t work for me. Then, I installed SManager to check what’s wrong with the script, and it stated that with first 4 lines error is: no such file or directory (which is strange because exactly that's the path), and for the last line is stated: permission denied.
Did I miss something? Apologize if this question is too noob for you guys, but I’m running out of ideas.
Thanks all for your help.
Regards,
Vladimir
SimonTS said:
You might want a read of this;-
RAM: What it is, how it's used, and why you shouldn't care
Click to expand...
Click to collapse
Oh, really?
Free RAM is NOT wasted RAM.
It directly effects smoothness of the phone.Why do you think android would have Out Of Memory values if it was created to just fill up the RAM with only apps? It still needs some RAM free for caching.
---------- Post added at 03:50 PM ---------- Previous post was at 03:46 PM ----------
vladja10 said:
Well, I’m afraid that I’ll be forced to get back to CM (used it once, but missed some apps such are: FM Radio, stock gallery app (couldn’t find good replacement that synced photos with google acc) and Polaris Office – these apps I use on a daily basis). Anyway, before install CM, I’ll give one more try to Stock.
I did what @ottomanhero told me, and that actually helped. But, since I used Trickstermod to tweak governors, after every single reboot, stock values would be back, so I had to use init.d script, and there comes a problem.
- and finally set permissions to 1script rwxr-xr-x and owner to root group to shell
So, that should be it, but didn’t work for me. Then, I installed SManager to check what’s wrong with the script, and it stated that with first 4 lines error is: no such file or directory (which is strange because exactly that's the path), and for the last line is stated: permission denied.
Did I miss something? Apologize if this question is too noob for you guys, but I’m running out of ideas.
Thanks all for your help.
Regards,
Vladimir
Click to expand...
Click to collapse
Code:
#!/system/bin/sh
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/midrange_go_maxspeed_load
echo "60000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "200 300 400 450 500 600" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock
I think the script didn't execute at boot due to last line, you forgot the quotes.And while using Smanager you gotta tick "root" or else it won't run.Try this one
ottomanhero said:
I think the script didn't execute at boot due to last line, you forgot the quotes.And while using Smanager you gotta tick "root" or else it won't run.Try this one
Click to expand...
Click to collapse
Well, you were right about the quotes (now, the new values are set), but as the other 4 lines, they still have the same error: No such file or directory, and all values are stock.
Do you have any idea what's going on? Why did it work for one, and didn't for the other lines?
http://forum.xda-developers.com/showthread.php?p=48042187#post48042187
ottomanhero said:
Oh, really?
Free RAM is NOT wasted RAM.
It directly effects smoothness of the phone.Why do you think android would have Out Of Memory values if it was created to just fill up the RAM with only apps? It still needs some RAM free for caching.
Click to expand...
Click to collapse
As I stated in my first post;-
Unless you are getting below about 50MB there is not a problem
Click to expand...
Click to collapse
Of course you need some free memory, but not hundreds of MBs of it. I notice that you pointed the same XDA quote that is used and linked to by lots of different sites when this is being discussed. To use someone else's quote - better written than I could do so myself;-
In the most simplistic terms, here is how it works, and why "free RAM is wasted RAM," but also, why you don't want all RAM in use at any given time.
If an application is not in memory when you try to open it, that application haa to be loaded into memory, thus triggering a "load time." Having the application in memory (prefetched) prevents this load time and has the application load near insantly. This is why a modern OS will preload our most commonly used applications into memory. The more memory that you have, the more applications that can be preloaded, the smoother your device will run. Clearing this memory gives you no immeidate benefit, and will actually slow your device. Idle applications in memory consume almost no resources (CPU cycles, battery power, etc.). If an application is consuming resources, that means that it is doing something. Closing it will only force the application to re-load. Using a task killer for this purpose will cause a "boxing match" where the task killer closes the application, the app reopens itself, and back and forth. THIS will consume resources.
However, you want to have some memory free. Your devices will not have enough memory to preload EVERY application, so it has to guess based on your actions. It needs to have enough memory available to quickly load an app that you may want.
Let's say that you want to load an application that requires 256MB of RAM, but you only have 128MB available. This means that the OS is going to try to clear 128MB of RAM to accomodate your app, and as your app loads, will try to clear another 128MB to return to its previous state. This clear/load/clear causes a longer load time and more slowdown than just loading an app not already in memory.
So, the ideal situation is to have most common apps in memory (pre-fetched), but enough memory available to handle 1-2 common apps that are not already pre-loaded. Touchwiz (Samsung) devices allow you to clear memory from the task manager. My S2 had about 870MB of user-available RAM, and if I trashed all apps, it would go as low as 300MB in use. This may look cool, but it is a complete waste of resources, and the OS is simply going to re-load those apps over the next 2-3 minutes anyway. And if you use a task killer to keep your device idling at 300MB of available RAM? This is simply going to slow down the device, harm the battery, and give you the same memory performance and availability that you would get with an HTC G1.
Click to expand...
Click to collapse
As the OP was stating that "I only have 150 - 200MB Free RAM" with the Stock ROM, that is definitely NOT what is causing a lag issue. If you have that much free memory (before Android goes caching stuff and not declaring it of course) then you are absolutely fine on any Android device there is.
vladja10 said:
Well, you were right about the quotes (now, the new values are set), but as the other 4 lines, they still have the same error: No such file or directory, and all values are stock.
Do you have any idea what's going on? Why did it work for one, and didn't for the other lines?
Click to expand...
Click to collapse
Maybe your partitions aren't mounted.I took these lines from pimp my rom init.d script.Create another script but it has to come before the governor tweaks script.
#!/system/bin/sh
busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier =0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /cache
Click to expand...
Click to collapse
For example, name this script "93Mount" and name the governor script "94Governor" so the mounting script will be executed before governor script.
ottomanhero said:
Maybe your partitions aren't mounted.I took these lines from pimp my rom init.d script.Create another script but it has to come before the governor tweaks script.
For example, name this script "93Mount" and name the governor script "94Governor" so the mounting script will be executed before governor script.
Click to expand...
Click to collapse
Well, I did like you said and here's what I got:
Code:
exec /system/bin/sh '/etc/init.d/93Mount'
h '/etc/init.d/93Mount' <
failed: No such file or directory
failed: No such file or directorybh on /data
mount: mounting atime,barrier=0,nobh on /cache failed: Invalid argument
Any idea?
For the People who want Stock Gallery on CM and hate Aosp Gallery like Iam, check facebook offical cyanogenmod. They send a link to their new gallery next. Its in beta stase, so its not avaible yet. But if its stable itll be in play store. Its like the stock gallery app. Very beauty
Sent from my LG-P880 using xda app-developers app
vladja10 said:
Well, I did like you said and here's what I got:
Code:
exec /system/bin/sh '/etc/init.d/93Mount'
h '/etc/init.d/93Mount' <
failed: No such file or directory
failed: No such file or directorybh on /data
mount: mounting atime,barrier=0,nobh on /cache failed: Invalid argument
Any idea?
Click to expand...
Click to collapse
Well try this app https://play.google.com/store/apps/details?id=com.stericson.remount&hl=tr
EDIT : check this link out. http://forum.xda-developers.com/showthread.php?t=1381188
I'm not sure it's the right track or not, it does happen to me quite ago.
The problem is the SD (my case, luckily it's external). The system try to read files from card but it got error thus try again => laggy
I removed the card and it's alive. Try to check your internal sd. hope that help
App didn't help, I got the same error. Never mind, I give up Will use Trickstermod after every single reboot until finally find solution. Thanks @ottomanhero for all your help.
@GalaxyVolvoZ that app looks realy nice. Finally a good replacement for Stock Gallery.
@klbterminator I don't have any problems with SD, at least didn't so far
Thanks guys.
Regards,
Vladimir

RAM always at 70% on MI5

Hello fellow MI5 users,
I received my phone one week ago and I start having some issues with the RAM. In fact, at the start of the phone, it's already at 70% filled up which is too much for me. Indeed I use a lot of RAM and I'm that type of guy who let the apps running in background everytime because I keep opening them everytime. I was wondering if it was possible to have a link to a better ROM because I guess it's the problem and also a link for a tutorial on how to flash it I'm a newbie in this type of manipulation but I'm very interested so I hope you will help me guys. By the way, my MIUI version is the MIUI 8 Global 6.8.18. I honestly don't know what can i give as information but I'll answer ASAP at any questions
Have a good day
This is working as design - Android keeps apps in RAM to reduce I/O on resuming from background - faster & more energy efficient.
You can change the number of background processes via the development settings or you can kill apps on closing.
adwinp said:
This is working as design - Android keeps apps in RAM to reduce I/O on resuming from background - faster & more energy efficient.
You can change the number of background processes via the development settings or you can kill apps on closing.
Click to expand...
Click to collapse
I've seen that indeed but it was set at standard so I'll probably put it at 3 I guess. How should I set the memory optimization? I've read it should be set off, altough I tried middle and I feel comfortable like that?
Is it normal to start at 70% without anything started ?
Unitae said:
I've seen that indeed but it was set at standard so I'll probably put it at 3 I guess. How should I set the memory optimization? I've read it should be set off, altough I tried middle and I feel comfortable like that?
Is it normal to start at 70% without anything started ?
Click to expand...
Click to collapse
For the 3GB version? Pretty much. MIUI is horrible.
After booting I typically had 1.3GB / 3.0GB free but after a while this averaged to around 650MB free.
free ram is useless ram , which cant accelerate anything
ps2lover said:
free ram is useless ram , which cant accelerate anything
Click to expand...
Click to collapse
I know that but I need more because I use multi-task a lot. Is there a way to change the ROM so I have more space to work with? Even if the ROM itself is beautiful.
Indeed it's the 3gb version 32gb. It have lags sometimes and I think it's due to the full RAM. Can I have a link to a custom ROM which works fine on this device?
I'm a little confused, you want as much RAM available but you want as many processes in the background as well? That sounds contradicting to me. Memory optimization maps to ZRAM, if you set it off there will be no memory compression and thus even less processes will be kept in the background. If you set it high, you can have as many processes as possible, but there could be lag due to (de)compression time overhead.
Try different Rom
Try to use a different Rom. On the Stock Rom is a lot of bloatware which is using your RAM too.
First you need to get an Bootloader unlock permission and have to unlock the BL.
It could take up to 10 Days to get the permission from Xiaomi
http://forum.xda-developers.com/mi-5/how-to/unlocking-xiaomi-mi-5-bootloader-t3336243
After that you have to flash a recovery like trwp via ADB. Google it for videos or threads how to do it.
http://forum.xda-developers.com/mi-5/development/recovery-twrp-xiaomi-mi-5-t3412123
After that you can flash a developer Rom.
I use the Resurrection Remix and it works fine. The CM 13 stucks in Bootloop. Maybe because I made a full wipe and had to sideload my rom.
Because you don't have a SD card option you have to have the room installed on your hard drive. But just follow the description below
http://forum.xda-developers.com/mi-5/development/unofficial-resurrection-remix-m-5-6-9-t3395945
It took me just 1 day to get the unlock permit but don't try do do it without it. You brick your phone.
The RR Rom works really fine. Fingerprint and everything. It has no bloatware and you have to get the gaps like in the description. Arm64 nano seems enough.
Good luck and fun with a great phone.
Normally the android system kills the unused apps even in background. But i also experienced lack in multitasking.
leledumbo said:
I'm a little confused, you want as much RAM available but you want as many processes in the background as well? That sounds contradicting to me. Memory optimization maps to ZRAM, if you set it off there will be no memory compression and thus even less processes will be kept in the background. If you set it high, you can have as many processes as possible, but there could be lag due to (de)compression time overhead.
Click to expand...
Click to collapse
I think you misunderstood the OP question, he wanted more free RAM at start in order to have as many as possible apps in the background.
lapocompris said:
I think you misunderstood the OP question, he wanted more free RAM at start in order to have as many as possible app in the background.
Click to expand...
Click to collapse
Yup exactly
Try trwp 3.0.2.0 with 3.0.2.1 people experience bootloop
Omied said:
Try trwp 3.0.2.0 with 3.0.2.1 people experience bootloop
Click to expand...
Click to collapse
In fact, I'm just doing some research before asking because I'm very new. I have found some videos but they are pretty old and not on this phone but I guess it works more or less the same way
lapocompris said:
I think you misunderstood the OP question, he wanted more free RAM at start in order to have as many as possible apps in the background.
Click to expand...
Click to collapse
OK, in that case, just open Security->Permissions->Autostart and disable those which aren't immediately needed upon start. I have 18 autostart items (mostly system monitoring & social media apps) and I usually start with 1.5 GB free RAM.

Defragmentation option appeared. Wow!

For the first time ever since getting my Mate 10 on launch day, I just received a pop up notification to defragment my phone which will improve performance. I did so. Wow they were not wrong there! Everything is so quick now. Apps launch super quickly! Anyone else had the opportunity to defragment their phone?
hI,
what is your device rom version and locale?
ums1405 said:
hI,
what is your device rom version and locale?
Click to expand...
Click to collapse
Mate 10 non Pro. ALP L29C636. UK.
Stange, I got the same phone and rom version .
All I've got was an update to .132 yesterday....
haven't noticed anything about defragmenting phone......
Where can I find it?
cheers.
Great Post.
I don't think you can find it. It just appears out of nowhere. I guess it depends on how much you have used your storage and delete and save files.
One thing I have done recently is empty the recycle bin folder in the gallery app which had over 30 days of deleted photos and videos. Perhaps deleting the accumulated storage taken up left a big gap in the storage file system. This is purely a hunch. Have no idea if this was the reason I got the defragmentation notification.
I wish I took a screenshot of it now.
Just found this blurb.... Defragmentation is mentioned....
"The HUAWEI Mate 10 and HUAWEI Mate 10 Pro take the “Born Fast, Stay Fast” promise to a new dimension. Leveraging AI-powered Battery Management, the devices improve memory allocation utilization, using different mechanisms such as: CPU Resource Allocation and Management, Run-time Memory Management, IO Resource Management, Storage Management and Defragmentation and Battery Management."
Yup I get a de-fragmentation pop up once in a while.
Still waiting for a firmware popup.
I saw this once and laughed, remembered me of Windows 98.
Android is supposed to support trim, so devrafmantation shouldn't be a thing... Unless Huawei is calling it Defrag but instead they're doing something else behind the scenes.
Anyways, the born fast stay fast BS is based on the system continuously trying to shutdown processes ASAP and keep them from working properly, and it's continuously pushing the user to delete all kind of "unused" files.
So I've a phone with 128 GB storage and 6GB of ram, but I neither can use the storage nor keep apps open in RAM cuz the system doesn't like it.
Wished we could disable the phone manager and its BS entirely.
Luinwethion said:
I saw this once and laughed, remembered me of Windows 98.
Android is supposed to support trim, so devrafmantation shouldn't be a thing... Unless Huawei is calling it Defrag but instead they're doing something else behind the scenes.
Anyways, the born fast stay fast BS is based on the system continuously trying to shutdown processes ASAP and keep them from working properly, and it's continuously pushing the user to delete all kind of "unused" files.
So I've a phone with 128 GB storage and 6GB of ram, but I neither can use the storage nor keep apps open in RAM cuz the system doesn't like it.
Wished we could disable the phone manager and its BS entirely.
Click to expand...
Click to collapse
I agree, that could be the reason apps like Adguard keep getting killed regardless of if its been whitelisted in Phone Manager.
As we approach having a stable TWRP/Root solution for ALP's, (cudos to Pretoriano80) I hope devs would find a solution to the over zealous AI/NPU.
Luinwethion said:
I saw this once and laughed, remembered me of Windows 98.
...
Android is supposed to support trim, so devrafmantation shouldn't be a thing... .
Click to expand...
Click to collapse
You are full of BS, one of the weaknesses of F2FS is fragmentation decreases performance more than EXT4, so it actually needs defragmentation.
doesnt F2FS do auto trim?
ums1405 said:
I agree, that could be the reason apps like Adguard keep getting killed regardless of if its been whitelisted in Phone Manager.
As we approach having a stable TWRP/Root solution for ALP's, (cudos to Pretoriano80) I hope devs would find a solution to the over zealous AI/NPU.
Click to expand...
Click to collapse
I am using Adguard without any problems!
CDI12 said:
I am using Adguard without any problems!
Click to expand...
Click to collapse
ditto
Sent from my BLA-L29 using Tapatalk
I just got the notification to defragment on my Huawei P10 VTR-L09 and I clicked it, But I was doing something so I decided to go back to it and do it later. I figured I would be able to do a search In the settings to find the defragment option. Well guess what... It is not there. I guess the only way to defragment is when the system wants you to and not whenever you feel like it. I should have just done the defrag when I first got the message. Now I have to wait until it pops up again.... They should give you the option in the phone manager. Anyone know how frequently the defrag option pops up??
Sent from my VTR-L09 using Tapatalk
Yes a warning to others. If you get the defrag option, you MUST do it there and then. Do not navigate away from that notification as you can't get it back.
tboy2000 said:
Yes a warning to others. If you get the defrag option, you MUST do it there and then. Do not navigate away from that notification as you can't get it back.
Click to expand...
Click to collapse
I've put a shortcut to it on my phone. I'm using nova launcher. Go to widgets/activities/settings. I've got 254 entries under settings, takes a while scrolling but you can find it and add it to your main screen
Edit: widgets/activities/phone manager/defragmentation
wbrambley said:
I've put a shortcut to it on my phone. I'm using nova launcher. Go to widgets/activities/settings. I've got 254 entries under settings, takes a while scrolling but you can find it and add it to your main screen
Click to expand...
Click to collapse
What name of activity
angeloamorato said:
What name of activity
Click to expand...
Click to collapse
Widgets/activities/phone manager/defragmentation.
is there any downside to de fraging the system (like to the updates or smth)

Categories

Resources