[Script][CWM] SD Card reading speed fix !!!!!!!!!!!!!!!!!! - Nexus S Android Development

hello developers !
no points for me, I just bringing here to our development
Many of us are disappointed about the reading speed of the SD Cards on our Android Phones. It doesn't matter if you have fast 10 Class SD Card, it performs very poorly on the Phone comparing how it performs on the PC.
The clue is the Cache size for reading from SD Card. It's set to 128 KB, on some ROM's even to 4 KB!
You can check for yourself your Cache size by looking into this file:
/sys/devices/virtual/bdi/179:0/read_ahead_kb
You can change it manually but it will be reverted to default on the reboot. The changes need to be done permanently by loading the script on the startup through the init.d.
Or you can flash the CWM zip files that I made for you.
You must find which Cache size fits best for your SD Card. In my case its the 3072 KB Cache size.At best, use the Root Explorer to change the value, then run SD Tools Benchmark - finally flash the CWM zip file that fits your SD Card.
Here are two screenshots - the first one shows the reading speeds with the default Cache 128 KB and the second one is with the 3072 KB Cache with my Class 4 SD Card on CM7 RC2 by Charnsingh.
The Benchmark is made with the SD Tools program.
If you want to convince yourself of the speed improvement after applying the fix, just open your Gallery and see how fast it loads the photos!
Suggestion: 2048 KB Cache size performs at best for most of the SD Cards!
Some of the ROM chiefs have hardcoded this values in the init, that can't be changed - only by the chief himself.
Some of the ROM's already contain this tweak in another script that is saved in the init.d folder. Probably it's tagged with the number 99 in the filename to be sure that it's executed at last. You have to change it there.
Rafpigna - the HD2 Android chief - pointed that out over here.
For ROM Cookers - add this line into init.rc file:
Quote:
# sd card read speed fix
write /sys/block/mmcblk0/bdi/read_ahead_kb 2048
ORIGINAL LINK: http://forum.xda-developers.com/showthread.php?t=1010807
and YES IT WORKS WITH NEXUS S
enjoy u speeeeeeed

Does this work for the Nexus S since Nexus S has a built in sd card?
Sent from my Nexus S using XDA Premium App

markfavis said:
Does this work for the Nexus S since Nexus S has a built in sd card?
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
supposed to work with any Android device

it works
many thnx

So everyone using 2048 for the most part?
Sent from my Nexus S using Tapatalk

ragiut1 said:
it works
many thnx
Click to expand...
Click to collapse
it's not only WORKS !!! ITS WORKING SUPER FAAAAAAST !!!

PEOPLE SHOW UR SCORE BY :SD Tools Benchmark

Surely this is a joke...standard is 128 and that is by far the quickest Im getting 80MB/s read speed

just transfer something to PC

Using 2048
Sent from my Nexus S using Tapatalk

Jrbourque said:
Using 2048
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
not bad...

NEXUS ONE with 2 class SD card got 90mb read !!!!!!!!
poor nexus S??????????????
who can show me more!!?????

Which one are you doing?
Sent from my Nexus S using Tapatalk

Jrbourque said:
Which one are you doing?
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
do this SDCardSpeedFix4096KB.zip

What's the side affect the higher we go? Lol
Sent from my Nexus S using Tapatalk

Jrbourque said:
What's the side affect the higher we go? Lol
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
u will fly to the space with out weed!

Well I know the good lol I meant what bad stuff can happen lol
Sent from my Nexus S using Tapatalk

Can you tell me what you get using SD tools from the market on your Nexus S?

who can try this: SDCardSpeedFix4096KB....and show me the DAMN SCORE !!!!
COME ON !!!!!!!!! EVERYBODY SAYING 3000 IS BEST !!! SINCE NEXUS S <<<HDD>>> IS SO FAST JUST USE 4000!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USE ITTT!!!
OR HERE ALL THE CHILDREN?

here is one with 4096...do you have any script with much more lets say 16MB or 32MB

Related

[Q] about s2e, darktremor, ungaze, link2sd, etc.

i know that we should all try out which seems to be best fitting for our own personal taste, but i just want to know if who uses what the most. so please, tell me: which rom you use and what you use to transfer apps to your partition because i have tried a lot of other scripts and apps, but i just can't seem to decide which is the best. thanks in advance if you would cooperate
I am on cm7.2RC5.2 and use 'link2sd' for linking apps to sd.
Sent from my GT-S5570 using xda premium
I use CM7 RC5.5 with darktremor script and this script.
I'm using CM7 RC5.5 along with s2e.
everything works very well.
I have use s2e and darktremor both are good and working but i think darktremor is the better choise!! Havent try the both other!!
Notice: on s2e app do not sync automatic like weather etc. on darktremor no problem!!
Sent from my GT-S5570 using xda premium
I use cm7.2 rc5.5 with latest link2sd.
Works flawless.
Used link2sd also on other roms. No problems there to.
Sent from my GT-S5570 using xda premium
wtfshouldidonow said:
i know that we should all try out which seems to be best fitting for our own personal taste, but i just want to know if who uses what the most. so please, tell me: which rom you use and what you use to transfer apps to your partition because i have tried a lot of other scripts and apps, but i just can't seem to decide which is the best. thanks in advance if you would cooperate
Click to expand...
Click to collapse
when i was on mini i used link2sd because it lets me choose which app to move and which to not
I see most of you use link2sd. But for those who use s2e, have you already experienced a time when you boot your sgm, you suddenly lose all your apps and you can't check or uncheck the Applications box?
Sent from my GT-S5570 using xda premium
wtfshouldidonow said:
I see most of you use link2sd. But for those who use s2e, have you already experienced a time when you boot your sgm, you suddenly lose all your apps and you can't check or uncheck the Applications box?
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
Did not experience this problem. Been using s2e for a long time. You can check the Application data by going to s2e settings and check Advance mode. Restart s2e, and you should be able to check it. But I think its impratical to move it to sd-ext. The developer had it default to not move it. I mean, what's the use of your internal memry if nothing's on it? Afaik, the developer chose not to move it since it needs a high I/O speed and internal mem best suits the requirement. It's only practical to move it if you have a class 10 sd card.. still its the users choice, so..
Sent from my GT-S5570 using XDA App
A sd card class 10 certified is a must if you don't want to loose so much speed compared to internal memory.
Although reading speed is not that prob for many card, writing is the more important factor. There class 10 should give you best results.
You can also gain more speed setting a higher sd read ahead cache size. You can do it via an app (sd speed increase for example) or a rom which supports it (cm7 rc5.5 squadzone for example).
motorazrv3 said:
A sd card class 10 certified is a must if you don't want to loose so much speed compared to internal memory.
Although reading speed is not that prob for many card, writing is the more important factor. There class 10 should give you best results.
You can also gain more speed setting a higher sd read ahead cache size. You can do it via an app (sd speed increase for example) or a rom which supports it (cm7 rc5.5 squadzone for example).
Click to expand...
Click to collapse
;-)) a good class 10 card coast almost as much as the mini ;-))
Class 6 or 8 is much enough i think for a low price android phone!!
Sent from my GT-S5570 using xda premium
Use s2e
I use emanon V4 and i have try both of darktremor n s2e..maybe darktremor is better than s2e but i like to use s2e
Its not just you who experienced s2e corrupting the partition and destroying all partition data suddenly. It happened to me thrice and got me pissed like ****. Now I removed partition, formatted my 8 GB memory card. Flashed cm7 by subskype. Using the default cyanogen settings options to set default installation directory to external memory i.e memory card. Am done with this partition crap.
wtfshouldidonow said:
I see most of you use link2sd. But for those who use s2e, have you already experienced a time when you boot your sgm, you suddenly lose all your apps and you can't check or uncheck the Applications box?
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
To everyone, thanks a lot for cooperating. I think I'd try s2e, link2sd, darktremor, and the move to sd card settings in cyanogenmod each in a week. Then I'll see which one I think is best.
Sent from my GT-S5570 using xda premium
wtfshouldidonow said:
To everyone, thanks a lot for cooperating. I think I'd try s2e, link2sd, darktremor, and the move to sd card settings in cyanogenmod each in a week. Then I'll see which one I think is best.
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
i think thats the best way to choose which script to use by using all of them

[Q] A2SD or Link2SD which is the best? ??

I think Link2SD is slow? ??
Any suggestions ...
Sent from my GT-S5830 using XDA
when its well configured and the partion is correctly mounted at startup it's really great and fast ...
Which one you suggest ...
Sent from my GT-S5830 using XDA
AnoopKumar said:
I think Link2SD is slow? ??
Click to expand...
Click to collapse
When you say it is slow, you mean launching and using apps is slow? Or the linking/moving process?
I'm also thinking about using one of these 2 apps, so i'm interested in the answers you will get here
petrus425 said:
When you say it is slow, you mean launching and using apps is slow? Or the linking/moving process?
I'm also thinking about using one of these 2 apps, so i'm interested in the answers you will get here
Click to expand...
Click to collapse
Yeah it's slow when I'm launching and using apps..
Sent from my GT-S5830 using XDA
AnoopKumar said:
Yeah it's slow when I'm launching and using apps..
Click to expand...
Click to collapse
What class is your sdcard? It might be that the card itself is slow?
You have the same problem when you install apps directly on the sdcard?
Sorry to post more questions than answers, but I really wanted to try it, but if it slows down apps, maybe, I will try something else.
I'm using SanDisk 4 GB SDHC
Sent from my GT-S5830 using XDA
AnoopKumar said:
I'm using SanDisk 4 GB SDHC
Click to expand...
Click to collapse
Ok, but do you which class it is?
It should be written inside a circle on your card.
Class 10 is really fast, for example. But if you have a class 4 card, or less, that could be what slows down apps.
Btw I prefer Link2SD because I can choose which apps can go to the SD Card
Sent from my GT-S5830 using Tapatalk 2
petrus425 said:
Ok, but do you which class it is?
It should be written inside a circle on your card.
Class 10 is really fast, for example. But if you have a class 4 card, or less, that could be what slows down apps.
Click to expand...
Click to collapse
Bro it's class 4
Sent from my GT-S5830 using XDA
AnoopKumar said:
Bro it's class 4
Click to expand...
Click to collapse
Maybe that is why it is slower than on your internal memory.
Did you notice the same slow down when you simply move apps on SD, the "classic" way?
By the way, I installed Link2sd yesterday, with an ext4 partition on a class 10 card, and it seems to work fine for now.
Only weird thing I noticed : with the rom I use, link2sd was unable to install the mounting script if i selected ext4 as a partition type.
When I selected ext3, it worked. I read that some roms have trouble with ext4, and others with ext3, but I didn't think I could mount a ext4 formatted partition as an ext3.
I'm using link2sd with a class 10 sdcard and there still are no lags...Everything smooth and fast (Rom: CyanogenMod7.2 RC1 by vo-1 MIRACLE Edition V4)
Fly-High said:
I'm using link2sd with a class 10 sdcard and there still are no lags...Everything smooth and fast (Rom: CyanogenMod7.2 RC1 by vo-1 MIRACLE Edition V4)
Click to expand...
Click to collapse
With this rom, what partition type did you use for link2sd? (ext3 or ext4?)
Thanks Devs..
Sent from my GT-S5830 using XDA
Link2SD
http://forum.xda-developers.com/showthread.php?t=1476121&highlight=link2sd
Thats what made me happy
AnoopKumar said:
I think Link2SD is slow? ??
Any suggestions ...
Sent from my GT-S5830 using XDA
Click to expand...
Click to collapse
Link2sd is the best for me. I am using link2sd about 3 months and I can say that's the best. But if you dont think like that, you can try app2sd or s2e.
petrus425 said:
When I selected ext3, it worked. I read that some roms have trouble with ext4, and others with ext3, but I didn't think I could mount a ext4 formatted partition as an ext3.
Click to expand...
Click to collapse
the rom itself change ext4 u made to ext3....
A little update.
After one day of use, I managed to have my sd-ext partition messed up.
It could only be mounted read-only.
I had to reinstall everything.
So maybe I will try some alternatives like a2sd.
For those who tried these apps, which partition type do you recommand? fat? ext2, 3, or 4?
I'm using Link2sd. DT A2SD is buggy to me. Link2sd works great on CM9 beta 8 with my Sandisk 8GB Micro SDHC Class 6
Sent from my impulses.
petrus425 said:
With this rom, what partition type did you use for link2sd? (ext3 or ext4?)
Click to expand...
Click to collapse
ext3...and it's still working like a charm

Is there a way of increasing the ram of galaxy mini cm 10

I badly miss the play store and its apps and I heard the only way to having it is to increase the phone RAM. I also know that cm10 is still in development.
I am currently using the latest cm10.I had use a few different gapps from different creaters.I have play book,music,etc...
Sent from my GT-S5570 using xda premium
I do not want to delete ringtones,live wallpapers.Maybe something that I can flash.
Sent from my GT-S5570 using xda premium
RAM = No
ROM = Yes
Follow this guide, and remove the ones that you don't need:
http://forum.xda-developers.com/showpost.php?p=30573818&postcount=1538
Also, follow this : http://forum.xda-developers.com/showpost.php?p=30595805&postcount=1555 if you want some more space in ROM (/system partition)
It's not more RAM that you need; it's more internal memory. Unfortunately, if you want Play Store, you don't have much choice but to delete certain things which aren't essential.
Use ICS or GB based roms if you don't want to delete things to make room for Play Store.
Sent via carrier pigeon
coolsandie said:
RAM = No
ROM = Yes
Follow this guide, and remove the ones that you don't need:
http://forum.xda-developers.com/showpost.php?p=30573818&postcount=1538
Also, follow this : http://forum.xda-developers.com/showpost.php?p=30595805&postcount=1555 if you want some more space in ROM (/system partition)
Click to expand...
Click to collapse
First link OK.second link,error 404.
Sent from my GT-S5570 using xda premium
Samsung Fan1693 said:
First link OK.second link,error 404.
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
Well, its not an error for me. Look in CM10 Small Talk thread, I've posted the same link there.
mobilecrackers said:
-
Click to expand...
Click to collapse
please delete your xda app suffix it contains a link to warez site
dheeraj (dhlalit11) said:
please delete your xda app suffix it contains a link to warez site
Click to expand...
Click to collapse
How?
Sent from my GT-S5570 using xda premium
Hot to increase system spaces
What are different apk which we can remove from system folder without affecting any other thing please advise.
amitsrivastava79 said:
What are different apk which we can remove from system folder without affecting any other thing please advise.
Click to expand...
Click to collapse
Video editor apk live wallpaper apk (gallery,if you currently have 2 phone)though it is risky
Sent from my GT-S5570 using xda premium
There is way to increase ram but I doubt it will work on cm 10 I am using cmx and ram extended to 713mb and anyway what you need is more internal memory and not ram.
hsay said:
There is way to increase ram but I doubt it will work on cm 10 I am using cmx and ram extended to 713mb and anyway what you need is more internal memory and not ram.
Click to expand...
Click to collapse
Please can u share how to increased ur RAM?
Sent from my GT-S5570 using xda premium
ojas360 said:
Please can u share how to increased ur RAM?
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
Easy all you need is to create a swap partition.
Now there are two ways
1. You go into recovery mode. Then advanced then partition sd card then select the ext partition size then it will ask swap size select whatever size you wish then let the process complete. This method will erase everything on your sd card but will give more stability and better performance than the next method.
2. Open Google play then search for swapit if you find it then download it I think it is free if it isn't then download swapper but I would still suggest swapit. Anyway whichever you download create a swap file through the app in sd card and not ext. After the process is complete you will have increased your ram.
You have successfully increased your ram but now you need to configure your device to recognize the extended ram so download ram manager(pro) from anywhere open it and select multitasking then see the device performance in the app it is like a speedometer it will be around 60 now just clear ram and swoop it becomes full.
You will surely see a significant change though most of it depends on your quality of sd card I have no problems hope even you don't.
hsay said:
Easy all you need is to create a swap partition.
Now there are two ways
1. You go into recovery mode. Then advanced then partition sd card then select the ext partition size then it will ask swap size select whatever size you wish then let the process complete. This method will erase everything on your sd card but will give more stability and better performance than the next method.
2. Open Google play then search for swapit if you find it then download it I think it is free if it isn't then download swapper but I would still suggest swapit. Anyway whichever you download create a swap file through the app in sd card and not ext. After the process is complete you will have increased your ram.
You have successfully increased your ram but now you need to configure your device to recognize the extended ram so download ram manager(pro) from anywhere open it and select multitasking then see the device performance in the app it is like a speedometer it will be around 60 now just clear ram and swoop it becomes full.
You will surely see a significant change though most of it depends on your quality of sd card I have no problems hope even you don't.
Click to expand...
Click to collapse
But it need a higher class sd card right?
Sent from my GT-S5570 using xda premium
Cmwallpapers, rommanager, livewallpapers, videoeditor, apollo. You can install apollo etc later as user app.
Sent from my Galaxy Nexus using xda premium
ojas360 said:
But it need a higher class sd card right?
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
no,i try it on1gb class2,and sucsessfully,now i have class6 8gb
Sent from my GT-S5570 using xda premium
WTF u talk 1gb class 2.
Sorry,I am noob pls explain/elaborate
Please press Thanks.THANK YOU
Samsung Fan1693 said:
WTF u talk 1gb class 2.
Sorry,I am noob pls explain/elaborate
Please press Thanks.THANK YOU
Click to expand...
Click to collapse
sdcard 1gb class 2.download Sd card speed test app and you will know,what class your sdcard
Ps. sorry for my bad English
antonschwab said:
no,i try it on1gb class2,and sucsessfully,now i have class6 8gb
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
Ohhk i also have class 2 only so i will give it a try...thanks for the tut :thumbup:
Sent from my GT-S5570 using xda premium

[Trick] Gain Extra 40MB

I found this tip on a website and the trick claims to increase your internal memory by about 40MB.... I can't paste the link because it's a website with some paid apps and xda may delete the thread if I do, so instead I've just copied and pasted the post, here it is...
Hey Guyz Today i come with a trick which will help You to Increase the internal memory of your device. Its the most easiest method and best of all... It requires no Root Access and no
need to partition Your SD Card!!! This method actually reduces your used memory. This easy way to gain at least 40 mb of internal storage on your phone:
1. open dialler, and press *#9900#
2. Then select 'copy to sd card'
3. Wait until finish, Done !!
Results vary because it reduced about 50 mb on my SGY Duos and reduced about 7 mb on my friends SG Gio. Usually work well on unroot device & non partitioned SD Card May be usefull but wont recommend on
devices with high memory!!!
Someone tested, somes screen?
Sent from my GT-S5570 using xda premium
Dint worked on the custom rom.
Cm10.1 nightly july15
Sent from my GT-S5570 using xda premium
Work on gb stock by autoradio78
Sent from my GT-S5570 using xda premium
radnou974 said:
Work on gb stock by autoradio78
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
:fingers-crossed:
Actually this trick will work only on smasung stock roms, cause they are samsung odd codes.
I helped you? Wow, lol then don't thank me rather follow me
www.twitter.com/_aakashasaj
Sent using XDA premium
radnou974 said:
Work on gb stock by autoradio78
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
im using the same rom... it didnt work?!
---------- Post added at 02:48 AM ---------- Previous post was at 02:47 AM ----------
pryerlee said:
I found this tip on a website and the trick claims to increase your internal memory by about 40MB.... I can't paste the link because it's a website with some paid apps and xda may delete the thread if I do, so instead I've just copied and pasted the post, here it is...
Hey Guyz Today i come with a trick which will help You to Increase the internal memory of your device. Its the most easiest method and best of all... It requires no Root Access and no
need to partition Your SD Card!!! This method actually reduces your used memory. This easy way to gain at least 40 mb of internal storage on your phone:
1. open dialler, and press *#9900#
2. Then select 'copy to sd card'
3. Wait until finish, Done !!
Results vary because it reduced about 50 mb on my SGY Duos and reduced about 7 mb on my friends SG Gio. Usually work well on unroot device & non partitioned SD Card May be usefull but wont recommend on
devices with high memory!!!
Click to expand...
Click to collapse
my rom is rooted.. and im partitioned.. ill try to remove partition and try this again btw thanks
Well that something interesting although it dint worked for me
Sent from my GT-S5570
pryerlee said:
I found this tip on a website and the trick claims to increase your internal memory by about 40MB.... I can't paste the link because it's a website with some paid apps and xda may delete the thread if I do, so instead I've just copied and pasted the post, here it is...
Hey Guyz Today i come with a trick which will help You to Increase the internal memory of your device. Its the most easiest method and best of all... It requires no Root Access and no
need to partition Your SD Card!!! This method actually reduces your used memory. This easy way to gain at least 40 mb of internal storage on your phone:
1. open dialler, and press *#9900#
2. Then select 'copy to sd card'
3. Wait until finish, Done !!
Results vary because it reduced about 50 mb on my SGY Duos and reduced about 7 mb on my friends SG Gio. Usually work well on unroot device & non partitioned SD Card May be usefull but wont recommend on
devices with high memory!!!
Click to expand...
Click to collapse
Thanks
sent from my UNLOCKED gt-s5360 using the XDA app
Doesn't work on AOSP 4.0.4.
Doesn't work on CM7 too
Thanks for share... Working for me... before 160 MB >> after 181 MB.
cool
doesn't work on my phone ....
tsk tsk ..
Fine
Xorks fine with New Experience Stock Ron by autoradio78 :good:
I just try it on my Samsung Galaxy Mini with custom Rom.. Future Next 3.0 JB 4.2.2 .. DIDN'T WORK..
But on my Samsung Galaxy Young.. Stock Rom ... It Works! Thankyou
asrivastava said:
Doesn't work on AOSP 4.0.4.
Click to expand...
Click to collapse
maybe work on stock rom

TWRP and problems with class 10 SDXC

I just got a 64gb class 10 extreme SDXC. Super fast, but I can't seem to find it when I go into safestrap recovery. Anyone know if I need to repartition it differently so that it will work?
Sent from my SM-N9005 using xda app-developers app
ekerbuddyeker said:
I just got a 64gb class 10 extreme SDXC. Super fast, but I can't seem to find it when I go into safestrap recovery. Anyone know if I need to repartition it differently so that it will work?
Sent from my SM-N9005 using xda app-developers app
Click to expand...
Click to collapse
OK - I solved it. here is a link to how I did it, from elsewhere on the forum!
http://forum.xda-developers.com/showthread.php?t=2041679
[QDoes anyone know if formating the SDXC to Fat32 slows it down that exFat?
Slower, no. File size limitations, yes.

Categories

Resources