[SCRIPT] Gaming Mode! v2[SWAP] - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

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

Related

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

[Q] question about available RAM

hello!why on the specifications of neo says that there is a 512MB ram and we have available only 335MB??that is very sad....the ram is barely enough for the applications i use and most of the times it reaches the limit....if there was 512MB it would be all fine..
andrewfx1 said:
hello!why on the specifications of neo says that there is a 512MB ram and we have available only 335MB??that is very sad....the ram is barely enough for the applications i use and most of the times it reaches the limit....if there was 512MB it would be all fine..
Click to expand...
Click to collapse
I think that's with storage for system apps incuded. you need to root your phone to use the other part.
i have my phone rooted.....what do you mean?can i do something to have more ram?the internal storage of the device is 380MB....the RAM is 335MB....
Share memory for GPU.
MaxMedia said:
Share memory for GPU.
Click to expand...
Click to collapse
And point is....?
Sent from my MT15i using Tapatalk
i think you can do something with app2sd+, but i don't know how...
You can use built in app2sd. Settings-applications-manage apps-choose some app and "move to sd"
Or if you are rooted simply delete bloatware and etc
Regards!
Taavi
Sent from my MT15i using Tapatalk
maybe you didn't understand my question....I don't have the problem with the internal memory(cause I can move apps to SD)but with RAM....the applications I run simultaneously reach the ram to the limit and the side effect when that happens is that the phone becomes laggy because of restarting some applications to release ram...
andrewfx1 said:
maybe you didn't understand my question....I don't have the problem with the internal memory(cause I can move apps to SD)but with RAM....the applications I run simultaneously reach the ram to the limit and the side effect when that happens is that the phone becomes laggy because of restarting some applications to release ram...
Click to expand...
Click to collapse
Are you using Dolphin Browser too?
Sent from my MT15i using Tapatalk
no,i use opera mobile...but the apps i want to use is talkdroid for live messenger,viber for free calls,accuweather and smart app protector....these are the standard opened apps that run and shown on the notification bar...but if i open something like gallery,camera,opera etc most of the times when i close the app i used last time and return to home screen,the icons seem to disappear and reappear,something like reseting...that time the phone is very slow and laggy...
andrewfx1 said:
no,i use opera mobile...but the apps i want to use is talkdroid for live messenger,viber for free calls,accuweather and smart app protector....these are the standard opened apps that run and shown on the notification bar...but if i open something like gallery,camera,opera etc most of the times when i close the app i used last time and return to home screen,the icons seem to disappear and reappear,something like reseting...that time the phone is very slow and laggy...
Click to expand...
Click to collapse
If you are already rooted i can suppose only that:
1. Lookup your ALL apps, clean cashe and dalvik
2. Remove bloatware system/app
3. Move most importants apps to system/app folder
4.After. clean rom install you had about 60mb space in system/app partitiond. after cleaning about 100 no needed bloatware app you had in system/app partitions more 150+mb free spce.
5. REBOOT is sometime useful.
6. Dont use task killers, cashe cleaner 3rd part apps.
7.No need complain about so small ram, rom,memory...you had alot memory, ram etc.....USE IT RIGHT WAY.
8. Have nice day!
Cheers!
Taavi
Sent from my MT15i using Tapatalk
RAM is 512MB but shared for GPU so just 335Mb available for users.
Similarly S galaxy, 512MB ram but just 330MB available for users.
//
sry for my eng
you can change,remove unnecessary app on your system. and at the data/app.... just organized it....

[Q] Would you recommend using swap2cache??

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.

Turbo boost mod v3.03-aroma

Hi people!
i've found this
http://forum.xda-developers.com/showthread.php?t=2145133
tested it on my device and work fine with CM 10.1
waithing for the official release
How did you manage to make it work?.. i can update it with the cwm and neither the manual way.. with terminal it says not writable (but it is!)
uc370 said:
How did you manage to make it work?.. i can update it with the cwm and neither the manual way.. with terminal it says not writable (but it is!)
Click to expand...
Click to collapse
Try to change permissions using root explorer or es file manager
Sent from my XT910 using xda app-developers app
Permision were changed.. terminal still says only red file
uc370 said:
Permision were changed.. terminal still says only red file
Click to expand...
Click to collapse
I don't know why terminal see only read but if you do cat /proc/swaps you will see how swaps are working
Sent from my Folio 100 using xda app-developers app
And what should it look like?.. q tendria q salir.. aprox 51000 50000 -1
vince686 said:
Hi people!
i've found this
http://forum.xda-developers.com/showthread.php?t=2145133
tested it on my device and work fine with CM 10.1
waithing for the official release
Click to expand...
Click to collapse
I've been trying this patch (manually, not the complete script), but I have found this actually slows down the folio. There is a reason why flash-based devices don't have a swap. When writing large blocks to swap, the system will stutter heavily. The slow flash disk of the folio will not help in this. My test shows it is actually slowing down quite a bit.
Even with the low RAM of the folio, it is still faster to just start/restart an app than to swap it away in a swapfile (resulting in 1secs of stutter) and then getting it back anyway from disk.
ZRAM is something similar. Tough here I can understand some improved use cases, but:
- you take away precious RAM
- then you swap out programs and compress them (uses a lot of CPU)
- if you swap the program in again, you need to decompress. Granted, the decompress might be a little faster than restarting the app.
- because of the lower useable memory, programs do have an higher chance than before to be compressed (vs killed without ZRAM), so decompression (with ZRAM) statistically will happen more than restarting (without ZRAM), making the gains of ZRAM point 3 less.
- I don't think this works correctly with huge processes (e.g. browser), and will just see that less RAM is available, and will not swap out parts because the whole memory region is still in use (best case, it will continuously swap in & out parts, making it again slower)
I'm not completely trowing out ZRAM, as it is still beneficial with some workload combinations (I think a large collection of small apps is the most optimal case)

[Help] Insreased RAM but nothing Happened

Hey guys .. today i increased my RAM using some methods on the internet but RAM Expander Didn't work it says : swapon sdcard/swapfile.swp invalid argument ... so my problem is i have used . Sawpit Ram Expander and succeed but when i check my ram .. it still the same no changes & nothing happened please help me ASAP​
Well you can add physical ram to a phone, you can flash a kernel or bootloader that reallocates some ram, but this is device specific and often takes some very intelligent programmers to make this happen.
The other way is to use virtual ram in the form of a swap partition, this will use sdcard or internal data or whatever partition you make work, function as ram, but it is slower than real ram and depending on how you use your device may make it slower altogether. I believe this is the method of increasing ram that you did, the easiest way to see if it worked is to open a terminal emulator and type
free
The final way is with compcache or zram, both squash ram and has a similar caveat to using swap as it may make things worse.
A few Google or xda searches should explain this a bit more than I have
Sent from my Nexus 4 using XDA Premium 4 mobile app
Thanks for your help
demkantor gonna try zram soon​
demkantor said:
Well you can add physical ram to a phone, you can flash a kernel or bootloader that reallocates some ram, but this is device specific and often takes some very intelligent programmers to make this happen.
The other way is to use virtual ram in the form of a swap partition, this will use sdcard or internal data or whatever partition you make work, function as ram, but it is slower than real ram and depending on how you use your device may make it slower altogether. I believe this is the method of increasing ram that you did, the easiest way to see if it worked is to open a terminal emulator and type
free
The final way is with compcache or zram, both squash ram and has a similar caveat to using swap as it may make things worse.
A few Google or xda searches should explain this a bit more than I have
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Rooted !

Categories

Resources