IMPORTANT~! swap location - G1 General

I created a swap partition in /data/app-private/
what are the pros and cons of this setup? its running fine but I want to know if there is a difference between sdcard swap or internal memory swap.

Cresho said:
I created a swap partition in /data/app-private/
what are the pros and cons of this setup? its running fine but I want to know if there is a difference between sdcard swap or internal memory swap.
Click to expand...
Click to collapse
Flash memory has a finite life and repeated writes will wear it out. You can replace an sdcard easily enough when it degrades, but the same can't be said of your internal nand. I'd move it if I were you.

this is exactly what I wanted to confirm. You nailed my exact thoughts. I was, for some reason, thinking internal memory worked more like ram (I know I know!!) but I just wanted to make sure.

Related

Partitioning the SD

Can someone please educate me on partitioning the sd? Based on what I've read and my discussions with others, ext swap is for cache, fat32 is for apps, and the remainder is for usb storage???
I have a 8 GB class 6 (supposed to be faster) Samsung sd partioned at ext swap - 0 and fat 32 - 500.
If I'm right about ext swap (please correct me if I'm wrong), I could make my phone faster if I allocated some sd space to it??? One forum I read said that the phone is usually faster but it could have been referring to a different phone and a slower card.
If I did decide to change my partition what affects would it have (wipe sd, reinstall custom rom, etc)?
Thanks for any feedback!
Partitioning the SD card allows you to utilize a2sd/app2sd and/or swap space on your SD card - if the ROM in question supports it.
Note that the ext and swap partitions are separate things, not one and the same thing.
swap is for swap - set it to 0 (you will never need it)
ext{2|3} is for the A2SD/APPS2SD space for storing applications (and dalvik-cache for some ROMs) - 512 MB will be more than you ever need.
the rest is the VFAT partition - the MS-DOS partition you see from your Windoze box when you mount it from the PC.
Note also that partitioning your card destroys all data on it - make a backup if you decide to partition.
Neither A2SD nor having swap space will speed your phone up. (Adding swap - for ROMs which support it - will actually slow your phone down, except certain pathological cases, unless you become an expert on the process trimmer configuration and experiment with swappiness controls. The reason this happens is because the as-configured process trimmer kicks in too late if you merely add swap and do not reconfigure the trimmer).
My recommendation? Keep your life simple and avoid both A2SD and especially use of a swap area on the SD card, until such a time as you "need it". You might find a practical need for A2SD if you are going to be trying out a whole bunch of new ROMs as they come out, or you are an app hoarder and run out of space in /data.
Probably you will never need to use a swap partition on your card.
Again, in neither case will you notice a perceptible gain in "performance" of the phone.
bftb0
PS Josh. Please stop putting usage questions in the Development forum. Please. Put them in the General forum.
Thanks for clearing that up......and i will stop posting in development.

(Q) wich lagfix we can use?

now i m confused.. wich lagfix is better? in quadrant all the fix do then the 2000...
Your choice. Do you want to repartition the sd card and fiddle in cmd, or just double click a file?
The problem with the first fix is that you cant replace the card any time you want. The problem with the second fix is that if you dont have 1gb free on the phone, it wont work
Second one looks like a much better deal.
If you don't have 500mb free on your internal SC card (correct me if I'm wrong, but I don't think it's 1gb), you can always move all your personal stuff in the external SD card.
Unless of course you have filled it up with apps only (with no app2sd with Eclair), but how you would have managed to fill almost 2gb of apps is beyond me. That'd be more than 2000 apps.
What I don't know though is the long term effects. I have no idea if the fixes that are made are bad for the internal SD card. I guess you have to trust Ryan.
Davith said:
Second one looks like a much better deal.
If you don't have 500mb free on your internal SC card (correct me if I'm wrong, but I don't think it's 1gb), you can always move all your personal stuff in the external SD card.
Unless of course you have filled it up with apps only (with no app2sd with Eclair), but how you would have managed to fill almost 2gb of apps is beyond me. That'd be more than 2000 apps.
What I don't know though is the long term effects. I have no idea if the fixes that are made are bad for the internal SD card. I guess you have to trust Ryan.
Click to expand...
Click to collapse
what do you mean about second choise lagfix 2.0??
2.0 caused my phone to be unstable so I re-flashed and went back to the first (1GB) fix.
Are you considering mimocam's fix (using the external card) or just between Ryan and Chanfire's fixes?
rock187 said:
what do you mean about second choise lagfix 2.0??
Click to expand...
Click to collapse
Yeah, I was talking about Ryan's Lagfix 2.3. (it's not 2.0 anymore).
I don't use either. I recommend the original fix that moves data to dbdata. I have over 70 apps installed and still plenty of space left. Using autokiller to keep free memory at 70 meg I have no lag. Currently on jm5.
Sent from my GT-I9000 using XDA App
I first did it by command line with the 1Gb partition. That ran well. I then updated to Ryans 2.2 which I have been using all day. It also runs really well. Lag pretty much gone.
If i apply the one-click-LagFix it makes an virtual ext2 partition to my internal sd-card. So if i choose sometime later to undo the fix how can i delete the ext2 partition in my internal sd-card? Will it be necessary to use gparted or similar?
Bajo76 said:
If i apply the one-click-LagFix it makes an virtual ext2 partition to my internal sd-card. So if i choose sometime later to undo the fix how can i delete the ext2 partition in my internal sd-card? Will it be necessary to use gparted or similar?
Click to expand...
Click to collapse
Just run the included unlagfixme.bat file. It's automated. But make sure you are running the unlagfixme for the correct version (2-2 or 2-3)
It works fine. I ran unlagfixme and flashed back to a stock ROM, tested with Quadrant and got the 900 something score again, so it does remove the lagfix.
I will note, however, that it's a very good idea to run the unlagfixme.bat before flashing to a different ROM.
kgk888 said:
Just run the included unlagfixme.bat file. It's automated. But make sure you are running the unlagfixme for the correct version (2-2 or 2-3)
It works fine. I ran unlagfixme and flashed back to a stock ROM, tested with Quadrant and got the 900 something score again, so it does remove the lagfix.
I will note, however, that it's a very good idea to run the unlagfixme.bat before flashing to a different ROM.
Click to expand...
Click to collapse
If you are flashing to any rom using odin3, there is no need to do the unlagfix at all, because the flashing would have overwritten any changes that you have made to the file system.
I often flashed my device alredy with repartition but it didnt touched my internal sd, cause my photos which are stored in the internal sd were still there after flashing. So will a firmware-flash through odin really delete the virtual ext2 partition?
Bajo76 said:
If i apply the one-click-LagFix it makes an virtual ext2 partition to my internal sd-card. So if i choose sometime later to undo the fix how can i delete the ext2 partition in my internal sd-card? Will it be necessary to use gparted or similar?
Click to expand...
Click to collapse
The LagFix does not partition your internal card. A 1gb file is created upon which the ext2 filesystem is made. Then this file is mounted as a loopback device. So the UnLagFix basically moves the data back to the native internal storage directories and deletes the ext2 file, so no need to use gparted

[Q] about partitioning your SD card?

okay, so i just flashed Kyrillos' ROM (7.0, then upgraded to 7.1)
now i want to partition my SD card to create SWAP, and also to create a partition to add extra space to the internal memory (what is it's name, again?)
i don't know too much about what type of partition to do, so can you guide me through the process or give me a link where i can read further?
also, what are the recommended partition sizes?
PS : i have a 4GB, class 4 SD card. and i just downloaded minitool.
Mohit12 said:
okay, so i just flashed Kyrillos' ROM (7.0, then upgraded to 7.1)
now i want to partition my SD card to create SWAP, and also to create a partition to add extra space to the internal memory (what is it's name, again?)
i don't know too much about what type of partition to do, so can you guide me through the process or give me a link where i can read further?
also, what are the recommended partition sizes?
PS : i have a 4GB, class 4 SD card. and i just downloaded minitool.
Click to expand...
Click to collapse
you can flash g3mod kernel and do partition in uer sd card.mine is 8 GB Card, Class 4...I have 1024 as Ext Size and 256 as SWAP. so the choice is uers.
Mohit12 said:
okay, so i just flashed Kyrillos' ROM (7.0, then upgraded to 7.1)
now i want to partition my SD card to create SWAP, and also to create a partition to add extra space to the internal memory (what is it's name, again?)
i don't know too much about what type of partition to do, so can you guide me through the process or give me a link where i can read further?
also, what are the recommended partition sizes?
PS : i have a 4GB, class 4 SD card. and i just downloaded minitool.
Click to expand...
Click to collapse
Well, the answer to that is already in the forum
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Hope this helps
darksyde18 said:
Well, the answer to that is already in the forum
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Hope this helps
Click to expand...
Click to collapse
I've been looking for that too , Thanks
okay, i didn't know i'd need a card reader :/
i don't have it. any way to partition it using the CWM?
and what sizes do you recommend? i was thinking maybe 128 MB SWAP and 512 as the internal memory size.
and do i have to flash the g3mod kernel? i'm currently running 2.6.32.9. this came with Kyrillos' 7.0.
wait, i'm getting confused now. when i flash Kryillos' ROM 7.0, does my kernel also get changed? or am i running the stock kernel?
and the CWM i'm talking about is just.. recovery. the one that i access using vol up + vol down + home key + power key.
that also has partition SD card option under advanced > partition SD card.
will this do or do i have to flash g3mod kernel?
Once you flash Kryillos' ROM you are no longer running the stock kernel
CWM is ClockWorkMod Recovery and it comes with the ROM and so it's different (Google it)
And about making a SWAP, well , you might wanna read this -
"1. An Android swap partition must live on your SD card. SD cards are very, very slow memory. They are 100 to 1000x slower than a SIM. They are 10 to 100x slower than a hard drive. They are marginally faster than a network connection. When an application is “swapped out” it is copied into this very slow memory, and copied back to physical memory when it needs to run. On the other hand, when an app needs to be restarted after being terminated by Android, it is loaded not from the SD card but from the device’s (relatively) fast physical memory.
2. When an Android app is terminated because of low memory, it decides what information must be persisted to represent it’s state. This can be very, very small. For example, it might be an integer index into a database. When an app is moved into virtual memory, the OS has no idea what’s important. It just moves the application in whole. It can’t be smart about it.
3. Having swap actually prevents the native Android memory management scheme from activating. The system sees memory and doesn’t distinguish between physical and virtual. It will therefore prefer swap over the native Android memory management scheme, and won’t activate the native scheme until swap is full.
4. Having swap requires some overhead of system resources."
darksyde18 said:
Once you flash Kryillos' ROM you are no longer running the stock kernel
CWM is ClockWorkMod Recovery and it comes with the ROM and so it's different (Google it)
And about making a SWAP, well , you might wanna read this -
"1. An Android swap partition must live on your SD card. SD cards are very, very slow memory. They are 100 to 1000x slower than a SIM. They are 10 to 100x slower than a hard drive. They are marginally faster than a network connection. When an application is “swapped out” it is copied into this very slow memory, and copied back to physical memory when it needs to run. On the other hand, when an app needs to be restarted after being terminated by Android, it is loaded not from the SD card but from the device’s (relatively) fast physical memory.
2. When an Android app is terminated because of low memory, it decides what information must be persisted to represent it’s state. This can be very, very small. For example, it might be an integer index into a database. When an app is moved into virtual memory, the OS has no idea what’s important. It just moves the application in whole. It can’t be smart about it.
3. Having swap actually prevents the native Android memory management scheme from activating. The system sees memory and doesn’t distinguish between physical and virtual. It will therefore prefer swap over the native Android memory management scheme, and won’t activate the native scheme until swap is full.
4. Having swap requires some overhead of system resources."
Click to expand...
Click to collapse
Nice and informative.

SwiftDroid ASIS and Swap?

Hi there,
I never dealt with creating swap partition. I'm using latest SwiftDroid now and like to know if it uses swap automatically. If not, would it be advisable to create one? How do I have to do this? Which size should it have and does SwoftDroid ASIS recognise it rigth?
I googled a lot and search in the forum, but didn't find helpful information.
Thanks
G00fY2 said:
Hi there,
I never dealt with creating swap partition. I'm using latest SwiftDroid now and like to know if it uses swap automatically. If not, would it be advisable to create one? How do I have to do this? Which size should it have and does SwoftDroid ASIS recognise it rigth?
I googled a lot and search in the forum, but didn't find helpful information.
Thanks
Click to expand...
Click to collapse
using swap isn't the best idea as it kills ur sd card faster.
also a lot of people use about 200mb swap partition to about 300mb swap
partition..
u could get the app from the market ( swapper2 for root users )
or read this thread!!
http://forum.xda-developers.com/showthread.php?t=1317362
Mur4ik recommends swap 256MB for previous versions of SwiftDroid, so I think that is also applies to ASIS. ASIS can use swap automatically (no need to use swapper app) if you create swap partition as third on sdcard (second should be ext - in newest recovery you can create 2MB ext3 partition).
kretos said:
ASIS can use swap automatically (no need to use swapper app) if you create swap partition as third on sdcard (second should be ext - in newest recovery you can create 2MB ext3 partition).
Click to expand...
Click to collapse
Okay, now slowly. I flashed my phone with Mur4ik's KDZ Method before installed SwiftDroid. So there should be 150MB for system,64MB for cache and 234MB free internal storage. Are the 64MB memory for swap? So that SwiftDroid always uses swap but with internal memory?
Now I don't understand what you say about second and third partition and what exactly Mur4ik suggest for his ROM. They are both an SD, aren't they? I use a 16GB class 4 SD card. So what should I do to get best performance with ASIS?
androidboss7 said:
using swap isn't the best idea as it kills ur sd card faster.
also a lot of people use about 200mb swap partition to about 300mb swap
partition..
u could get the app from the market ( swapper2 for root users )
or read this thread!!
http://forum.xda-developers.com/showthread.php?t=1317362
Click to expand...
Click to collapse
thanks for recommending my thread yes goofy use the link to enable swap
Edit: oops i found out i deleted the pictures at the thread just restored them hope it makes it easier
G00fY2 said:
Okay, now slowly. I flashed my phone with Mur4ik's KDZ Method before installed SwiftDroid. So there should be 150MB for system,64MB for cache and 234MB free internal storage. Are the 64MB memory for swap? So that SwiftDroid always uses swap but with internal memory?
Now I don't understand what you say about second and third partition and what exactly Mur4ik suggest for his ROM. They are both an SD, aren't they? I use a 16GB class 4 SD card. So what should I do to get best performance with ASIS?
Click to expand...
Click to collapse
150MB for system,64MB for cache and 234MB free internal storage <- it's internal storage of your phone, system is just system, cache is for files downloaded from internet, internal storage is for installing your applications.
On sdcard you should have primary partition (fat32), ext3 and swap (linux swap type) partition. The third will be automatically used. See thread mentioned above or copy everything from your sdcard to you computer, reboot phone into recovery and creat ext partition and swap partition (in that order) through recovery. Then reboot phone and copy data back from computer to phone's sdcard.
Ok, i managed to create 256MB swap partition.
So what do you say is the best swappiness value? I read that 60 seems to be to high?
PS: How can I see if swap works?
I leave mine at 60 to see If it works type free in a terminal on the phone
Ok it works. Terminal shows me that the phone uses swap. But I also recognised it by playing some games, which worked laggy before and now run very smooth.
About swappiness: I read that 30 seems to be the best for our phone?
ASIS set swappiness to higher value (I believe 60) - I've changed it to 30 in previous versions but now I just left it as it it. I don't see any difference.
Yay! no more third person software :3, native swap.
Thanks :3

Increase HD2 internal memory

hi guys new user of HTC HD2 here (previous motorola defy user)
so I got this phone yesterday thru swapping, and this phone is awesome, but I was rather disappointed with the internal memory. Mines got 186mb of application space so I always get memory full prompts. I know there is a mod to increase the size.
I flashed paranoid android this morning and boy is it good looking
I just want to increase my internal memory and Id be happy with it
what's the maximum I can a lot to it?
chachoi said:
hi guys new user of HTC HD2 here (previous motorola defy user)
so I got this phone yesterday thru swapping, and this phone is awesome, but I was rather disappointed with the internal memory. Mines got 186mb of application space so I always get memory full prompts. I know there is a mod to increase the size.
I flashed paranoid android this morning and boy is it good looking
I just want to increase my internal memory and Id be happy with it
what's the maximum I can a lot to it?
Click to expand...
Click to collapse
OK first things first,
Are you familiar with the 'stuff' of the HD2? MAGLDR bootloader, ClockworkMod Recovery(CWM)? sd-ext partitions?
well I'm trying to learn this terms but this is gonna take a while I think,
the Previous owner has installed magdlr 1.13 and clockworkmod and I have flashed paranoid android rom this morning. So I do have a recovery
sd-ext partion not so much
**okay okay, you will need to do a lot of research about your device and using it to its full potential; too much that it can't be explained within one post **
but here is a method I found in xda of performing a sd-ext partition within cwm:
> GO to advance and then partition SD card
> Remember this will wipe the sd card so back everything up if need be
> Choose how much space you want, 1024mb is recommended, on the partition then then choose 0MB for swap
>PLEASE NOTE PARTITIONING WILL WIPE THE SD CARD!
>and hey presto your done
> from here you can install link2sd and your set to go. -note, you will need to read about link2sd before use. just search it
There are many benifits of this using EXT-Partition such as you apps will automatically transfer to your partition meaning you will free space on your internal storage!
apologies if there's any misinformation there, quite tired :$
Sent from space..
ah I see, so basically the sd card will be detected as and internal card and I won't face memory full errors whenever uninstalling?
but I can just use link2sd app to transfer apps to sd card manually right?
I was wondering why I only have 186mb of internal memory wherein in GSM arena it says at least 512mb.
what I want to do is a phone modification to increase it, just in case the sd card was corrupted, I still have my apps on the phone memory
thanks for the reply though, if you can add something feel free :victory:
chachoi said:
ah I see, so basically the sd card will be detected as and internal card and I won't face memory full errors whenever uninstalling?
but I can just use link2sd app to transfer apps to sd card manually right?
I was wondering why I only have 186mb of internal memory wherein in GSM arena it says at least 512mb.
what I want to do is a phone modification to increase it, just in case the sd card was corrupted, I still have my apps on the phone memory
thanks for the reply though, if you can add something feel free :victory:
Click to expand...
Click to collapse
It says 186Mb because when you flash CWM, you also partition your NAND to run Android. Essentially, the storage you get is 512Mb-CWM partition size, although normally it's lower as there are probably things other than this installed to the NAND.
Thank you
Nigeldg said:
It says 186Mb because when you flash CWM, you also partition your NAND to run Android. Essentially, the storage you get is 512Mb-CWM partition size, although normally it's lower as there are probably things other than this installed to the NAND.
Click to expand...
Click to collapse
Hi so are you saying I can increase my phone memory by re-partition? how can you tell me please! id be happy by 300mb at least
chachoi said:
Hi so are you saying I can increase my phone memory by re-partition? how can you tell me please! id be happy by 300mb at least
Click to expand...
Click to collapse
Well it depends on the partition size you're currently using. If it's already the minimum for your ROM then no you can't increase the storage by repartitioning the NAND, but if it's any more than the minimum then you can increase this, by reflashing recovery with the correct size. Make a full backup in CWM first though.
so I reflashed 150MB recovery partition and flashed AOKP build by xylograph
now I have 217MB of internal memory
what should I flash so I can have more space?
the less is your recovery partition - more internal memory you get. Minimal recovery partition can be about 100 mb for some light roms I belive. So you can get 50 more mb than you hav now.
You've mentioned 300mb earlier, even if you get your desired 300mb it's gonna get filled up very soon.
I would advise you as was mentioned above to borrow 1gb from your sd card for sd-ext partition. Most of the roms support from the box (without intsalling any additional apps or scripts) sd-ext partition and install apps by default on that partiotion, Paranoid Android does, for instance, actually 80% of the roms do as well...
I don't know if it means anything, but you could look into a US HD2. Its got 1024 mb internal memory! That's double!
ok maybe ill experiment with this sd-ext partition
never had to deal with tgis when I was on defy
try this: http://forum.xda-developers.com/showthread.php?t=1661892
I installed AOKP in NAND & had only a few 100mb's available, I just used Link2SD & moved most apps/ games to SD. SD has no ext. part. yet. will do it latter when i get a 32gig card, now just testing a 4gig SD

Categories

Resources