Guest CarpetDiem Posted December 17, 2010 Report Posted December 17, 2010 (edited) The original post is here:http://www.hiapk.com/thread-724987-1-1.html. And sincere thanks to wzhenjie who introduce to me. The code is the following(PS:"38000" is alternative depending on your own spaceleft of data.And you can exchange the swap file from data to system or cache. ): mount -o remount,rw /data; swapoff /dev/block/loop7; dd if=/dev/zero of=/data/swap.img bs=1024 count=38000; mount -o remount,rw /data; losetup /dev/block/loop7 /data/swap.img; mkswap /dev/block/loop7; swapon /dev/block/loop7; Edited December 17, 2010 by CarpetDiem
Guest CarpetDiem Posted December 17, 2010 Report Posted December 17, 2010 You may also want to creat a new file named as "uerinit.sh" in sd-ext so that the swap will be enable with boot. Edit uerinit.sh as txt and input the following code: mount -o remount,rw /data; losetup /dev/block/loop7 /data/swap.img; mkswap /dev/block/loop7; swapon /dev/block/loop7;
Guest CarpetDiem Posted December 17, 2010 Report Posted December 17, 2010 Sorry for posting again,but typeset is beyond my phone,in order not to make it suck,I decide to divide it into parts. Swap on internal storage does have lots of advantages,it's powersave,stable,as well as a bit faster comparing with swapping on sdcard. What's more,that also makes it possible for those guys whose sdcard isn't speedy enough to enable a2sd together with swap. I have tried it and experiencing terrific now
Guest peelie Posted December 17, 2010 Report Posted December 17, 2010 Sorry for posting again,but typeset is beyond my phone,in order not to make it suck,I decide to divide it into parts. Swap on internal storage does have lots of advantages,it's powersave,stable,as well as a bit faster comparing with swapping on sdcard. What's more,that also makes it possible for those guys whose sdcard isn't speedy enough to enable a2sd together with swap. I have tried it and experiencing terrific now what's the minimum internal storage space you need? and as you keep filling with apps what may happen?
Guest CarpetDiem Posted December 17, 2010 Report Posted December 17, 2010 (edited) what's the minimum internal storage space you need? and as you keep filling with apps what may happen? Yes,it does have storage limitation(Say,the bigger swap is,the smoother your device runs,however we can't set the swap up to 100mb due to our phone storag' limitation.38000 is based on my device,you can also change the code based on yours),so you need to build the swap.img on a devectory which has the largest space. When you have enabled a2sd,filling apps will only change the sdcard's space rather than the internal storage,which also means that the swap won't get affected.If a2sd is off,I don't konw,maybe brick down?Haha^_^^o^ Edited December 17, 2010 by CarpetDiem
Guest Ellia Posted December 17, 2010 Report Posted December 17, 2010 First I thought: What a bad idea, we have to low space. But in combination with DTA2SD it makes sense, because of the speed of the internal storage. It's recommended to disable swap in DTA2SD first? What about the swapiness-value? What about the space life time? SWAP produces a lot of read and write accesses. A SD-card can be replaced, but not the internal storage.
Guest D-D- Posted December 17, 2010 Report Posted December 17, 2010 And how about using diff partitions that arent used? Cause when I use the a2sd check, it shows me 2 extra partitions with 50 something mb free space and aren't used at all...
Guest CarpetDiem Posted December 18, 2010 Report Posted December 18, 2010 First I thought: What a bad idea, we have to low space. But in combination with DTA2SD it makes sense, because of the speed of the internal storage. It's recommended to disable swap in DTA2SD first? What about the swapiness-value? What about the space life time? SWAP produces a lot of read and write accesses. A SD-card can be replaced, but not the internal storage. First of all, swap on internal storage not only save the lifetime of SD but also our phones.Think about Windows ,it's strongly recommended that uesrs have the pagefile(called "swap" on unix ) on C(system) partition,becuase since the Windows system is reading and writing a lot(That "a lot" means much more than other programs do) on C,if you set the pagefile on some other partition,the read/write head of the physical disk will be busy changing from different partitions,many processings will be some kind of interrupted,which will certainly do harm to the disk as well as lag the system.So as the Android. As for the disk fragment, I am not quiet sure,but as far as I am concerned, it's not a big deal since the advantages are obviously hard to refuse.DTA2SD,I have disabled it,but you may try not to.Swapness-value,yeah,it's a problem,my data direvtory had 50mb spaceleft before my swap built,so I set 38000 in count.You may want to find a number that suits your phone best.
Guest CarpetDiem Posted December 18, 2010 Report Posted December 18, 2010 And how about using diff partitions that arent used? Cause when I use the a2sd check, it shows me 2 extra partitions with 50 something mb free space and aren't used at all... You mean partitions in SDCARD?If yes,my previous posts may have answered you.
Guest D-D- Posted December 18, 2010 Report Posted December 18, 2010 Nope. I was about to edit my post... With a2sd sysinfo (not thecheck) u will see all partitions (sd and internal) +2 that arent on the sd. Both od them are 50 mb and one is totally empty and the other has 12kb used space... My question is is there a way to use those partitions?
Guest CarpetDiem Posted December 18, 2010 Report Posted December 18, 2010 Nope. I was about to edit my post... With a2sd sysinfo (not thecheck) u will see all partitions (sd and internal) +2 that arent on the sd. Both od them are 50 mb and one is totally empty and the other has 12kb used space... My question is is there a way to use those partitions? Could you plz specify the partitions' names?Are they "tempfs" in both /dev and /mnt/asec?If yes,you may just leave it alone,they will be used when needed.
Guest pk0102 Posted December 18, 2010 Report Posted December 18, 2010 Thank you very much. It works and surely have improvement on the speed. However, the uerinit.sh cannot be worked for reboot. Could u upload one or describe more details on it. Thank you
Guest Daz555 Posted December 18, 2010 Report Posted December 18, 2010 (edited) Not sure if this will help everyone from a performance perspective. In my experience with the Pulse, apps loads faster from my class 6 SD card than then do from internal memory. Edited December 18, 2010 by Daz555
Guest CarpetDiem Posted December 18, 2010 Report Posted December 18, 2010 Thank you very much. It works and surely have improvement on the speed. However, the uerinit.sh cannot be worked for reboot. Could u upload one or describe more details on it. Thank you Eh...Have you checked the code? Or you can have a try on changing the file's(userinit.sh) permissions by rootexplorer
Guest CarpetDiem Posted December 18, 2010 Report Posted December 18, 2010 Not sure if this will help everyone from a performance perspective. In my experience with the Pulse, apps loads faster from my class 6 SD card than then do from internal memory. You are right.But since our pulse is such a low end phone,every possible way to improve the pulse's performance deserves a try,doesn't it?
Guest pk0102 Posted December 18, 2010 Report Posted December 18, 2010 Eh...Have you checked the code? Or you can have a try on changing the file's(userinit.sh) permissions by rootexplorer is it just copy and paste your code to the notepad, and then save as userinit.sh. Then put it to sd-ext folder? For change mode, what is the right persmissions?
Guest CarpetDiem Posted December 18, 2010 Report Posted December 18, 2010 is it just copy and paste your code to the notepad, and then save as userinit.sh. Then put it to sd-ext folder? For change mode, what is the right persmissions? Yes.As for the permissions,chose them all.
Guest D-D- Posted December 18, 2010 Report Posted December 18, 2010 (edited) Could you plz specify the partitions' names?Are they "tempfs" in both /dev and /mnt/asec?If yes,you may just leave it alone,they will be used when needed. Yep, but when are those used? Whenever I check them, they r empty. Well sorry for my ignorance. Edited December 18, 2010 by D-D-
Guest jeddy1 Posted December 18, 2010 Report Posted December 18, 2010 The original post is here:http://www.hiapk.com/thread-724987-1-1.html. And sincere thanks to wzhenjie who introduce to me. The code is the following(PS:"38000" is alternative depending on your own spaceleft of data.And you can exchange the swap file from data to system or cache. ): mount -o remount,rw /data; swapoff /dev/block/loop7; dd if=/dev/zero of=/data/swap.img bs=1024 count=38000; mount -o remount,rw /data; losetup /dev/block/loop7 /data/swap.img; mkswap /dev/block/loop7; swapon /dev/block/loop7; Hi and sorry bu can you explain little bit better on how we will start this? On a computer or not and which way because I just see a given code.thank you
Guest CarpetDiem Posted December 19, 2010 Report Posted December 19, 2010 Yep, but when are those used? Whenever I check them, they r empty. Well sorry for my ignorance. I don't really know ,either... You can ask some other guy who is more familiar with android.Once you get the answer,please don't forget to post it here.∩_∩
Guest CarpetDiem Posted December 19, 2010 Report Posted December 19, 2010 (edited) Yep, but when are those used? Whenever I check them, they r empty. Well sorry for my ignorance. I don't really know ,either... You can ask some other guy who is more familiar with android.Once you get the answer,I would appreciate it if you can post it here.∩_∩ Edited December 19, 2010 by CarpetDiem
Guest CarpetDiem Posted December 19, 2010 Report Posted December 19, 2010 Hi and sorry bu can you explain little bit better on how we will start this? On a computer or not and which way because I just see a given code.thank you I am sorry that I may not be a good teller,after all I am not a native english speaker. You are supposed to type those codes in the terminal(an android app,preinstalled in most mod rom),and of course you should first type "su" to let the terminal granted su permissions. No computer needed
Guest jeddy1 Posted December 19, 2010 Report Posted December 19, 2010 I am sorry that I may not be a good teller,after all I am not a native english speaker. You are supposed to type those codes in the terminal(an android app,preinstalled in most mod rom),and of course you should first type "su" to let the terminal granted su permissions. No computer needed No don't worry I wanted just to know where we must type all that.but I have swap on SD so you think I should disable it first?thanks a lot by the way :)
Guest CarpetDiem Posted December 19, 2010 Report Posted December 19, 2010 No don't worry I wanted just to know where we must type all that.but I have swap on SD so you think I should disable it first?thanks a lot by the way :) No,you don't need to disable it first,in fact, I find that swap both on SD and internal storage can coexit well.But disabling is recommended to deracinate the potential incompatible conflicts
Guest jeddy1 Posted December 19, 2010 Report Posted December 19, 2010 (edited) No,you don't need to disable it first,in fact, I find that swap both on SD and internal storage can coexit well.But disabling is recommended to deracinate the potential incompatible conflicts Ok I did it and now im minus 38mb on internal storage. If I wanna get it back what should I do?factory reset or smth else?I disabled the swap of sd after I enabled this one of the internal.is this really good for the phones?I guess yes but its better I get and answer from you also.if you know of course.I don't know but im thinking to install 2.3 just that it don't have cyanogen settings. Edited December 19, 2010 by jeddy1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now