Swap file - G 2014 Q&A, Help & Troubleshooting

hi. is it possible to increase swap file to 1 or 2 gigs? i m on cm12. seems impossible.
thx
docmax
Gesendet von meinem Moto G 2014 mit Tapatalk

DocMAX said:
hi. is it possible to increase swap file to 1 or 2 gigs? i m on cm12. seems impossible.
thx
docmax
Gesendet von meinem Moto G 2014 mit Tapatalk
Click to expand...
Click to collapse
Cause we are using ZRAM which is located inside of RAM.
Also wrong forum..

please move this to right forum.
any way to increase swap?
1 gig of ram is to low these days on android.

DocMAX said:
any way to increase swap?
Click to expand...
Click to collapse
Swap file/partition wouldn't do any good. It would kill your sd in no time.

ok. is there anything to increase speed on 1gb ram? maybe smaller push services? facebook takes 50mb.
Gesendet von meinem Moto G 2014 mit Tapatalk

DocMAX said:
ok. is there anything to increase speed on 1gb ram? maybe smaller push services? facebook takes 50mb.
Gesendet von meinem Moto G 2014 mit Tapatalk
Click to expand...
Click to collapse
Uninstall facebook app.I would do but seriously,1gb is 1gb, here are a lot of threads how to improve ram management (amplify,greenify,disable services etc etc).Check that out.

DocMAX said:
hi. is it possible to increase swap file to 1 or 2 gigs? i m on cm12. seems impossible.
thx
docmax
Gesendet von meinem Moto G 2014 mit Tapatalk
Click to expand...
Click to collapse
DocMAX said:
please move this to right forum.
any way to increase swap?
1 gig of ram is to low these days on android.
Click to expand...
Click to collapse
doppelhelix said:
Swap file/partition wouldn't do any good. It would kill your sd in no time.
Click to expand...
Click to collapse
DocMAX said:
ok. is there anything to increase speed on 1gb ram? maybe smaller push services? facebook takes 50mb.
Gesendet von meinem Moto G 2014 mit Tapatalk
Click to expand...
Click to collapse
Wolfcity said:
Uninstall facebook app.I would do but seriously,1gb is 1gb, here are a lot of threads how to improve ram management (amplify,greenify,disable services etc etc).Check that out.
Click to expand...
Click to collapse
I've been using a second partition in my sd card as swap for a long time, at first i make it 1gb i saw it doesn't takes more than 250mb of use so i reduced it so 512, i use my own init.d script that also disables zram; let me say that compared to zram, swap really makes a difference on multitasking, of course it doesn't add like "more ram" or "speed it up", but it is way better to have a swap file in the sd card or in any partition in the phone, i use a lot of apps that their service stays at background (like facebook, tasker, messenger, nova, spotify, pushbullet) and still the phone runs pretty smooth and 300mb+ of ram still free for foreground apps.
And yes, swap on sd cards actually kills them (i rekt two 8gb class 10 sd card with that already using swappiness=100)

can't find a kernel with swapon support...
or with other words: ram expander says swapon /mnt/storage/sdcard1/swapfile.swp: invalid argument

ok. i created a swap partition. now i have 3gb swap. very happy now. cm12.1 running.
Gesendet von meinem Moto G 2014 mit Tapatalk

Can you please tell us how did you do it and is it possible with cm stock kernel.

himsin said:
Can you please tell us how did you do it and is it possible with cm stock kernel.
Click to expand...
Click to collapse
disable zram0 and use LATEST RAMEXPANDER (3.35)

himsin said:
Can you please tell us how did you do it and is it possible with cm stock kernel.
Click to expand...
Click to collapse
I wouldn't use swap file/partition
It may kill your NAND/SD Card

i do this for years. never killed my sd card.

luca020400 said:
I wouldn't use swap file/partition
It may kill your NAND/SD Card
Click to expand...
Click to collapse
I know enabling swap will increase read/write requests on SD tremendously. However, there are very few cases of dying SD cards due to swap, NAND is safe unless you use internal storage for swapping. Also even if it works for a year or so with swap, it won't be any problem as SD cards are quite cheap these days and the benefits you are getting in exchange are greater than the cost

himsin said:
I know enabling swap will increase read/write requests on SD tremendously. However, there are very few cases of dying SD cards due to swap, NAND is safe unless you use internal storage for swapping. Also even if it works for a year or so with swap, it won't be any problem as SD cards are quite cheap these days and the benefits you are getting in exchange are greater than the cost
Click to expand...
Click to collapse
I was about to make that comment sdcards are cheap, 15usd for class10 32gb if you use it for one year you've paid less than 1.25usd a month for a better experience

DocMAX said:
disable zram0 and use LATEST RAMEXPANDER (3.35)
Click to expand...
Click to collapse
What path did you used for swap file. Mine is failing by both app and manual commands.
I tried following:
/storage/sdcard1
/mnt/sdcard1
/external_sd
/mnt/media_rw/sdcard1
But nothing is working

Related

Thread closed.

Thread closed.
Thread closed.
Thread closed.
Reserved
God job but this can fix the problem of memory leak?
Inviato dal mio GT-I9300 con Tapatalk 2
mattiadj said:
God job but this can fix the problem of memory leak?
Click to expand...
Click to collapse
Unfortunately not, to fix that you'd need to find the source of the leak and correct it
JP.
So what is the benefits of this fix?
Simply... Why we need this? Sorry but I didn't understand.... My bad mate
Inviato dal mio Transformer TF101 con Tapatalk 2
mattiadj said:
So what is the benefits of this fix?
Simply... Why we need this? Sorry but I didn't understand.... My bad mate
Click to expand...
Click to collapse
No problem The thing is, we have a certain amount of RAM at our disposal, plus our devices are getting faster and faster, getting more and more cores, but not that much RAM increase.
Let me illustrate my point :
htc HD2 (my frist device to run Android) - 2009
RAM : 448 MB usable
CPU : 1 GHz Qualcomm Snapdragon (single core)
SGS3 - 2012
RAM : 778 MB usable
CPU : 1.4 GHz quad-core Cortex-A9
So CPU speed is up by way much more than RAM, and I'm not taking GPU into consideration, plus storage speed increase etc...
Now those devices tend to be used in multitasking, having many apps running at the same time.
What those need is :
- CPU power to run on (we have plenty !)
- RAM to fit in (we have little)
Now even though an APP is running, not every bit of it is really needed, so those parts can be swapped out (put into swap) freeing these memory blocks and making room for more apps to fit in RAM.
So what will this mod do for you : Allow for more multitasking
Keep more apps running in RAM at the same time, making the device snappier when switching from one app to the other.
One app won't run faster !
If now you don't have swap, Android will have to gently ask the least used app to please close (save data, and quit) to free up RAM. Now when you get back to that app, Android will have to reload it, the app will start and reload it's data.
You can see, this will take more time.
Hope this isn't too confusing
I have a question before i attempt setting this up.
How do we identify which partition on the card is supposed to be for swap?
I have a 64gb sandisk card and say i make two partitions, one massive one for data and a 2gb one on the end for swap, how do i identify to android that the 2gb one is for swap? Also, what format should the partition be?
Cheers.
Sent from my GT-I9300 using xda premium
hefonthefjords said:
I have a question before i attempt setting this up.
How do we identify which partition on the card is supposed to be for swap?
I have a 64gb sandisk card and say i make two partitions, one massive one for data and a 2gb one on the end for swap, how do i identify to android that the 2gb one is for swap? Also, what format should the partition be?
Cheers.
Click to expand...
Click to collapse
The script handles finding the partition
All you need to do is partition your card and be sure the swap partition is :
- a primary partition
- of type "Linux Swap"
JP.
I have 1gb micro sd card, so can i use whole card as swap card?
jnr21 said:
I have 1gb micro sd card, so can i use whole card as swap card?
Click to expand...
Click to collapse
Yes, just create one partition with the size of the card, and make it a primary partition of type "Linux Swap".
But just a thought, what speed class is this card ? A too slow card might not be a good idea to use as swap device.
I'm waiting for my 64Gb card, so for now I'm running 512Mb swap on my older Transcend class 4 card, which is running fine for far. I'd not really go lower, though it's sur worth a try
JP.
Will the whole swap partition be used as swap memory?
And one more thing: what happens, if you remove the external sd, while the mod is active?
Gesendet von meinem GT-I9300 mit Tapatalk 2
Thankyou. Will give this a try.
Sent from my GT-I9300 using xda premium
paranoid2007 said:
Will the whole swap partition be used as swap memory?
Gesendet von meinem GT-I9300 mit Tapatalk 2
Click to expand...
Click to collapse
Yes, the partition is used, so its size is the limit
JP.
Yank555 said:
Yes, just create one partition with the size of the card, and make it a primary partition of type "Linux Swap".
But just a thought, what speed class is this card ? A too slow card might not be a good idea to use as swap device.
JP.
Click to expand...
Click to collapse
There's no mention what class it is. As i remember card came with some nokia phone 2-3 yerars ago, so i think that it's pretty slow, but i will test it anyway.
use with extsd and internal sd swap script?
Hi,
just wonder if I can use this with the extsd and interenal sd swap mod by mattiadj?
that will be great if i can use both mod and if we can use both, where will be the swap space? still the extsd?
thanks.
Hi,
Thank you for sharing this mod. What size would you recommend for the swap partition? I think that the general recommendation for desktop Linux is something like one to two times the size of physical RAM, depending on available disk space. Would that be reasonable for Android as well?
ctrlaltdel said:
Hi,
just wonder if I can use this with the extsd and interenal sd swap mod by mattiadj?
that will be great if i can use both mod and if we can use both, where will be the swap space? still the extsd?
thanks.
Click to expand...
Click to collapse
Swap will all be used, but they will have a priority (order) which you can check by typing "cat /proc/swaps" in a terminal.
I'd not use many though, you don't really need that much swap Just compare and keep whatever works best for you
yhrn said:
Hi,
Thank you for sharing this mod. What size would you recommend for the swap partition? I think that the general recommendation for desktop Linux is something like one to two times the size of physical RAM, depending on available disk space. Would that be reasonable for Android as well?
Click to expand...
Click to collapse
On Android that might be shooting a little too high. I have a 512Mb partition, but I suppose 256Mb would be fine, that is the size I used on my previous devices.
JP.
mattiadj said:
God job but this can fix the problem of memory leak?
Inviato dal mio GT-I9300 con Tapatalk 2
Click to expand...
Click to collapse
It will not fix the leak, but phone will run longer.
For fix see my thread in this forum.

Increase RAM??

ok so i was thinking our mini has 384mb ram of which only 280 are available...is there some way to use the whole RAM not only 280mb??
on froyo i had: 279mb ram
on ginger: 280
on ics: 276mb
so why not 384?? whats holding the other 104 mb?
think i found what i was looking for: "MemTotal" = physical memory minus whatever is being shared with devices (such as the radio, DMA buffers, etc), so it will always be less than the advertised RAM for your phone.
am i right??
Use swap it will increase your ram but you must have a good sd card.
Sent from my GT-S5570 using Tapatalk 2
hsay said:
Use swap it will increase your ram but you must have a good sd card.
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
you mean a class 10 card? If so, how do I create a swap partition for my rooted device?
It's because some memory is also used for graphics and other stuff. In ICS it is 279MB, but on JB it's 276 because I have increased framebuffer size for triple buffering etc.. Theoretically, by experimenting, it's possible to get at least 285-290MB.
Me, too..
I have experimenting and the result :
Froyo : 281 MB
Ginger : 279 MB
IceCream : 278 MB
JellyBean : 276 MB
as far as i know, RAM used by :
1. GPU
2. Graphics thing
3. And Other stuff..
Then the rest of them goes to RAM values, so your Mini RAM was around 300 Megabytes, but since GPU, and other things take it RAM just decreased.
I also have a Galaxy Tab 2 7.0 Inc, wich have a 1 Gigabytes RAM, but since other things take it, it decreased into 679 MB (wow, really huge decreased isn't it ? :silly: )
xyboox said:
you mean a class 10 card? If so, how do I create a swap partition for my rooted device?
Click to expand...
Click to collapse
You can create a swap partition from cwm from advanced option then while partitioning SD card select a value for swap. This will completely erase your SD card so make a backup
Sent from my GT-S5570 using Tapatalk 2
Good to know! Thanks @hsay
Sent from my GT-S6500D using Tapatalk 2

[Q] how can i increase ram of my samsung galaxy ace

how to make virtual ram in galaxy ace rooted s5830.....running ics'ed by snowpluralism....
n do it helps in smooth runnings...
and any disadvantages:highfive:
Ashish924 said:
how to make virtual ram in galaxy ace rooted s5830.....running ics'ed by snowpluralism....
n do it helps in smooth runnings...
and any disadvantages:highfive:
Click to expand...
Click to collapse
Well, you can use a swap partition. CM7+ also has ram compression.
Sent from my GT-S5830 using Tapatalk 2
NathanBookham said:
Well, you can use a swap partition. CM7+ also has ram compression.
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
can u help me in that...i dont know how to do it...n also is it safe and effective....thanks
Ashish924 said:
can u help me in that...i dont know how to do it...n also is it safe and effective....thanks
Click to expand...
Click to collapse
Google for it. XDA is against spoon-feeding..!!
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
I've tried swapper 2, it's good. But have to understand each term they use in the app. Currently I'm now on RamExpander. Very good.
Sent from my GT-S5830 using xda app-developers app
DuckyDawn said:
I've tried swapper 2, it's good. But have to understand each term they use in the app. Currently I'm now on RamExpander. Very good.
Sent from my GT-S5830 using xda app-developers app
Click to expand...
Click to collapse
For me Ramexpander say is not compatible with Ace.
I heard swapping partition from sd card to increase the ram, sd card might get damaged!!, is it true?
Reduces SD Life so yes.
Sent from my iPhone
but i guess you will change your sd card before it gets damaged so much, that you will notice.
i only had this once on a USB pendrive. it loses data since some weeks ago. but its about 8 years old.
lets say that todays SD cards have better lifetime than years old USB sticks. lets also say that you use your sd card more often than i used this stick (backups later car-radio). so we can say your SD card might have a bit less lifetime. lets say 6 years. in 6 years you will (most likely) have a new phone, sd cards are "oldies" and if not, 1TB cards are state-of-the-art.
so....yes you loose lifetime but i dont think you will use it till it "dies"
CJCord said:
but i guess you will change your sd card before it gets damaged so much, that you will notice.
i only had this once on a USB pendrive. it loses data since some weeks ago. but its about 8 years old.
lets say that todays SD cards have better lifetime than years old USB sticks. lets also say that you use your sd card more often than i used this stick (backups later car-radio). so we can say your SD card might have a bit less lifetime. lets say 6 years. in 6 years you will (most likely) have a new phone, sd cards are "oldies" and if not, 1TB cards are state-of-the-art.
so....yes you loose lifetime but i dont think you will use it till it "dies"
Click to expand...
Click to collapse
It really depends on use. When I swapped i ate through my sdcard in less than 6 months.. so there you go. Keeping low swappinness will increase sd card life, but it does depend on use.
increasing ram by swapping sd card is effective to what extent...can any body tell me....does it bridge the gap of our low ram...
AND ANY OTHER DISADVANTAGE THAN REDUCING SD CARD LIFE
Blackstard said:
For me Ramexpander say is not compatible with Ace.
Click to expand...
Click to collapse
Huh? I Don get u cozy mine is working fine. Downloaded from blackmarket
Sent from my GT-S5830 using xda app-developers app
Ashish924 said:
increasing ram by swapping sd card is effective to what extent...can any body tell me....does it bridge the gap of our low ram...
AND ANY OTHER DISADVANTAGE THAN REDUCING SD CARD LIFE
Click to expand...
Click to collapse
That why the requirement need class 10 SDcard
You can use CM7 that uses less RAM!.. I just went from CM10 to CM7 and it really is an improvement for ACE as it uses a bit less RAM and that is noticeable.
thanx but no cm7
Jimmyslam said:
You can use CM7 that uses less RAM!.. I just went from CM10 to CM7 and it really is an improvement for ACE as it uses a bit less RAM and that is noticeable.
Click to expand...
Click to collapse
thanks...but i dont want cm7 as i dont like it....i want it in a stock rom...btw thanx
Ashish924 said:
how to make virtual ram in galaxy ace rooted s5830.....running ics'ed by snowpluralism....
n do it helps in smooth runnings...
and any disadvantages:highfive:
Click to expand...
Click to collapse
there are quite a few apps for increasing the ram like ramexpander and swapper...
but before using these apps remember that the read and write speed of sd card(which is secondary storage) is vey less as compared to that of the internal ram.. and probably thats why ram is very expensive as compared to sd card...
so if you use these apps may take a bit longer to start and even the best of sd cards i.e. the class 10 one won't last longer than 6 months...
Increasing ram
Hi i install ram manager pro apk on gts5830i then i create a swap file 128mb using this apk, then on sd card i see swap file img does it mean my phone ram increased.... i didn't install any kernel for it... plz does tell me if it increase ram or not...
I tried something on a other phone from my neighbor. is a huawei with same specs than the galaxy ace..
I moved apps to SD card with link2SD and created a Swap file in the internal storage.
The internal storage is much faster than the SD card and much better for swap file.
sahil chandel said:
Hi i install ram manager pro apk on gts5830i then i create a swap file 128mb using this apk, then on sd card i see swap file img does it mean my phone ram increased.... i didn't install any kernel for it... plz does tell me if it increase ram or not...
Click to expand...
Click to collapse
What is RAM
Random Access Memory (RAM) is temporary data storage that the CPU uses during calculations. The more RAM a device has, the more calculated results the CPU can store - which means less time the CPU has to do the same thing over and over again. In other words, the CPU can check RAM to see if it has already made a particular calculation in the recent past. If it has, it can use the pre-computed results instead of wasting processing time recomputing the same calculation. In short, more RAM means a more efficient (and faster) device.
SWAP
What is SWAP
Swap is, in short, virtual RAM. With swap, a small portion of the hard drive is set aside and used like RAM. The computer will attempt to keep as much information as possible in RAM until the RAM is full. At that point, the computer will begin moving inactive blocks of memory (called pages) to the hard disk, freeing up RAM for active processes. If one of the pages on the hard disk needs to be accessed again, it will be moved back into RAM, and a different inactive page in RAM will be moved onto the hard disk ('swapped'). The trade off is disks and SD cards are considerably slower than physical RAM, so when something needs to be swapped, there is a noticeable performance hit.
Unlike traditional swap, Android's Memory Manager kills inactive processes to free up memory. Android signals to the process, then the process will usually write out a small bit of specific information about its state (for example, Google Maps may write out the map view coordinates; Browser might write the URL of the page being viewed) and then the process exits. When you next access that application, it is restarted: the application is loaded from storage, and retrieves the state information that it saved when it last closed. In some applications, this makes it seem as if the application never closed at all. This is not much different from traditional swap, except that Android apps are specially programed to write out very specific information, making Android's Memory Manager more efficient that swap.
Click to expand...
Click to collapse
Credits go to CarlDeanCatabay

More RAM?

Hi.
Does anyone knows how to swap sd card for expand ram to 4GB with stock rom or any rom. Is it possible on z3 compact. Samsung's phones can do this. Can we add more ram with storage on Z3Compact ?
Why do you need more RAM?
CALLAVII said:
Hi.
Does anyone knows how to swap sd card for expand ram to 4GB with stock rom or any rom. Is it possible on z3 compact. Samsung's phones can do this. Can we add more ram with storage on Z3Compact ?
Click to expand...
Click to collapse
RAM and SD cards work at totally different speeds.
You could swap storage and SD card, but not RAM and SD card.
CALLAVII said:
Hi.
Does anyone knows how to swap sd card for expand ram to 4GB with stock rom or any rom. Is it possible on z3 compact. Samsung's phones can do this. Can we add more ram with storage on Z3Compact ?
Click to expand...
Click to collapse
bookworth is right, the difference in speed between the internal memory and the sd card with make it go slower not faster.
You could use Kernel Audituor to increase the Z-RAM size, this will give you more page file on internal memory, but I doubt very much you'll see any difference in performance. Unless you're getting 'out of memory' errors, I'd leave it alone.
Didgesteve said:
bookworth is right, the difference in speed between the internal memory and the sd card with make it go slower not faster.
You could use Kernel Audituor to increase the Z-RAM size, this will give you more page file on internal memory, but I doubt very much you'll see any difference in performance. Unless you're getting 'out of memory' errors, I'd leave it alone.
Click to expand...
Click to collapse
So I can't upgrade my ram to 4gb with sdcard?
CALLAVII said:
So I can't upgrade my ram to 4gb with sdcard?
Click to expand...
Click to collapse
why do you want 4Gb?
having more ram doesn't make the phone faster.
More ram is good for multitasking not a faster phone as Didgesteve said.
poobucket said:
More ram is good for multitasking not a faster phone as Didgesteve said.
Click to expand...
Click to collapse
Yes I know it, I already wanna more multitasking experience, speed not important

how to root and how to use sd card as RAM?

how to root and how to use sd card as RAM?
sekhar13515 said:
how to root and how to use sd card as RAM?
Click to expand...
Click to collapse
Even if you do that, there will be no performance gain. SD card is too slow for that purpose. Motorola did it the wrong way. They made a great device but didn't put in enough RAM to make it use its full potential.
Sent from my XT1068 using Tapatalk
sekhar13515 said:
how to root and how to use sd card as RAM?
Click to expand...
Click to collapse
You can root your phone easily... just watch this video
And using SD card as RAM is not a good idea, SD card is too slow to be an active RAM memory
nilanko said:
Even if you do that, there will be no performance gain. SD card is too slow for that purpose. Motorola did it the wrong way. They made a great device but didn't put in enough RAM to make it use its full potential.
Click to expand...
Click to collapse
so, any alternate option to run phone speed?
sekhar13515 said:
so, any alternate option to run phone speed?
Click to expand...
Click to collapse
You can use greenify and task killers to free up RAM. I know people say its not a good idea but it seriously works for this phone. It has too low RAM for Android to be able to handle it properly. It lags like hell without greenify and task killers.
Source: Personal experience
nilanko said:
You can use greenify and task killers to free up RAM. I know people say its not a good idea but it seriously works for this phone. It has too low RAM for Android to be able to handle it properly. It lags like hell without greenify and task killers.
Source: Personal experience
Click to expand...
Click to collapse
I am using that workaround from starting. Even also sometimes very slow and don't respond, that time have to restart the phone.
Whatever the high RAM, after 2 years Android gets slow.
https://youtu.be/kSNyzIgKvB0
sekhar13515 said:
I am using that workaround from starting. Even also sometimes very slow and don't respond, that time have to restart the phone.
Whatever the high RAM, after 2 years Android gets slow.
Click to expand...
Click to collapse
Yeah true that. And I guess we can't do anything about that.

Categories

Resources