Related
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
Hello fellows, anyone is using swap2cache script to improve your SK17 perfomance. Would you recommend using it?
Thanks in advance.
Considered all that's out there about how andorid manages ram i have never really seen the point.
Android will open processes and activities for as much free ram as it has, and when you need to run something it just closes all useless activities and cached programs if necessary. Enebling swap2cache will just give your device more space to occupy with "junk" which will be sitting there eating up on battery life and performance...In my personal experience i find it to be more useful on older devices which had limited ram, 512 is enough to run most stuf out there (there's a discussion on android genral about makin 2gb which concludes that for now it's quite useless..) plus it's only adding 64mb extra...it's not going to be that big a change.
I tested it personally, and my rom (also using miui) without swap2cache usually has 400-420mb of used space before doing a system dump, with swap 2cache enabled it was always full at max...
Not to mention sdcard life.... constant swapping on it, reduces lifespan obviously.
Also it's very much slower than system memory.
Sent from my ST15i
Hi Guys, thanks for the info I will try for myself and report it back.
Just to clarify swap2cache works in the internal partition /cache not in /sdcard so it is supposed to be faster.
Yeah you are right it works in the system partition but you may want to take a look at swap2zram as it works in the ram itself! Faster than system memory!
hit thanks if I've helped!
sent from my smultron
jucares said:
Hi Guys, thanks for the info I will try for myself and report it back.
Just to clarify swap2cache works in the internal partition /cache not in /sdcard so it is supposed to be faster.
Click to expand...
Click to collapse
LoL! my bad. I wasn't even reading right. I was automatically thinkin' it was swap2sd -.-
EDiT:
Xkernel uses ZRAM by default...
Here is my experience, apparently this extra 64 mb only make a difference when you play heavy games like Asphalt 7, N64 emulator, Nova, etc.
Because without swap2cache when I played this games with the sixaxis controller app this one always closes in the middle of the game. However with swap2cache enabled I can play this games with the sixaxis app without problem :laugh:
Hope you find this information useful, if anyone is interested I'm attaching the script:
- Uncompress it and copy it in /etc/init.d/
- Set 777 permissions to script.
- reboot.
Im using pacman 18 on my neo v (JB rom)
Never really had a ram problem untill lately, when i started using viber, whatsapp, swype...
Now phone is struggling, there are no cached processes and almost no memory free.
By default zram is using 18% of my memory.
I dont exactly know what is zram, googling didnt help.
If i understand correctly, there are 2 scenarios:
1) It compresses data that would be in memory anyway, so you gain more ram, at the cost of having to compress/decompress evey time.
2) Apps that would normally be killed, are kept compressed inside memory, for faster access, at the cost of 'live' memory.
Could someone please clarify this for me?
well i dont know many things either.
I just think of this as that:
there is a swap/page file in ram that compresses useless/unused apps in ram.
Something like NTFS compress ability.
if you are using windows you have probably noticed that in the properties menu it says compress file to save disk space.
Well it just compresses it in ram and when you will need it it will be decompressed.
That way you will have more ram but maybe lags when swiching to apps.
I dont know anything about pacman rom so i can tell you about your problem.
try deleting zram (it will probably be a script in init.d)
I know it compresses data in phone's ram.
My question is, where does that data come from?
1) If that data would be in memory anyway, and they are just compressed, it gives you more memory, at the cost of performance
2) If they were outside of memory, and zram puts the in memory compressed, you lose ram, but you gain performance.
Let me also rephrase:
If i disable zram, that data that it compressed, would still be in memory uncompressed?
Or they will not be kept in memory any more?
Sorry, my English isnt helping on this one...
gordito_gr said:
I know it compresses data in phone's ram.
My question is, where does that data come from?
1) If that data would be in memory anyway, and they are just compressed, it gives you more memory, at the cost of performance
2) If they were outside of memory, and zram puts the in memory compressed, you lose ram, but you gain performance.
Let me also rephrase:
If i disable zram, that data that it compressed, would still be in memory uncompressed?
Or they will not be kept in memory any more?
Sorry, my English isnt helping on this one...
Click to expand...
Click to collapse
From Wiki
"zRam is an available feature for certain distributions of Linux, that was previously called "compcache". It increases performance by avoiding paging on disk and instead uses a compressed block device in RAM in which paging takes place until it is necessary to use the swap space on the hard disk drive. Since using RAM is faster than using disks, zRam allows Linux to make more use of RAM when swapping/paging is required, especially on older computers with less RAM installed.
Even though the cost of RAM hardware is relatively low this feature still offers advantages for netbooks and other lower-powered latops, virtualization and in the case of embedded devices, especially those that use flash memories that have a limited lifespan, dependent on write-use and thus wear out quickly when used as a swap device."
So the data are still in RAM but compressed...yes if you disable Zram they will be still there but they will use more ram! You gain more free ram when u use Zram but your CPU load is higher so perfomarnce is almost the same..
Konstantinosj77 said:
So the data are still in RAM but compressed...yes if you disable Zram they will be still there but they will use more ram! You gain more free ram when u use Zram but your CPU load is higher so perfomarnce is almost the same..
Click to expand...
Click to collapse
Still not clear.
On linux, after ram is depleted, data is coming from page file (hard disk)
How does zram work?
Does it pre-occupy that space in ram?
Or when ram is depleted, zram is automatically enabled and it starts compressing data???
gordito_gr said:
Still not clear.
On linux, after ram is depleted, data is coming from page file (hard disk)
How does zram work?
Does it pre-occupy that space in ram?
Or when ram is depleted, zram is automatically enabled and it starts compressing data???
Click to expand...
Click to collapse
Read again the part from the wiki..it says that zram uses "a compressed block device in RAM" so yes it pre-occupy some ram like a swap file! Also read this http://forum.xda-developers.com/showthread.php?t=2023568
Gaming Mode Script
As you all know our phone with ICS update struggles in gaming even at games that don't use a lot of ram.
The constant restarting of services that were killed are simply drag every game to hell.
There are many apps in Play Store that are doing what my script does.
But the problem is that most facing a problem in closing the swap file and they just re-enabling it.
That's a problem because even with a class10 SD card the phone is a lot laggy with swap.
Programs need seconds to open and to go to homescreen sometimes needs even 5 seconds and more.
Here's the solution. A simple switchable Script that will give you the extra juice only when you want to game hard.
UPDATE:
Added swap in partitions.
Requirements:
Needs working Busybox and SU
Instructions:
1. Copy the script from inside the appropriate zip to /data or /system and make the permissions to rwx-rwx-rwx (0777).
2. Use Script Manager or what you want,
and make a widget in your homescreen for easy access. Be sure to enable SU in options!
Also install SM widgets so you can set your script as a shorcut in homescreen. That way Smanager will not take any RAM.
3. Tap the widget and after it's done close SManager and you are ready to rumble and enjoy lag-free games.
4. After you are done, press once again the widget and the swap file will be removed. Enjoy your phone back to it's lag free condition.
swaponoff.zip for swap in a file
swappartonoff.zip for partitioned swap
Config:
You can change preferences by editing the script. DON'T use notepad! it will break the unix encoding that it's needed for the script busybox commands.
SWAP_FILE: Where to save the swap file.
SWAP_SIZE: Swap file size in MB. Default is 128MB
SWAPPINESS_OPTION: How much to swap. Default is 10, to avoid unnecessary swapping.
For partitions chage SWAP_PART="/dev/block/mmcblk0p3" Change 3 to what your swap partition number is
Notice:
That will give you lag free games only. Using swap always on will make your phone laggy in general usage.
Also always close the swap file before connecting the phone to usb mass storage!!
Credits go to mrvek for his swap script, which I used as a base.
If you like it, please press thanks!
did this script need partition swap or not?
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
xeraphael said:
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
Click to expand...
Click to collapse
The system can push te apps into swap. Without need of to kill them(before it kills tehm but they keep restarting afterwards so this is why some games lag) Some other games need alot of memory to even start. So when you have swap. the game can use all the 300mb ram(at least 30 are for frameworkcs, etc)
And CTCaer. I think you shall add that it srecommended to use swap partition. Its better ... at least for me
odie70 said:
did this script need partition swap or not?
Click to expand...
Click to collapse
Nope. It makes use of your sd card. It mounts a certain file there.
A partition for swap was never needed. Also if you use for example noop i/o scheduler for sdcard, this will make the need for swap partition obselete. Because it will not prioritize the writing/read and will work like if you had 2 partitions in sd.
xeraphael said:
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
Click to expand...
Click to collapse
Well in ICS every library and framework and the default use of gpu make use of a lot ram. More ram than GB.
Most games need 60-120mb ram to play.
That makes android to kill services running, like widgets, homescreen, messengers and more to free ram.
The problem is that many of them the restarting almost immediately (like whatsapp) and others restart like normal when android sees that
there's free ram (like when you enter a menu in game, ram usage drops).
That creates an endless loop and make the games laggy and the worst of all makes the touchscreen unresponsive.
So the extra virtual ram helps so that these services remain open and not make an impact in your playing by restarting endlessly.
Android and in generally linux makes use of swap only for apps that are not needed.
That means that your game will be mainly in the real ram and will not lag.
In contradiction swap will make your phone laggy for general use because every time you open an app, another app or services will use the swap file (like homescreen).
So when you return to homescreen or to an app that is cached in swap, android will retrieve it from it to the main ram.
This will cause a delay to opening the map and a general lag feeling for 2-5 seconds (according to how much of it went to swap).
I even disabled zram for almost that reason (it takes cpu cycles), as i needed it for game before using swap only when gaming.
To sum it up,
only one thing I saw from using this script when gaming: ALL games now feel like i have gingerbread in my phone.
Only downside is that some gameloft games need a little more time to load, but when android gets done with swapping the unused services, it fades away.
Extra tip: Enable swap when using google maps. Same win like games
Whats the different with ram xpander apps
I used this apps and create 1020 Mb memory swap
This apps used my sd card for supporting the internal memory
And this minimize the force closed apps when we need a lot of ram to open hard apps
Sent from my ST18i using xda premium
mvoid533 said:
Whats the different with ram xpander apps
I used this apps and create 1020 Mb memory swap
This apps used my sd card for supporting the internal memory
And this minimize the force closed apps when we need a lot of ram to open hard apps
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
The only difference is that with my script you don't need an app and that app will take ram as it's always there.
And because some swap apps don't let you disable easily or even at all the swap.
The script is mostly for people that want to have extra virtual ram only when gaming or using google maps.
And btw if needed i can make a script like that for swap in partition.
So how to create it
Or i am just edit your script from 128 to 1000 Mb swap
Sent from my ST18i using xda premium
mvoid533 said:
So how to create it
Or i am just edit your script from 128 to 1000 Mb swap
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
Check OP i've added for partitions.
just fix the number of your partition.
Turning off swap doesnt work
when I tap the widget with swap on, It doesnt erase, nor stop swapfile and it just give me errors
Here is the result when I try to disable swap file
exec /system/bin/sh '/mnt/sdcard/swaponoff/swaponoff.sh'
n/sh '/mnt/sdcard/swaponoff/swaponoff.sh' <
/mnt/sdcard/swaponoff/swaponoff.sh[8]: grep: not found
write: Broken pipe
Gaming Mode Script
by CTCaer
credits to mrvek @ XDA for the original script.
Creating SWAP file of 128 MBs...
dd: can't open '/mnt/sdcard/.swapfile': Text file busy
Fromating SWAP file...
Setting up swapspace version 1, size = 134213632 bytes
UUID=f7040068-5019-4fd0-b8e6-1231df0545b8
Enabling SWAP...
swapon: /mnt/sdcard/.swapfile: Device or resource busy
Done! Ready to game!
I hope you guys have answer to this problem
Sent from my ST18i using Tapatalk 2
Will Hong said:
Turning off swap doesnt work
when I tap the widget with swap on, It doesnt erase, nor stop swapfile and it just give me errors
Here is the result when I try to disable swap file
exec /system/bin/sh '/mnt/sdcard/swaponoff/swaponoff.sh'
n/sh '/mnt/sdcard/swaponoff/swaponoff.sh' <
/mnt/sdcard/swaponoff/swaponoff.sh[8]: grep: not found
write: Broken pipe
Gaming Mode Script
by CTCaer
credits to mrvek @ XDA for the original script.
Creating SWAP file of 128 MBs...
dd: can't open '/mnt/sdcard/.swapfile': Text file busy
Fromating SWAP file...
Setting up swapspace version 1, size = 134213632 bytes
UUID=f7040068-5019-4fd0-b8e6-1231df0545b8
Enabling SWAP...
swapon: /mnt/sdcard/.swapfile: Device or resource busy
Done! Ready to game!
I hope you guys have answer to this problem
Sent from my ST18i using Tapatalk 2
Click to expand...
Click to collapse
Well after updating busybox, problem was solved
Sent from my ST18i using Tapatalk 2
Will Hong said:
Well after updating busybox, problem was solved
Sent from my ST18i using Tapatalk 2
Click to expand...
Click to collapse
Yeah, i forgot to write it. I'll update the OP and say that it needs busybox.
Yeah it work
I made 256 Mb swap
So if I am not a gamers
I cant use it
Hahahhaha
Lol
Sent from my ST18i using xda premium
mvoid533 said:
Yeah it work
I made 256 Mb swap
So if I am not a gamers
I cant use it
Hahahhaha
Lol
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
Well if you are not a gamer it's not needed. 347mb ram is plenty for everything in our phones except google maps and chrome
No its not enough
Cos I have used smart experia Rom
And needs a lot of ram
Cos I have some lag on the root eksplorer
And more
FB sync to much : Timescape, walkman, album, etc. Its sync to fb and I need more ram I guess
Sent from my ST18i using xda premium
mvoid533 said:
No its not enough
Cos I have used smart experia Rom
And needs a lot of ram
Cos I have some lag on the root eksplorer
And more
FB sync to much : Timescape, walkman, album, etc. Its sync to fb and I need more ram I guess
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
Ah well i have completely removed facebook integration and timescape from my rom.
But i have Next Launcher that gets 25-35mb ram and it's locked in ram. Beatiful widgets, switch pro widgets, contacts, whatsapp and more that are open and it never lags with or without zram.
Anyway if your rom needs more ram then this script is not good for the swap to be always on. Better stick to an app that will auto switch it off when mounting to mass storage and to auto start it at boot.
Thank for the suggestion
I used razr m homescreen with circle 3d widgets and new jb Sony home
I think everythink will be ok
Sent from my ST18i using xda premium
CTCaer said:
Nope. It makes use of your sd card. It mounts a certain file there.
A partition for swap was never needed. Also if you use for example noop i/o scheduler for sdcard, this will make the need for swap partition obselete. Because it will not prioritize the writing/read and will work like if you had 2 partitions in sd.
Click to expand...
Click to collapse
well that's sound's good,, thanks,, i'll try it!
mvoid533 said:
Thank for the suggestion
I used razr m homescreen with circle 3d widgets and new jb Sony home
I think everythink will be ok
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
No problem. Not every user has the same needs. Because i made a script doesn't mean that will work good for anyone.
Thats why XDA exist. To share and learn.
My script is for users who need that extra juice only when opening an app that demands a lot of ram.
odie70 said:
well that's sound's good,, thanks,, i'll try it!
Click to expand...
Click to collapse
I uploaded a script for partitioned sd cards if you want.
But yeah that's how it's done.
With deadline and swap in scard, your kernel will prioritize the read/write to the sdcard between reading files for your game and read/writing for swap.
Noop will use 1st in read/write command -> will be the 1st out.
If you use a partition for swap and deadline, android will prioritize the read for your game only.
The scheduling of read writing for swap partition and together with the game will fall to SD Card. Which is like noop. 1st command in ->the 1st to be executed.
I hope i explained the main differences about swap on file or partition.
Install Ram Manager instead. lol
Is the ram expander really works? Because I'll try a lot of times for increasing my device ram. But it wont work. What can i do now?
Sent from my Micromax A065 using XDA-Developers mobile app
No it slows your device down . Wrong forum btw
The strange thing I noticed to, was that the drive cache option, only applies to the internal storage, even if you do select the EXTSD.
If that was not bad enough, you should also check this article. Which goes into detail about the read head buffer (Same as drive cache).
I think the only true way where you can get more memory, is to download a custom kernel and tweak the zram (If defaults are not quite enough). All it does is allow compression on ram, the only downside is that the performance is affected in some way. But for me I have not noticed the difference.
i have used it but have found no significant changes on how my phone handles RAM
Sent from my Flare_S4 using Tapatalk