Anyway to make the Swap file in the internal memory?

Pinesal

Senior Member
Jan 28, 2009
515
19
0
People saying the internal memory is faster and that swapper can lessen the life of your SD card. Is it possible to create the swap file on the internal memory?


I'd be willing to try it out if someone can tell me what path to use.
 

lbcoder

Senior Member
Jan 21, 2009
2,622
99
0
See, nice thing about wearing out your sdcard is that when its worn out, you simply pop it out and replace it with a new one. If you wear out the internal memory, then you take the whole phone and chuck it in the trash can. I personally would rather to wear out the sdcard than the internal memory.

What would be real nice is an sdcard with a chunk of RAM on it that can be mapped as a swap. Its kind of surprising that nobody makes such a device yet, I'm sure that a 16G flash + 512M RAM would be a real hot seller. It would revolutionize mobile devices.
 

jady

Member
Jan 18, 2007
34
0
0
Ummmm correct me if I am wrong but the swap file is to extend the memory of the phone. If you are using part of the phones memory as a swap file it is kind of redundant.
 

BolecDST

Senior Member
May 4, 2009
293
38
0
Dublin
Actually the life of normal sdcard is quite long (1000000 read/write cycles? more?) and internal flash memory even longer, so why are you scarying him that it'll destroy his phone?
 

lbcoder

Senior Member
Jan 21, 2009
2,622
99
0
The 1 million cycle number that you suggested is really not that long, especially when you're talking about swap/memory usage.

Its not that high though... more like 10 thousand for a cheap chip, 100 thousand for a good one.

Using internal memory for swap WILL destroy it... QUICKLY. This isn't a matter of trying to scare someone, its a matter of fact -- this is simply something that you REALLY do NOT want to be doing.


@jady: You should hit wikipedia and do some reading about the differences between RAM and EEPROM, and also look up the purpose of SWAP.