[Q] Though use swap it is always out of memory - Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting

I use 200MB swap file and 98 swappiness setting in Urukconfig.But it use RAM in most time and seldom use swap.Is this because the Swap file is in internal storage but not in a fast SD card ?I`ve got a micro SDHC (class10) 4GB and I want to format it into 2parts.One is used as swap partition.The other one is a FAT or NTFS filesystem.But I don`t know What is the name of the 2 parts in /dev.One more question,can swap partition be a EXT3 or EXT4?
Thank you for reply.My English is not good.Sorry~~

What did u use to "measure" the free memory? How does it affect u?
In general u have to know that android does not have the windows like "free memory" as it tries to keep as much apps in "background" as possible. To load em faster at next startup.
Many programs have the strange behaviour to have several listeners to startup every once a while or they even load at startup. You can check this with "Autorun Maganger"
With "Task Manager" you can see what apps are currently running. You will be surprised what apps are loaded right after startup - even u never started em
Anyway having "low" memory at runtime isn't to bad normaly - as android will kill unused apps to free memory if needed. Just if the value is permanent under about 35MB the system will get sluggish.
Regarding your swap: "I use 200MB swap file and 98 swappiness"
Sounds heavily wrong to me. As the CPU will be permanently use for swapping apps and will slow down your device meanwhile...
The problem of android and swap is that active processes (like widgets, services, the running program) can't be swapped. Swap just gets u the ability to hold inactive apps in memory to load up faster at next startup. (if u want to know more about it read about the "life cycle" of android apps on google) But since they are on a VERY slow memory compared to RAM the reload process actualy isn't that much faster...
Try reading the Tweak guide in my signature to learn more about memory management.

Before, I got the same issue like this so I used Autorun Manager to manage some auto startup and backround running apps but It didnt work. Now I find an other solution. That is TiTan Backup Pro. I use TiTan to freeze some apps that always appear in backruond running apps like Market, Fring, Textfree...
Although It takes more time but It may save the battery and ram. Dont worry about the next time when u need to use these freezed apps because every times u freeze an app, u can defrost it immediately. So that app will not run at backround until u run that app again.
That the way Im using to save battery and ram

kiemthu123 said:
Before, I got the same issue like this so I used Autorun Manager to manage some auto startup and backround running apps but It didnt work. Now I find an other solution. That is TiTan Backup Pro. I use TiTan to freeze some apps that always appear in backruond running apps like Market, Fring, Textfree...
Although It takes more time but It may save the battery and ram. Dont worry about the next time when u need to use these freezed apps because every times u freeze an app, u can defrost it immediately. So that app will not run at backround until u run that app again.
That the way Im using to save battery and ram
Click to expand...
Click to collapse
Yeah thats what i use to do - but u have to check with autorun manager before to know wich apps to "frost"

Thank u very much
256MB RAM is too little.

Related

[Q] Help freeing Up Ram

Hey guyzz..
I have rooted x10 ... my rom is always 60-70 mb free... i want to clear it to atleast to 100+ mb... I have not uninstalled any system app uptill now... coz i uninstalled mediascape ... but then was unable to restore it through titanium backup .. dnt reaaly knw how to restore uninstalled system application.... plz help me to free up may ram and to restore system apps through titanium backup...(in case i want my apps back)
thanks!
Basicly you just need to reflash with SEUS and then just install a task killer app from the market, plenty to choose from.
Should be straight forwards enough
Sent from my AOSP on Xperia (US) using XDA App
mediascape doesn't use much ram. facerecognition, semccheckin and uwlopservice do.
dx.varun said:
Hey guyzz..
I have rooted x10 ... my rom is always 60-70 mb free... i want to clear it to atleast to 100+ mb... I have not uninstalled any system app uptill now... coz i uninstalled mediascape ... but then was unable to restore it through titanium backup .. dnt reaaly knw how to restore uninstalled system application.... plz help me to free up may ram and to restore system apps through titanium backup...(in case i want my apps back)
thanks!
Click to expand...
Click to collapse
why do you need to have 100mb+ free? why this magic number?
linux based systems are very intelligent when it comes to memory management - if the ram is not being used then it is wasted is the way linux looks at it. 60-70mb free means nothing in the linux world - it keeps frequently used processes in memory so they launch faster but if another process comes along demanding ram the linux core will kill off the running-but-unused process in order to make space.
this is why task killers do more harm than good - constantly killing processes only to have android fire them back up again as it wants them running. you will find that a side effect of this is poor battery life also, as the system is doing much more work than it needs to.
basically, in android/linux - free ram does NOT equal a quicker running system.
ok .... grt... i didnt knw this..!! and this means even if my memory goes extreme down to 20-30 mb free even though it wont harm ... m i rite?? nd shud i disable task killer??
When my X10 runs a few hours and use it I have 28 to 40MB RAM. And it's still fast, but when you have 30MB RAM and do multitasking with big apps it will get a bit laggy.

how to free up RAM on x10

I have installed RAM Booster and ZD Box(task killer) to help free up RAM, however i feel that the RAM usage on my x10 is still too high.
On average the free RAM on my phone is between 40MB -60MB, is that normal?
My question is how else can i free RAM on my phone? will installing apps to SD Card help? Also my internal memory widget is reading "414MB used out of 465MB" thats sound too high. my phone feels laggy and ive even stopped using live wallpapers, sumtimes the phone would even reboot on its own but hasnt done so in a while.
if u install too much apps without using app2sd, its normal to have that amount of ram.. i recommend u to use link2sd, u can manually select apps to move to sd. bt make sure that dont move any widget apps to sdcard or else it will stop functioning and appearing in ur widget list
I use Advanced Task Killer, from the market.
That being said, Android naturally will kill processes and apps. It waits for a certain amount of time, or until the resources are needed elsewhere. You shouldn't have to wory about how much free ram you have available... Unlike Windows, Android will manage it all on it's own!
khakhi said:
I have installed RAM Booster and ZD Box(task killer) to help free up RAM, however i feel that the RAM usage on my x10 is still too high.
On average the free RAM on my phone is between 40MB -60MB, is that normal?
My question is how else can i free RAM on my phone? will installing apps to SD Card help? Also my internal memory widget is reading "414MB used out of 465MB" thats sound too high. my phone feels laggy and ive even stopped using live wallpapers, sumtimes the phone would even reboot on its own but hasnt done so in a while.
Click to expand...
Click to collapse
Use auto memory manager free from market
Requires root and when set to aggressive free ram great
Doesn't eat battery as it isnt a task killer
Sent from my X10i using XDA App
to OP i wish i am a mod so i can move your post to Q&A thread.. geezzzzz
Eddie_Brock said:
I use Advanced Task Killer, from the market.
That being said, Android naturally will kill processes and apps. It waits for a certain amount of time, or until the resources are needed elsewhere. You shouldn't have to wory about how much free ram you have available... Unlike Windows, Android will manage it all on it's own!
Click to expand...
Click to collapse
then y does my phone feel laggy if u say android will manage processes on its own? im going to try "link2sd" now and see how it goes.
Free RAM is wasted RAM, why don't people get that?
theskeptic said:
Free RAM is wasted RAM, why don't people get that?
Click to expand...
Click to collapse
not if it's causing his phone to reboot and have problems because he is using it all...
xcxa23 said:
if u install too much apps without using app2sd, its normal to have that amount of ram.. i recommend u to use link2sd, u can manually select apps to move to sd. bt make sure that dont move any widget apps to sdcard or else it will stop functioning and appearing in ur widget list
Click to expand...
Click to collapse
link2sd is telling me i need to partition my sd fisrt and im not sure how to, im going to try apps2ds
First i don't this is a place to post such question, there is a section called Q&A.
Second, i recommend using AutoKiller Memory Optimizer, it's super amazing and very essential app for me. I get usually more than 100 MB free RAM most of the time, and it's easy customizable, after your read the help section.
Give it a try
it wouldnt be a lack of memory causing a phone to reboot but the app w memory leaks causing the phone to reboot. the apps youre killing werent designed for you to kill them unexpectedly. they were designed to run any necessary cleanup routines on exit. if the app youre killing doesnt have an option to exit, then you should replace it w one that does or ask the author to provide an exit/close for the app to free itself from the list of running processes.
you're introducing dirty unintended states for the apps and the os by killing them unexpectedly. you will have immediate gains in performance and will gain unexpected problems when those same apps go to run later. lost widgets, widget data, duplicate widgets, or maybe even break an app that wasnt designed to open from a dirty state.
keep an eye on the tasks, but leave them alone if you can.
Sent from my X10i using Tapatalk
silv3rfox said:
First i don't this is a place to post such question, there is a section called Q&A.
Second, i recommend using AutoKiller Memory Optimizer, it's super amazing and very essential app for me. I get usually more than 100 MB free RAM most of the time, and it's easy customizable, after your read the help section.
Give it a try
Click to expand...
Click to collapse
Thanx guys will try it...
to op, i think u better try the autokiller 1st. because the link2sd and app2sd need to make partition.
1st make a fat32
2nd make a ext2
size of partition 2 put less than 1gb, i assuming u having a 8gb class 2 sdcard
the rest of it goes to fat32
ps : this require u to format ur sdcard. so make sure u backup it up in ur pc
khakhi said:
link2sd is telling me i need to partition my sd fisrt and im not sure how to, im going to try apps2ds
Click to expand...
Click to collapse
Apps2sd needs partition as well... try a partitioning program and make a main fat32 partition and then a second one ext2 partition (i suggest 1gig max should be more than enough)
You don't want to free up ram. It messes with your phone. Your suppose to use ram
Sent from my X10i using XDA App
Get rid of the task killer and get AutoKiller Memory Management. I went from ~35mb free to ~135mb by changing the last 3 settings to 150, 200, 250 and never need to kill anything
Sent from my X10i using XDA Premium App
i use automatic task killer and it works pretty good for me...
Hi, i recommend the app "Taskiller Full" from AxDroid LLC ( i dont know if the free version is the same ) when i kill apps get a 150-200 free ram
do NOT use task killers. all you will succeed in doing is to use MORE battery. Andoid (which is linux based) is designed to have very little free memory. The way android handles application and memory use is it keeps frequently launched apps in memory so they launch quicker. if a task comes along that requires resources android will simply ditch the reserved memory (that is reserved in case you launch a particular app that is in memory) and will allow it to be utilised for the new app. as has been said 1000's of times before, free ram is wasted ram!
all a task killer will do is to fight against the native android instruction set, each time android attempts to launch a process into ram the task killer will kill it, and each time this happens it will chew a bit more battery life.
having a lack of ram is not necessarily the reason your handset is lagging.....the perceived lack of ram is only because it is earmarked for potential use.
my advise to you? just leave it be, maybe reboot your handset a bit more frequently, and remove some of the apps that you have installed that are fighting against android!
good luck!
theskeptic said:
Free RAM is wasted RAM, why don't people get that?
Click to expand...
Click to collapse
+++ exactly, let your phone do the thinking! (bump)
Sent from my X10i using XDA Premium App

Can someone explain me few things about running process (startup aps) on Mini Pro

I can't understand something on android system.
When I boot my mini pro, I can see in a (for example) Open Advanced Task Killer lot of aps.. (see attachment)
Now I see Skype in a list of active processes. I do not understand is it now skype active and loaded in system? I asked this because I'm not signed in to skype, and it is configured to not loaded when system boot.
If not in which state are now all this apps?
I have same questions for other few programs, for example Samba file sharing. It is disabled in his config. I mean apk is not freezed. But it is loaded in processes list!
I see that all those aps eat memory, so y question is, is there any solution to disable this aps and load it only when I want to use it, and when I closed them to stayed disable!
Thx for help.
this app are in background.. it dosent effect much your system.. usually it is automatically loaded.. just kill/forcekill the app if you need more memory...
Nothing wrong with it, these programs just autorun in background for functionality purposes.
When you actually start using an app, android will automatically free up memory to make that app work.
Carpe-Dimi said:
Nothing wrong with it, these programs just autorun in background for functionality purposes.
When you actually start using an app, android will automatically free up memory to make that app work.
Click to expand...
Click to collapse
I think you didn't understand me..
These aps using my memory even they are not started and active..
That is the confusion at me!
like i said it just automatically loaded in background, if you want to free up memory you can just kill it...
if it is not being used at all you can just uninstall it.. but be perfectly sure if you uninstall a system app... it will free up memory and save battery life..
paradorx said:
like i said it just automatically loaded in background, if you want to free up memory you can just kill it...
if it is not being used at all you can just uninstall it.. but be perfectly sure if you uninstall a system app... it will free up memory and save battery life..
Click to expand...
Click to collapse
Thx..but, if they using my memory and "app's not running" then I do not understand the purpose why are loaded they?
Is there any solution to load they only when I need it, like in windows system?
I mean, when I close that app that it close fully and my memory freed up!
easyyu said:
I think you didn't understand me..
These aps using my memory even they are not started and active..
That is the confusion at me!
Click to expand...
Click to collapse
I completely understood you
these apps are given memory by the android OS to run in background. there they do simple things such as syncing and checking for updates, or other things that i don't know of. this is functional, because when you open the app, it won't take forever to load and do what u want it to do.
However...
If you open an application (so it actively runs in the foreground) and it needs memory, the android OS will take the memory from your background apps and give it to the foreground app to use.
so, nothing to worry about as it has a functional purpose and won't interfere with your actual phone usage
if you don't want apps to use a lot of memory tho, you could try setting the vm heap size to something lower. (I believe 32M is standard) but this also limits the memory usage of the foreground app.
Carpe-Dimi said:
I completely understood you
these apps are given memory by the android OS to run in background. there they do simple things such as syncing and checking for updates, or other things that i don't know of. this is functional, because when you open the app, it won't take forever to load and do what u want it to do.
However...
If you open an application (so it actively runs in the foreground) and it needs memory, the android OS will take the memory from your background apps and give it to the foreground app to use.
so, nothing to worry about as it has a functional purpose and won't interfere with your actual phone usage
if you don't want apps to use a lot of memory tho, you could try setting the vm heap size to something lower. (I believe 32M is standard) but this also limits the memory usage of the foreground app.
Click to expand...
Click to collapse
Thx for answer..but this still no option for me.
I wanted to "stoped" apps at boot, and just then used it when I need it. And when I exit from some app to free memory and fully exit from android system like in windows systems.
easyyu said:
I can't understand something on android system.
When I boot my mini pro, I can see in a (for example) Open Advanced Task Killer lot of aps.. (see attachment)
Now I see Skype in a list of active processes. I do not understand is it now skype active and loaded in system? I asked this because I'm not signed in to skype, and it is configured to not loaded when system boot.
If not in which state are now all this apps?
I have same questions for other few programs, for example Samba file sharing. It is disabled in his config. I mean apk is not freezed. But it is loaded in processes list!
I see that all those aps eat memory, so y question is, is there any solution to disable this aps and load it only when I want to use it, and when I closed them to stayed disable!
Thx for help.
Click to expand...
Click to collapse
They are running on background and are programmed to start when booting ur phone, some apps like IM+ has the option to disable it, try doing it...
Hope it helps
XxLordxX said:
They are running on background and are programmed to start when booting ur phone, some apps like IM+ has the option to disable it, try doing it...
Hope it helps
Click to expand...
Click to collapse
But most of them have not, and thats the problem!!
For example, skype and many other.

Ram optimizers???

Hey...not sure if this has been answered before or not but im trying to figure out battery draining issues and one of things ive always used is ram optimizers...I have Android Booster and Android Assisant ....and then i also use the built in task manager to clear memory...shouldbi be using these apps or are they draining the battery by running in the background? They seem to clean up a nice amount of memory....and keep my phone running fast....just dont know much about them...
Sent from my GT-I9100M using xda premium
I do not think that by cleaning your RAM, you can reduce power consumption by RAM.
Actually, you do increase it. Android itself closes unnecessary applications when needed to clear memory. But, when you clean memory, either by task manager, or some custom tools, you are basically forcing applications to close and restart unnecessarily. I would say, it is additional load on CPU, and thus on battery.
For most applications, exactly startup and finish times are most expensive in terms of CPU load and battery. And most well-designed applications will not drain your battery when paused.
Reminds me of RAM cleaner programs for Windows machines, that would simply trigger excessive page faults.
while i agree with most of what you posted, there are 2 major flaws in your logic:
1. you talk about closing apps that restart on their own, but not many apps actually do that. sure, widgets, services, your launcher, communication apps and syncing apps need to run in the background, but certainly there are other apps eating away the battery, that need to be fully closed, when not needed. kies air or wifi file explorer come to mind. some of those apps don't fully close through the back button and must be killed from a task manager to save battery.
2. you say apps are paused. that is not necessarily true. many apps are capable of fully running in the background, after all, we are talking android and not iOS. we have full multitasking and apps are not generally suspended. say, you want to play a game for the first time and it needs to download more data. you can do whatever you want with your phone, open a dozen other apps, browse and listen to music, that download will continue in the background. this might fill up the ram over time, if you never close an app or apps do not allow direct closing.
there is a reason why samsung supplied the phone with a built-in task manager.
some apps are not well made and don't quit properly and need to be killed that way and killing off unnecessary apps (that won't restart) makes sense.
and let's not forget apps that get stuck but don't force close. they need to be killed as well. what else are you gonna do? restart the phone? certainly that wastes way more power than a restart of a few services.
every time you have a look at the samsung task manager or the "running" panel of "manage applications" and you use 500 something MB of ram and kill all apps, it will go down to something like 200 something, then the services restart and you are back up to maybe close to 300 (all numbers vary on your rom and apps). given that situation permanently saving 40% of ram is certainly a good reason to kill apps before you put the phone in your pocket.
I guess, then, it is best practice to kill all apps from task manager, a few times a day, especially after using several different applications and closing them. Applications that are needed will be restarted automatically.
I am not sure about running so called "RAM optimizers" constantly, though. When you are using your phone, it simply introduces more lags. Otherwise, it does nothing, if you have cleared RAM after heavy usage.
mirbeksm said:
I guess, then, it is best practice to kill all apps from task manager, a few times a day, especially after using several different applications and closing them. Applications that are needed will be restarted automatically.
I am not sure about running so called "RAM optimizers" constantly, though. When you are using your phone, it simply introduces more lags. Otherwise, it does nothing, if you have cleared RAM after heavy usage.
Click to expand...
Click to collapse
killing itself is not necessary in the 1st part.
the more the memory android uses the better the apps behave, thats how android is desinged.
if you people still want to release some memory just use the samsung task manager ot clear memory or "fast reboot" from market.
Thx for the posts...i deleted the 2 android apps for now to see if theres a difference...i will trybusing just the built in task manager for a few days and see how that goes. But for example i mainly use my phone for words with friends...facebook...twitter and instagram....when i run the built in task manager it frees up mabye 200mb of ram....then i would run android booster which would clean up another 200mb and would close stuff like facebook...and tweetcaster and so on....the built in task manager doesnt seem to pick up on and close everything it should...which is why i downloaded the others...my phone has 800+ mb available and i usually find that ots using 500 of those 800 at all times...i wouldbfind myself constantly closing stuff with the optimizers...but like you said...they just open up in the background again anyway. Im rooted and have got rid of all the safe stuff to get rid of and the funny thing is i still dont see much of a difference in ram consumption...i think of ram as important cause it keeps things running smooth with no lag...not sure what to do i guess...ill try it like this without the optimizers and see how things go and download them again if i get bad lag...what i really need is a actual list of my phones internal software so i can get rid of the rest of the unneeded system files...ive found similar lists..but never a list of my actual phone...theres certain stuff running on my phone that isnt in the lists ive found so i left them with the worry that i may have to reinstall the rom if i delete the wrong thing...im also a android noob...only 2 months of using it so far so ive got tons more learning to do...thx for the opinions tho...keep em coming if you got em!
Sent from my GT-I9100M using xda premium

[Q] RAM Usage - Apps opened!!

Well guys, i always listen about the ram used in android is different than windows..
My first question is, why RAM is like 90% used, the phone become slower???
My second question is, Why 99% of apps are always started with phone, when enter in Applications section, and see Running apps, you see millions of apps, or when you enter like, Calculator or Torch or another app details it appears Stop.. WHEN I STARTED IT?
Im now user of Galaxy S Duos, when i have Motorola Atrix using a custom rom named "Neutrino" my ram, after flash it was 80~90 and here in Galaxy S Duos is 390~500 and the max is 685mb so so, than when press clean RAM, it closes a certain number of processes but only 50mb ram max it decreases... Why?? And what can i do about that??
Thanks!!!!
Velcis Ribeiro said:
Well guys, i always listen about the ram used in android is different than windows..
My first question is, why RAM is like 90% used, the phone become slower???
My second question is, Why 99% of apps are always started with phone, when enter in Applications section, and see Running apps, you see millions of apps, or when you enter like, Calculator or Torch or another app details it appears Stop.. WHEN I STARTED IT?
Im now user of Galaxy S Duos, when i have Motorola Atrix using a custom rom named "Neutrino" my ram, after flash it was 80~90 and here in Galaxy S Duos is 390~500 and the max is 685mb so so, than when press clean RAM, it closes a certain number of processes but only 50mb ram max it decreases... Why?? And what can i do about that??
Thanks!!!!
Click to expand...
Click to collapse
First, the Linux system (as Android is based upon) always try to make use of all available RAM. Having unallocated RAM is wasteful, so all RAM not used for apps, is allocated for caches etc, making your device not slower, but faster. When this memory is needed for better purposes such as apps, it is dynamically reassigned.
The other question I'm quite don't get, please clarify it and I'll give it a try. But Android do start and stop apps as it see fit, unnoticed by the user. This is the Android way of resource management, instead of paging/swapping. I.e. Android "swaps" entire apps, not RAM. As a developer, you have to know this, making your app able to handle a restart as transparent to the user as possible.
kuisma said:
First, the Linux system (as Android is based upon) always try to make use of all available RAM. Having unallocated RAM is wasteful, so all RAM not used for apps, is allocated for caches etc, making your device not slower, but faster. When this memory is needed for better purposes such as apps, it is dynamically reassigned.
The other question I'm quite don't get, please clarify it and I'll give it a try. But Android do start and stop apps as it see fit, unnoticed by the user. This is the Android way of resource management, instead of paging/swapping. I.e. Android "swaps" entire apps, not RAM. As a developer, you have to know this, making your app able to handle a restart as transparent to the user as possible.
Click to expand...
Click to collapse
Yes, i know about that but i'm crazy because when my phone is slower i see the ram and it has apparently 500mb used from 680mb total... And i click on Clean, it closes like 20 apps and clean 100~mb aprox. of ram, and the phone becomes faster... That is my question, i know about linux... in galaxy s duos have an option to kill until number of processes you would... But didnt work i think because, i put max to 3 processes but even when i close the apps with back button, like facebook, instagram and another without home button, it stills on memory, taking the phone slower
But thanks for trying help me :victory:
Install this app Greenify search in play store
Sent from my LG-P880 using xda premium
I have it but dont know how to use? I need to select one by one the apps that i want?? :/
It's need root and you need to select the desired app, when your screen turned off for some minutes then greenify force stop your selected app.
If you don't understand try to search in YouTube and xda
Sent from my LG-P880 using xda premium

Categories

Resources