Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
avetny
Old
(Last edited by avetny; 5th April 2011 at 09:46 PM.)
#1  
avetny's Avatar
Senior Member - OP
Thanks Meter 1263
Posts: 4,014
Join Date: Jul 2010
Location: Private Island.

 
DONATE TO ME
Exclamation [Script][CWM] SD Card reading speed fix !!!!!!!!!!!!!!!!!!

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/show....php?t=1010807



and YES IT WORKS WITH NEXUS S


enjoy u speeeeeeed
Attached Thumbnails
Click image for larger version

Name:	snap20110327_211119.jpg
Views:	1273
Size:	41.4 KB
ID:	561495   Click image for larger version

Name:	snap20110327_205641.jpg
Views:	1238
Size:	41.7 KB
ID:	561496  
Attached Files
File Type: zip SDCardSpeedFixDefault128KB.zip - [Click for QR Code] (155.7 KB, 210 views)
File Type: zip SDCardSpeedFix1024KB.zip - [Click for QR Code] (155.7 KB, 149 views)
File Type: zip SDCardSpeedFix2048KB.zip - [Click for QR Code] (155.7 KB, 938 views)
File Type: zip SDCardSpeedFix3072KB.zip - [Click for QR Code] (155.7 KB, 315 views)
File Type: zip SDCardSpeedFix4096KB.zip - [Click for QR Code] (155.7 KB, 452 views)
The Following 5 Users Say Thank You to avetny For This Useful Post: [ Click to Expand ]
 
MarkVis
Old
#2  
MarkVis's Avatar
Senior Member
Thanks Meter 508
Posts: 1,008
Join Date: Jan 2011
Location: California
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
Follow me on Twitter: MarkVis03

And Google+: MarkVis

Help me expand my Dropbox: just click Here and sign up for free storage

or you could always Buy Me a Soda

Email me here: markvis03@gmail.com
 
avetny
Old
#3  
avetny's Avatar
Senior Member - OP
Thanks Meter 1263
Posts: 4,014
Join Date: Jul 2010
Location: Private Island.

 
DONATE TO ME
Quote:
Originally Posted by markfavis View Post
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
supposed to work with any Android device
 
ragiut1
Old
#4  
Senior Member
Thanks Meter 44
Posts: 204
Join Date: Nov 2009
it works
many thnx
 
Jrbourque
Old
#5  
Jrbourque's Avatar
Senior Member
Thanks Meter 35
Posts: 1,561
Join Date: Jan 2009
So everyone using 2048 for the most part?

Sent from my Nexus S using Tapatalk
Interested In Dominican Republic? http://www.livinginsantiago.com/
 
avetny
Old
#6  
avetny's Avatar
Senior Member - OP
Thanks Meter 1263
Posts: 4,014
Join Date: Jul 2010
Location: Private Island.

 
DONATE TO ME
Quote:
Originally Posted by ragiut1 View Post
it works
many thnx
it's not only WORKS !!! ITS WORKING SUPER FAAAAAAST !!!
 
avetny
Old
#7  
avetny's Avatar
Senior Member - OP
Thanks Meter 1263
Posts: 4,014
Join Date: Jul 2010
Location: Private Island.

 
DONATE TO ME
PEOPLE SHOW UR SCORE BY :SD Tools Benchmark
 
sottyc
Old
#8  
Senior Member
Thanks Meter 7
Posts: 122
Join Date: Jun 2008
Location: Leicester
Surely this is a joke...standard is 128 and that is by far the quickest Im getting 80MB/s read speed
Galaxt Note 2 White-Standard Touchwiz JellyBean

Galaxy Tab 2 10.1 3G on Leaked OTA JellyBean (Touchwiz)
 
avetny
Old
#9  
avetny's Avatar
Senior Member - OP
Thanks Meter 1263
Posts: 4,014
Join Date: Jul 2010
Location: Private Island.

 
DONATE TO ME
just transfer something to PC
 
Jrbourque
Old
#10  
Jrbourque's Avatar
Senior Member
Thanks Meter 35
Posts: 1,561
Join Date: Jan 2009
Using 2048

Sent from my Nexus S using Tapatalk
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1302036649343.jpg
Views:	883
Size:	25.5 KB
ID:	561535  
Interested In Dominican Republic? http://www.livinginsantiago.com/

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...