Swap with sdcard? Need Help - XPERIA X8 Q&A, Help & Troubleshooting

I have a sony ericsson w8....I have a unlocked bootloader.....I just want a noob guide on how to create a partition....and use swap( to eliminate the lag on 4.1)..I did buy a class 10 sdcard recently.....I just am afraid that I may end up messing with my sdcard....help is much appreciated.... :fingers-crossed:

Swapping works without partition too so why waste time partitioning & stuff?
work hard, play hard

Gogeta said:
Swapping works without partition too so why waste time partitioning & stuff?
work hard, play hard
Click to expand...
Click to collapse
The thing is I have no idea how swap works and what partition is? I just want use swap in a safe way without damaging my sdcard...i really want a smooth JB(4.1) experience...
I know there are many threads and posts about how to swap...but still i am a noob and bit afraid to try it....This is my only phone.

killerassassin said:
The thing is I have no idea how swap works and what partition is? I just want use swap in a safe way without damaging my sdcard...i really want a smooth JB(4.1) experience...
I know there are many threads and posts about how to swap...but still i am a noob and bit afraid to try it....This is my only phone.
Click to expand...
Click to collapse
Swapping can never kill your phone..
work hard, play hard

I use jb for almost 6 months with swap partition,. My sdcard is still breathing happily,.. L0L
Sent from my E15i using xda premium

syahazu said:
I use jb for almost 6 months with swap partition,. My sdcard is still breathing happily,.. L0L
Sent from my E15i using xda premium
Click to expand...
Click to collapse
Yeah. I never heard about a dead SD card due to swapping
work hard, play hard

If u hav a class 10 sdcard, just dont worry about it,. It'll also improve swapping with performance
Sent from my E15i using xda premium

Should i use swap from settings/performance/swap because I have read about another method where u install a ini.td or something...run a script....Which is the better way?

killerassassin said:
Should i use swap from settings/performance/swap because I have read about another method where u install a ini.td or something...run a script....Which is the better way?
Click to expand...
Click to collapse
Both aren't good because the process is slower.. so, u need to partition your sdcard via CWMrecovery,.. there is a thread about it... or i can tell you..
1)Back-up all files in Sdcard and put in PC
2)Enter CWMrecovery
3)find partition sdcard
4)choose desired ext4 partition value
5)next choose desired swap value(if u run JB platform i recommend to apply 256MB swap)
6)choose ok, then it'll partitioned your sdcard with full formatting, thAts why we need to backup first
7)Reboot the device, open terminal emulator app and type free,.. if it shows memory in bytes on swap.. then it works..
Partitioned Swap doesnt use any script to activate it on any new kernel yet the Legend of nAa kernel.. try it
Sent from my E15i using xda premium

Related

Need help, hero rom very laggy!!!!

I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Demoyo23 said:
I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Click to expand...
Click to collapse
hero rom is much bigger then the normal G1 rom that is why you are seeing the lag. What is the size of your linux swap and what is your swappiness set to?
Demoyo23 said:
I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Click to expand...
Click to collapse
sorry to say this, but if your asking if you need linux-swap you obviously didn't read the instructions
ccyrowski said:
sorry to say this, but if your asking if you need linux-swap you obviously didn't read the instructions
Click to expand...
Click to collapse
devs and testers need a new forum imo...
springah said:
devs and testers need a new forum imo...
Click to expand...
Click to collapse
no we dont we just need to remove all noobs!
Demoyo23 said:
I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Click to expand...
Click to collapse
well the little room after flash is probably due to the sdcard NOT setup right... I had that build before and the before and so on and the space I had every time was 84mb free after boot and YES the appstosd on this build is automatic. The sdcard should have the fat32 partition first and then the ext2 partition 2nd. To setup the partitions I would NOT use ubuntu .. I ran into mounting issues with gparted .. I have had NO issues with the sdsplit found here
http://forum.xda-developers.com/showpost.php?p=3582509&postcount=52
set the 2 partitions first and then setup the linux-swap partition using ubuntu .. I had mine inbetween the fat32 and the ext2 .. and YES you NEED the swap partition in the 2.7.4 build as it no longer uses swapper.
Drizzy Drake Rogers said:
no we dont we just need to remove all noobs!
Click to expand...
Click to collapse
How about we take the "New Thread" privileges away from everyone except for developers or new developers who request the mods give them privilege to open a new thread?
Drizzy Drake Rogers said:
no we dont we just need to remove all noobs!
Click to expand...
Click to collapse
Goodbye to 80% of the members then lol. just keeding. I think people just need to learn how to read the first post of each thread they read. I recommend setting min/max cpu freq to 528, and having linux-swap of 32MB at 20 swappiness. @ demoyo, make sure you have your partitions at the least in this order:
FAT32/EXT3
or if you want a linux-swap:
FAT32/EXT3 (1.5GB or less) /Linux-Swap (32 to 64MB)
The 20MB free internal memory is signaling that your apps to sd isn't working properly, which probably mean you didn't partition your sdcard correctly.
Drizzy Drake Rogers said:
no we dont we just need to remove all noobs!
Click to expand...
Click to collapse
I should be a mod, I'd close and move this dumb stuff like crazy
thankx guys i am a noob
i really appreciate all the help guys, and yes i believe i didnt do the partion right all i want to do is help the rom not be so laggy, im usung win xp to do all this, but one more thing, my rom doesnt have the swappiness app built in like ive seen in others peoples vids how do i get it
Demoyo23 said:
i really appreciate all the help guys, and yes i believe i didnt do the partion right all i want to do is help the rom not be so laggy, im usung win xp to do all this, but one more thing, my rom doesnt have the swappiness app built in like ive seen in others peoples vids how do i get it
Click to expand...
Click to collapse
You don't use the Swapper app anymore. As long as you have a linux-swap partition done correctly it is automatic. You can however change the swappiness settings in /system/bin/a2sd (it is the number in echo 30 > ...)
ok so im a noob, even with the dummie walkthroughs and all, i still quite dont understand swapping, so i have a 1gb memory card already in the phone formated to fat32, i have hero rom jachero 2.7.4, and u said linux is already in it and i dont need swap, can u pleasae tell me how to do swapper with a tutorial for dummies for bigger dummies lmao, i need help dont understand lol i would love you people forever and stop buggin u
Hang in there I am the same way learning all the new ropes and I myself dont understand the swap settings eaither
Demoyo23 said:
ok so im a noob, even with the dummie walkthroughs and all, i still quite dont understand swapping, so i have a 1gb memory card already in the phone formated to fat32, i have hero rom jachero 2.7.4, and u said linux is already in it and i dont need swap, can u pleasae tell me how to do swapper with a tutorial for dummies for bigger dummies lmao, i need help dont understand lol i would love you people forever and stop buggin u
Click to expand...
Click to collapse
Ideally you need an ext and linux-swap partitions, but if you don't want to for whatever reason you can just install the "Swapper" app from the market. A linux-swap partition is much better but this is the next best thing.
AdrianK said:
Ideally you need an ext and linux-swap partitions, but if you don't want to for whatever reason you can just install the "Swapper" app from the market. A linux-swap partition is much better but this is the next best thing.
Click to expand...
Click to collapse
Well said. ANother note is that if you are using the stock 1gb card then you will not notice much speed improvement no matter what you do because of having such a slow SD card. I would not recommend and thing less than a class 4 (Class 6 is the fastest).
If you plan on staying with the stock card you should probably look into another ROM.

[Q] Link2sd on Optimus Black

Well, for a long time i tried to make it work but without any success...
With the latest update it works but all applications moved to the second partition disappear after restarting the device and the app give me an error about mounting exactly this second partition...
Any hint about it?
Nobody?
Sent from my LG-P970 using Tapatalk
Initially when I had purchased my device I'd also tried but it didn't work for me as well.
But now since we have got 1gb internal I don't bother at all..
I feel the phone a lot laggy with 600mb+ of free space...
This is why i want it on our OB.
Luhccas-X10 said:
I feel the phone a lot laggy with 600mb+ of free space...
This is why i want it on our OB.
Click to expand...
Click to collapse
Is this similar to App2SD?
Ah, I see the difference now..
I tried it with CM7. With 2nd partition to ext2. Read that it's much faster without the ext4 lulz. With another partition as swap file. Apps seems to open faster after linking. My market opens in an instant. It broke at first but reinstalling was not a problem.. Even this xda app loads faster.. so far so good.
Are you on stock rom if I may ask?
Yes,i'm on V10e...
I haven't tried using a swap partition,work for you?
And your apps,stay there after a reboot?
Man,i have a class 10 16gb sd card...
I believe that the phone will be a lot faster using this trick.
One question,have you tried with an EXT3 partition?

[Q] Number application limit ?

Is there any limit to the number of application that can be installed to this device?
I'm using app2sd Amarullz script. I've tried Darktremor and also s2e.
But after I installed a lot of applications (only takes about 200MB of my ext partition), I can't install anything more. Everytime I tried, it always get reboot while installing.
but after I remove some apps, I can install it.
i had like 304 apps installed...but no reboot when tried to add new ones...in fact the only thing that happened to me was extreme lags
what a2sd u are using?
your size of ext partition?
sorry I kinda curious what happened to me...
i have 300+ app, and doesn't have such problem.
i'm using ungaze, never try amarulz.
what ROM are u using?
sent from Nokia 3310
chepoz said:
i have 300+ app, and doesn't have such problem.
i'm using ungaze, never try amarulz.
what ROM are u using?
sent from Nokia 3310
Click to expand...
Click to collapse
I'm using CM7 RC4.
I was using ungaze too. and that things also happened.
I'm using ext4 partition, 1.28 GB (is it too much?)
i dunno why.
maybe you should re flash the ROM.
just suggestion....
sent from Nokia 3310
lonestrider said:
Is there any limit to the number of application that can be installed to this device?
I'm using app2sd Amarullz script. I've tried Darktremor and also s2e.
But after I installed a lot of applications (only takes about 200MB of my ext partition), I can't install anything more. Everytime I tried, it always get reboot while installing.
but after I remove some apps, I can install it.
Click to expand...
Click to collapse
maybe your SD card 2nd partition got full
dhlalit11 said:
maybe your SD card 2nd partition got full
Click to expand...
Click to collapse
If you mean the ext partition, it isn't. I have 1.28GB ext partition and I've just used around 200MB.
is it because I also use swap?
lonestrider said:
Is there any limit to the number of application that can be installed to this device?
I'm using app2sd Amarullz script. I've tried Darktremor and also s2e.
But after I installed a lot of applications (only takes about 200MB of my ext partition), I can't install anything more. Everytime I tried, it always get reboot while installing.
but after I remove some apps, I can install it.
Click to expand...
Click to collapse
have not tried amarullz, but ur prob is sd-ext is mounted as read only and not read write.(check using rootexplorer or by any other means)
but u say after u uninstall some u can install again? i dont know abt that.
roofrider said:
have not tried amarullz, but ur prob is sd-ext is mounted as read only and not read write.(check using rootexplorer or by any other means)
but u say after u uninstall some u can install again? i dont know abt that.
Click to expand...
Click to collapse
yes, after I uninstall some, I can install some. That's why i think the problem is application number or too much partition size that the device can't handle?
I've make a smaller partition of ext4. now it's about 800MB.
and 300MB swap.
why u change u'r partition?
i have 1,1 GB ext4 and only 100MB swap.
sent from Nokia 3310
chepoz said:
why u change u'r partition?
i have 1,1 GB ext4 and only 100MB swap.
sent from Nokia 3310
Click to expand...
Click to collapse
because I don't know what else to do. --"
lonestrider said:
yes, after I uninstall some, I can install some. That's why i think the problem is application number or too much partition size that the device can't handle?
I've make a smaller partition of ext4. now it's about 800MB.
and 300MB swap.
Click to expand...
Click to collapse
lol 64mb swap will do.
still tell me if ur sd-ext is mounted as r/w or r/o
there is no limit for the apps that u keep but the thing is u should have enough phone memory free so that your phone doesn't lag and runs smooth
lonestrider said:
because I don't know what else to do. --"
Click to expand...
Click to collapse
--"
try to format your sd card
sent from Nokia 3310
roofrider said:
lol 64mb swap will do.
still tell me if ur sd-ext is mounted as r/w or r/o
Click to expand...
Click to collapse
I've opened Root Explorer and open /sd-ext. It's r/w.
that's should be right that, isn't it?
I have more than 250 apps, and i'm having problems - launcher forced close.
Problems disappear if i remove - or quarantine/freeze - apps.
Seeem to me that it's worst with apps that scan for apps list - titanium backup, or others apps manager.
I do not use any a2sd progs - just the native 'move to sd' feature, with the hack to bypass original settings, used to mov e in SD freezed (unused) apps.
Another - separate - issue is memory occupation...
Seem to me that updating apps do not remove the older apps - this is surely true with ROM apps - so i get a lot of memory wasted.
Another - separate - issue is RAM, or run-time memory... Android should manage it on its own - but still i'm not so confident that errors do not occurs with heavy load.
I thinj maybe the prob is your sdcard. Try purchase highend sdcard like classt10
Sent from my GT-S5570 using xda premium
fueart said:
I thinj maybe the prob is your sdcard. Try purchase highend sdcard like classt10
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
I'm using Transcend Class 10. It's 8 GB.
And it's not even a month old...
i have same problem with you in spite of i can't install apps, i also can't uninstall apps now im going to re flash the RC4 and Darktremor

[Q] Increase ram of samsung galaxy ace

I have a samsung galaxy ace ...i wanted to know is it possible to increase stock ram I.e. 278mb to 512 mb / 1gb like we do in computers & does it create any problems in cell later I mean will it function properly and where can I get Ram .
vj1 said:
I have a samsung galaxy ace ...i wanted to know is it possible to increase stock ram I.e. 278mb to 512 mb / 1gb like we do in computers & does it create any problems in cell later I mean will it function properly and where can I get Ram .
Click to expand...
Click to collapse
No sorry..its not possible.Howevver you can use swap but that has a negative effect on memory card
vj1 said:
I have a samsung galaxy ace ...i wanted to know is it possible to increase stock ram I.e. 278mb to 512 mb / 1gb like we do in computers & does it create any problems in cell later I mean will it function properly and where can I get Ram .
Click to expand...
Click to collapse
Its a phone, not a pc :/
such technology doesn't even exist yet.
i think u can try to use this
http://forum.xda-developers.com/showthread.php?t=1659231
Increase RAM using Swap File and Swap Partition
Followed the guide in the above link but can't get swap to work. Rom is 2.3.6 Stock Rooted and BusyBox installed. But keeps failing. Has anyone been successful with Swapper 2 on stock rooted firmware? Before anyone says don't bother or not worth it, I would like to say irrespective I would like to try and see for myself.
Swap needs compatible kernel which stock doesn't have ..flash cf-root then use swap and kill sdcard at the speed of light
Sent from Galaxy Ace which just landed on "MOON"
madman said:
Swap needs compatible kernel which stock doesn't have ..flash cf-root then use swap and kill sdcard at the speed of light
Sent from Galaxy Ace which just landed on "MOON"
Click to expand...
Click to collapse
+1
swap kills your sd card !!!! real fast !!!! killed mine!
though it did giv me some performance boost
Swap partition will be used as ram.
So, "n" no of read and write will happen depending upon the swapiness value.
It will spoil your memory card.
And another thing is your memory card shoud be very fast to maintain performance (higher class).
Sent from my GT-S5830 using Tapatalk 2
Kingston SD Cards come with a lifetime warranty so if it does kill it, they should replace it. It's a shame that you require cf-root because I don't like the fact that CF-Root changes the startup logo and add Clockwork Mod which my idea of stock is not. Is there any other ways?
Gizmotech said:
Kingston SD Cards come with a lifetime warranty so if it does kill it, they should replace it. It's a shame that you require cf-root because I don't like the fact that CF-Root changes the startup logo and add Clockwork Mod which my idea of stock is not. Is there any other ways?
Click to expand...
Click to collapse
Yes they do replace it.But many people dont have backups of their data so for them losing sd card is a real trouble.Now,No stock recovery works after rooting.It is unable to mount partitions so most of CWM flashable packages wont work.still,If you want to have stock recovery back then head to dev. section,find the thread for stock recovery and flash it.
Wooooow boy r u sure you're in the current time. Its 2012 now. . Jokes and no think about it, would it reasonable for a manufactury to do that? think about it in a bussines way. For the moment if you feel like you need more ram just create a swap partition. class 6 or above SD card is suggested and don't worry about the SD lifetime so much you r not gonna have the same phone or SD for like 20 years anyway. R u ? Let me know if you need help with partitioning your SD and I'd appreciate it if you press the thanks button. Also I have a swap partion on my SD its much better and I haven't ran into problems. Its true that it decreases the lifetime but it's not like what you think
Sent from my GT-S5830 using xda premium
Well I have replaced Kingston SD Cards in the past under manufacturer warranty without any problems and as for losing data, that is also not an issue for me thanks to dropbox and automatic camera uploader. As for other phones, the apps, contacts, etc are backed up by google so it is not a big of an issue as many are making it...well at least for me anyway. I just want to give it a go but at the same time I don't want to leave stock. Please don't ask me why as it is self preference and I have explained in other threads why I prefer stock over custom firmware and really do not wish to go into a debate regarding this.
You talk about a Swap Partition. I was under the impression for that a custom Kernal is required. As I am on stock, I would have thought that running the created swap file at boot should do the trick without having to partition a bit of the SD card to Linux Swap. Is that not the whole idea of the Swap File as opposed to a Swap partition?

[Q] Swapping disadvantages

Hi. guys
Can anybody explain for me the disadvantages of swapping?
Will it reduce my SD crard lifetime?
I'm on PAC ROM and using Ram expander app for swapping and now my phone has a great multitasking and I dont have any problem about lack of Ram.
hobab1619 said:
Hi. guyss designe
Can anybody explain for me the disadvantages of swapping?
Will it reduce my SD crard lifetime?
I'm on PAC ROM and using Ram expander app for swapping and now my phone has a great multitasking and I dont have any problem about lack of Ram.
Click to expand...
Click to collapse
It will reduce your SD lifetime, since it use part of card as RAM, so it is in use all the time. In the other way u use a swap file or swap partition? (Dont know in wich way Ram expander work). When you use file it use sdcard filesystem. When you use swap partition it will use swap filesystem which is designed to work with writing/reading space all the time so I think its better.
You must have in mind that adding to high size of swap can slow your device down, while system will want to use swap at first. So its not recommended to use swap higher than your real RAM size.
smogf said:
It will reduce your SD lifetime, since it use part of card as RAM, so it is in use all the time. In the other way u use a swap file or swap partition? (Dont know in wich way Ram expander work). When you use file it use sdcard filesystem. When you use swap partition it will use swap filesystem which is designed to work with writing/reading space all the time so I think its better.
You must have in mind that adding to high size of swap can slow your device down, while system will want to use swap at first. So its not recommended to use swap higher than your real RAM size.
Click to expand...
Click to collapse
Thank you for explanation.
I think this app use a swap file. Can you tell me how can I enable swap partition? and what size do you suggest? Is 256mb good?
And in your opinion how long my SD card lifetiime will last ? (nearly)
In total I think the advantage of swapping is more than the disadvantages of it! Now I don't have any launcher redraws and also music won't be stopped while internet browsing+ a great multitasking that I didn't have ever!
sorry for my English
hobab1619 said:
Hi. guys
I'm on PAC ROM and using Ram expander app for swapping and now my phone has a great multitasking and I dont have any problem about lack of Ram.
Click to expand...
Click to collapse
Bro can u tell me does ram expander works on other custom roms too such as mrsteves cm11, official cm11, etc.
It didn't work for me on two roms mentioned above.
Can u please share ur ram expander settings i mean the swap directory u selected. So i can try once again & go back to kitkat.
Iam using it on stock rom + with too many xposed modules. No lag at all
Talking about the life of sdcard. It will affect it but to a very less extent.
If u use a class 10 memory card u will not encounter any problems.
Iam using this app for more than 5 months on SP and in other phone for over a year.
I still didn't face problem with my sd card.
akashsaini7 said:
Bro can u tell me does ram expander works on other custom roms too such as mrsteves cm11, official cm11, etc.
It didn't work for me on two roms mentioned above.
Can u please share ur ram expander settings i mean the swap directory u selected. So i can try once again & go back to kitkat.
Iam using it on stock rom + with too many xposed modules. No lag at all
Talking about the life of sdcard. It will affect it but to a very less extent.
If u use a class 10 memory card u will not encounter any problems.
Iam using this app for more than 5 months on SP and in other phone for over a year.
I still didn't face problem with my sd card.
Click to expand...
Click to collapse
Thank you for your information.
As I told Im using it on PAC Rom and I have not tested it on other roms.
I selected /mnt/media-rw/sdcard1 as my directory and the value of swappiness and DriverCache are 50 & 8192 for me. ( what these settings means?)
these settings are default and I didnt change them.
Now plz share your setting like swappiness and DriveCache value and perfectKernel checkbox and also swap size. definitely these settings affect on SD card lifetime and help me a lot.
My settings in stock rom swapiness 40, minfree 68mb & drive cache 8192 (can't change this one). All are default values didn't change them
And the most important one SwapDir storage/removable/sdcard1using 513mb swap file.
Sorry for two posts but was unable to attach screenshot in previous one.
akashsaini7 said:
Sorry for two posts but was unable to attach screenshot in previous one.
Click to expand...
Click to collapse
About card lifetime.... heh... I used swap on my old LG GT540 and didnt recieved any bad behavior of card after 2 years So it will affect your card, but... not so much as it could
About screenshot. I cant get it working on CM11 Whats the path to your swapfile? - sorry already there have to look better
smogf said:
About card lifetime.... heh... I used swap on my old LG GT540 and didnt recieved any bad behavior of card after 2 years So it will affect your card, but... not so much as it could
About screenshot. I cant get it working on CM11 Whats the path to your swapfile? - sorry already there have to look better
Click to expand...
Click to collapse
I already said i was also unable to get it work on cm11 (offical & mrsteves one).
But i never tried mnt/media-rw/sdcard1. But @hobab1619 is using this directory.
So i think this one can work.
akashsaini7 said:
I already said i was also unable to get it work on cm11 (offical & mrsteves one).
But i never tried mnt/media-rw/sdcard1. But @hobab1619 is using this directory.
So i think this one can work.
Click to expand...
Click to collapse
I've tried this directory in cm11. Cant enable swap option. Now try other path. Maybe one of this will work. Or maybe cm11 Kernel was compiled without enabled swap option? This is second question.
smogf said:
I've tried this directory in cm11. Cant enable swap option. Now try other path. Maybe one of this will work. Or maybe cm11 Kernel was compiled without enabled swap option? This is second question.
Click to expand...
Click to collapse
If this is a kernel related problem you can try cm11 for locked bootloader that is based on stock kernel. ( PAC ROM is a stock kernel based ROM too)
I think so. None of apps work for me. When I will find my old sdcard i will check how about swap partition. If that will not work it have to be kernel related. I cant change whole system right now (to check cm for LB) since its my daily use phone and i make some holidays right now. Maybe in two weeks.

Categories

Resources