[Q] what is swap?? - Wildfire Android Development

ok.. im a noob at this... bt what is SWAP partition??? how does its size effect the performance??

It's a partition on your device that the system use when the RAM is full.

so if its grater in size.... that means its good... right??
and if so.. then y do devs prefer to keep it as 0mb??

Beceause it's easier to maintain it i suppose ^^

Its because there is no need for swap and it can reduce the life of your sd card, according to most ppl
Sent from my HTC Wildfire using XDA App

pyroblazer said:
ok.. im a noob at this... bt what is SWAP partition??? how does its size effect the performance??
Click to expand...
Click to collapse
But remember, swap partition will never be fast like device ram chip.
And if u want to achieve good performance witch swap partition, buy microsd card class 6 (not 4)
good luck

Or use the stock class 2 card
Sent from my GT-P1000 using XDA App

ok... how do i check the class of by card?? coz here in India they dont provide class info along eith the card... also there is nothing written on it.... my card gives me a decent transfer rate of 4-5 mbps while copying to the card...

Class 4, it give me 10mb writing speed
Sent from my HTC Wildfire using XDA App

then i'd say mine is class 2(4-5 mbps while copying pc to sd, where as 9-10 mbps while copying 4m sd to pc)??? any software that could assure me??

interesting I have 8GB sd card class 4 and writing speed is 2mb max... is anything wrong? ****

jocto said:
interesting I have 8GB sd card class 4 and writing speed is 2mb max... is anything wrong? ****
Click to expand...
Click to collapse
Either u have been fooled, or its a problem with ur Pc(coz my class2 card gives me 4MBPS),
or the number of files is too large
Example :- 1 file of 100MB will copy faster than 100 files of 1MB each...
getting my point??

Related

Sd vs OnBoard Memory

Hey guyz....ne idea whts the speed comparisions between a class 6 sdcard and the on board memory ? Which is faster ? Well i know onboard usually are the fastest...just wondering the speed difference....
Not sure...but the /system is already filled enough whereas your ext partition on ur class 6 card is only ~1/6 - 1/5 filled so you have plenty of memory to mess around with. I think the read/write rate (6mb/s) iis about the same.
alritewhadeva said:
Not sure...but the /system is already filled enough whereas your ext partition on ur class 6 card is only ~1/6 - 1/5 filled so you have plenty of memory to mess around with. I think the read/write rate (6mb/s) iis about the same.
Click to expand...
Click to collapse
Yea c thts wht i was wondering...then as long as we have a big enough class 6 sdcard...shudnt hero run just as fast on the G1 as the original when using swapper?

[Q] SD Card Upgrade

I'm looking forward into upgrading my SD Card, right now it's the default CLASS 2 with 2gb. I pretend to buy a 16gb class 10 one, from Adata.
But I need to know some things first. The only reasons that I want to upgrade is to get more space to install apps, place musics and maybe expand my RAM a little.
So, is it possible to expand my ram? I don't want performance upgrade, it's just that I tend to multitask a lot of programs and my memory runs out really fast.
If so, how much more memory I can allocate on my SD?
Same for apps.
How much big can my apps partition be?
I saw that the recommended limit is something around 1.2/1.3gb, but is there a safe way to expand a little bit further? Or would it make the phone too much unstable?
And also, is it really worth it to upgrade my SD to a CLASS 10 one with 16gb? Or is it just a waste of money?
Thanks for the support and excuse me if I'm asking on the wrong section/way. I found somethings about it but there was nothing too much concrete. :/
EDIT
I just flashed my X8 with the latest firmware and baseband, as pc companion didn't want to install the baseband ..15 nor the newest drivers. Also installed the CM7, dualtouch and all that crap. It already installs apps to the SD and I've noticed a small slowdown on app startup. Would a class 10 sd soft it out?
Up to 200MB on SWAP partition, up to 2GB on apps EXT3/4 (any1 have so many of them???) rest for music/videos etc.
I have made a guide for partitioning the SD with ext+swap (you need AlfsKernel+GDX)
Look my signature
Thanks. But just another question. Is it really necessary to have a Class 10 SD card, or would Class 2 (the default one) slow things down while using swap?
Edit:
Also, a class 10 sd card is way too much expensive for me. I found a 16gb one, class 4 but it's SDHC. Will my X8 read a SDHC?
Everything above (and including) 4GB is sdhc, so yes, it reads them fine. About speed, yes it's important, apps will load faster.. but never amazingly fast. The X8 is slow nowadays, don't expect awesome results. If you are used to class 2 speeds and you buy a class 10 card then yes, you will notice improvement.. Not that much with a class 4. Do you really need a 16GB card? Maybe a 8GB class 8 or 10 would be better if you don't need that much space.
About adding more ram, just forget it
Sent from my E15i using XDA App
I got almost 20gb of just music on my computer, full discography of bands and all. Basically, 90% of the sd will be dedicated to music then But maybe i buy a 8gb one, i just need to stop being lazy and copy only the musics that i want instead of CTRL+A, CTRL+C, CTRL+V it all. Thanks for the help by the way.
So class 6 sdcard is enough for x8?

Which class type sd card shud i buy for my OB??

Hi ppl,
I wanna buy a 16GB SD card for my LG OB bt i dont know wich class type like (4,6,10) will be gud for it..
Pls guys hlp me out to buy a bettr sd card for grt performance...
Sent from my LG-P970 using XDA App
euphorcimoron said:
Hi ppl,
I wanna buy a 16GB SD card for my LG OB bt i dont know wich class type like (4,6,10) will be gud for it..
Pls guys hlp me out to buy a bettr sd card for grt performance...
Sent from my LG-P970 using XDA App
Click to expand...
Click to collapse
The bigger the class, the more performance you get, so you would obviously want to purchase class 10 if you can afford it buy the largest class you can get, though I would suggest *at least* 6
But will a high class type make my.device slow in working??
Sent from my LG-P970 using XDA App
And i have also heard dat larger class type eats lots of power...
Is it true??
Sent from my LG-P970 using XDA App
What will you do with your sdcard?
To save music and document, a class 4 is enough. (this is what I use)
If you want to move most of your application to your sdcard get a higher class.
SanDisk make great sdcard if you don't care about money. Kingston is fine. Adata class 10 are great for the price.
Sent from my HTC Panache / CM7 using xda premium.
Ya i need to transfer apps to sd card and to download movies and music....
Sent from my LG-P970 using XDA App
I Have a Samsumg 8Gb Classe 10 and I have a grate improve in the performance in the applications that I have in the sd.
I don't feel any extra consuming in the battery...
masterthor said:
The bigger the class, the more performance you get, so you would obviously want to purchase class 10 if you can afford it buy the largest class you can get, though I would suggest *at least* 6
Click to expand...
Click to collapse
This is not true! The class says something about the min performance, it says nothing about the max performance. It is possible a class 6 beats a class 10 card.
So my advice check some tests, where they compare each sd.
Greetz
Sent from my LG-P970 using Tapatalk
get a class 4.
There's a reason why most of the Windows Phone 7s uses an internal class 2 microsd card.
For writing many files onto an sdcard at the same time (lets say while using an app) it would be faster the lower the class.
But obviously a higher class would let you write a single file faster, but with a class 4 you could easily record HD video on your Optimus Black with no lag at all.
Save the money and get a class 4.
Thanks guys for ur suggestions..
Waitin for mre replies..
Sent from my LG-P970 using XDA App
I'd prefer the 10 if i were you,and I have a 16gb c10 right now
Higher class = no problem till now
I't classy enough though
Sent from my heart into yours
Never heard about higher class card using more power. Unless you keep allot of apps on the sd there shouldn't be issues. The higher the class the shorter will be the response time and higher the read write speed.
As for video keeping in mind that for full HD 6Mbs is enough. Which means that with luck class 4 might be ok. Likely it won't.
I have good results with hd video class 4 on Bada phone, but my OB hiccups with class 6 ( that's still to be confirmed if it is software or hardware issue).
If price is not a issue get the highest possible 10 is about optimal for phone higher than that is overkill.
yeomond said:
There's a reason why most of the Windows Phone 7s uses an internal class 2 microsd card.
For writing many files onto an sdcard at the same time (lets say while using an app) it would be faster the lower the class.
But obviously a higher class would let you write a single file faster, but with a class 4 you could easily record HD video on your Optimus Black with no lag at all.
.
Click to expand...
Click to collapse
U wrote so many stupid things that I cannot respond em all, so I will respond one: the only reason why W7 phones use class 2 is that those cards are cheap as autumn leaves.
"with a class 4 you could easily record HD " compare the bitrate of full HD stream with recording performance of class 4 card !!!!!!!!!!!!
euphorcimoron - take in mind one straightforward experience which can obviuously can be seen when You start Your OB ( but some x%$#@* here are to blind to see that ): multimedia files are scanned each time You boot the phone. More files -more time, faster card- less time.
So: get the card as fast as possible: better video recording, apps installed on SD work faster, faster copying of multimedia files into Your phone by any connection ( USB,WiFi), faster booting and so on.
Is there a limit ad to what the OB can actually utilize? I didn't buy a 10 because the sales guy didn't think the phone would have the read write speeds to need that high of a class?
Sent from my LG-P970 using XDA App
This is interesting, I will probably buy a c10 SD card for my OB soon.
stellar_d said:
Is there a limit ad to what the OB can actually utilize? I didn't buy a 10 because the sales guy didn't think the phone would have the read write speeds to need that high of a class?
Sent from my LG-P970 using XDA App
Click to expand...
Click to collapse
one thing about this, the guy didn't want your money
just for info, i lurked many time in here and found many members asking these :
a. "i flashed CM ROM build # and i can't install my apps, but when i change the sd card, the problem is solved, help ?"
b. "what class ?"
a. "4"
--beep--
a. "i flashed this ROM yesterday and it can't read the files, but when i change the sd card, the problem is solved, help ?"
b. "what class ?"
a. "4/6"
--beep--
i have no problem like this till now with the 10
Haha, btw if you can afford buying class 10, go for it. CM uses ext4 partition afaik, requires class 6 as minimum to work flawlessly
Sent from my LG-P970 using Tapatalk
I use 16Gb class 4 and my videorecording feels like 15fps instead of 30fps. I don't know if it's a storage class issue or not because the same thing happens even if I use lower resolution. Probably a CM7 issue?
BoyBawang2 said:
I use 16Gb class 4 and my videorecording feels like 15fps instead of 30fps. I don't know if it's a storage class issue or not because the same thing happens even if I use lower resolution. Probably a CM7 issue?
Click to expand...
Click to collapse
Depends on the bitrate bro, class 4 theoritically have 4Mbps so if your video recording has high bitrate it will slowdown the performance.
Also afaik CM7 has a bug about HD recording.
Sent from my LG-P970 using Tapatalk
good to know. ill exchange this one
Sent from my LG-P970 using XDA App

Partitioning

Hi all, I have a couple of questions before I get my new sd-card.
1. I got my eyes on the SanDisk Ultra UHS-1 8gb class 10 sdcard with a write speed of 30mb/s(advertised). I was just wondering if there would be a noticeable speed difference (i.e. App loading time) if I partitioned that sdcard, as compared to my current class 4 Kingston sdcard.
2. Also, I've read from many forums that some devices don't see noticeable increase in speed from class 6 onwards... Is that true for our device too? (SGM)
3. Is ext4 partition better or ext3 partition better?
Sent from my GT-S5570 using xda app-developers app
Hi, any help? It's been here for a few days already and I really want to know some details before I get my new SDcard so that I won't be disappointed or regret anything.
tietganFTW said:
Hi all, I have a couple of questions before I get my new sd-card.
1. I got my eyes on the SanDisk Ultra UHS-1 8gb class 10 sdcard with a write speed of 30mb/s(advertised). I was just wondering if there would be a noticeable speed difference (i.e. App loading time) if I partitioned that sdcard, as compared to my current class 4 Kingston sdcard.
2. Also, I've read from many forums that some devices don't see noticeable increase in speed from class 6 onwards... Is that true for our device too? (SGM)
3. Is ext4 partition better or ext3 partition better?
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
1. Well u surely won't get the advertised mb/s, but it will be a reasonably fast speed, as speed depends on your cable too (for trasnfer). I'm not sure, but yes u will notice that apps load faster (im basing this on what michie said in the swapping section of the performance thread, so its probably the same for loading from external partition)
2. Yes probably little difference between a class 6, 8 and 10. Maybe because most devices can't read beyond a certain speed or even if they do, that threshold speed is enough and lies in the range of class 6 upwards.
3. I don't really know, but i would suggest ext 4 as i see it recommended in many app to sd apps. Someone could clarify this.
kirakun said:
1. Well u surely won't get the advertised mb/s, but it will be a reasonably fast speed, as speed depends on your cable too (for trasnfer). I'm not sure, but yes u will notice that apps load faster (im basing this on what michie said in the swapping section of the performance thread, so its probably the same for loading from external partition)
2. Yes probably little difference between a class 6, 8 and 10. Maybe because most devices can't read beyond a certain speed or even if they do, that threshold speed is enough and lies in the range of class 6 upwards.
3. I don't really know, but i would suggest ext 4 as i see it recommended in many app to sd apps. Someone could clarify this.
Click to expand...
Click to collapse
Alright, I don't really care about what michie said (no offence), i just want to know if it really works as michie said (personal experiences). I don't wanna buy a new sdcard, just to realise there's not much difference...
tietganFTW said:
Alright, I don't really care about what michie said (no offence), i just want to know if it really works as michie said (personal experiences). I don't wanna buy a new sdcard, just to realise there's not much difference...
Click to expand...
Click to collapse
I don't guarantee anything though Just hope it does the trick!
Try Sd tools free on playstore to test your sd speed write/read before partition
(I try Speed Write true normal like sd class : 10Mb/s (class 10)
and test again after partition.
(I Test it & The Result Sd speed write reduce to 8Mb/s after partition but sd read Increase, test on my sd class 10)
If you want to boost more speed you can try free app called sd booster on playstore.
Good app to gain more speed.
Give a try...
Sent from my GT-S5570 using xda app-developers app
Jeffrianz said:
Try Sd tools free on playstore to test your sd speed write/read before partition
(I try Speed Write true normal like sd class : 10Mb/s (class 10)
and test again after partition.
(I Test it & The Result Sd speed write reduce to 8Mb/s after partition but sd read Increase, test on my sd class 10)
Click to expand...
Click to collapse
So buying a class10 sdcard does help increase the apploading speed in a2sd?
Maybe yes maybe no? some sd different so you must try in my case. yes the speed reduce.
From 10 to 8Mb/s
but Read Speed Increase from 23Mb/s to 28Mb/s
if I use sd booster and set it on 6Mb. my sd write reduce to 6.8 mb but Read speed increase to 32,1 Mb/s
and I got more speed read to gain more smooth performance to play game and more.
also speed up booting on your phone.
but decrease performace make a file like recording and take a photo.
but speed app is awesome.
Sent from my GT-S5570 using xda app-developers app
Jeffrianz said:
Maybe yes maybe no? some sd different so you must try in my case. yes the speed reduce.
From 10 to 8Mb/s
but Read Speed Increase from 23Mb/s to 28Mb/s
if I use sd booster and set it on 6Mb. my sd write reduce to 6.8 mb but Read speed increase to 32,1 Mb/s
and I got more speed read to gain more smooth performance to play game and more.
also speed up booting on your phone.
but decrease performace make a file like recording and take a photo.
but speed app is awesome.
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
You didn't get my point. I'm talking about app-reading speeds in app2sd in an ext4 partition. As in app-loading time. Would it decrease?
Yes off course Increase If you boost your memory... more speed you have but low write.
I'm use ext4 partition too as my Internal memory with Internal HACK memory and OC.
Take a look.
Iam using sd class 10 transcend 16GB.
and use ext partition as default memory and now all of my app in ext4.
app speed & booting is great after I use sd class 10 then my old sd card sandisk 4GB class 4.
Sent from my GT-S5570 using xda app-developers app
Jeffrianz said:
Yes off course Increase If you boost your memory... more speed you have but low write.
I'm use ext4 partition too as my Internal memory with Internal HACK memory and OC.
Take a look.
Iam using sd class 10 transcend 16GB.
and use ext partition as default memory and now all of my app in ext4.
app speed & booting is great after I use sd class 10 then my old sd card sandisk 4GB class 4.
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
So the app-loading speed does increase huh... Alrighty then I'll consider getting a new one. Thanks much.

[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

Categories

Resources