yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] brainmaster:
As I already wrote in the HD2 section, the Cache size itself is the bottleneck between the fast SD Card and the Android interface. They are no known negative side effects with this hack. If you see one, please post it. It is always easy to revert back to the default settings.

Alone the faster gallery loading photos are worth of doing the hack.

Correct, start the Clockwork Recovery and choose the zip file - flash it.

There should be no problems with the 2048 KB setting.
[Android Apps and Games] opher50:
Sounds cool :P I'll try the 2048KB on my galaxy S :D

Edit: flashed via CWM .. saw no change at all :S Il check the benchmark .. maybe it didnt change it ..

Writing speed : 2.7 MB/s

Read Speed : 11.8 MB/s

- definetly not the correct 1. . il try the 3000kb!
[Android Apps and Games] melvinchng:
I have 8.1 writing, 27 reading in my class 4 16gb sd card with 4mb.(with Cache and data on ext partition)
[Android Apps and Games] opher50:
Guys the 77Fix files I create here ... what is the file type? it is TXT and i think its not the correct 1?
[Android Apps and Games] xheavymetaldadx:
Thank you I've been looking for this usually my gallery will fc before it can load everything especially after a reboot, this more than fixed the prob. When I get on my laptop I'll hit up the thanks button for sure lmao
[Android Apps and Games] Igotno:
Can't get mine to stay at 3072 keeps changing back to stock 128????

Sent from my SCH-I500 with MIUI v7.0 alpha
[Android Apps and Games] cHarley04:
I doubt you'll get much in the way of help or suggestions, if nobody has a clue what phone you have.

That's why putting that info in your signature is generally a good idea.

;)
[Android Apps and Games] mejobloggs:
Ok, thanks for suggestion :)

Ideox X5 / Huawei U8800
[Android Apps and Games] sylaan:
SD Tools tests with a 190MB file if I am not mistaken.
[Android Apps and Games] voodooboy3000:
Fantastic job makes a huge difference
[Android Apps and Games] Auridran:
Then that is quite odd, I have to say. The Antutu benchmark takes quite some time to finish, so it's not like it's using a small file, but it receives absolutely no benefit from this tweak.
[Android Apps and Games] sylaan:
Actually, in SD tools, right above the "Start speed tests" button it says that it needs at least 190MB free space on the card. So it's only an assumption on my part that the test file(s) are that big. But of course, I have no idea what exactly happens, I didn't write the app.
[Android Apps and Games] sibere:
I also wonder if this is increasing speed on random access ... not sure that a 4mb read ahrad is helping in everyday's realife situation
[Android Apps and Games] TRusselo:
Samsung Captivate Test results.. manual edit of settings. havent rebooted yet

will try create script method first. as i have read CWM method doesnt work for SGS phones.
[Android Apps and Games] cordell12:
WoW! Cool Mod ;) Worked for me on CM7 RC4 :D
[Android Apps and Games] YOSEFE:
I have a Desire Z, mod reverts to 128 upon reboot.

Any help?
[Android Apps and Games] rosseyn:
SD-ext

Tried the app to measure speed on my Atrix, it seems like it's reading the internal memory rather than the removable card.

Not sure if the init.d edit covers this.
[Android Apps and Games] shadow_empire1:
getting error when flashing:

E: wrong digest: META-INF/com/google/android/updater-script

E: Verification failed

Installation aborted.

-

fixed: had to use the correct zip...

http://xdaforums.com/showpost.php?p=12547525&postcount=122
[Android Apps and Games] VeEuzUKY:
How to flash this? Just a regular update procedure on CWM? I dont want to mess things up:) Thanks in advance:)
[Android Apps and Games] TRusselo:
Now i have tried the

99sdcardreadfix method 1 from OP (captivate system doesnt have method 2 setup)

with the script fix quoted above.

STILL WONT SAVE.. any help?
[Android Apps and Games] Minux31:
Incredible !!!!!

With my 10 class card, this patch (set to 2048) made my read speed increasing over 100MB/s (about 20MB/s before) :D

Thank you very much :)
[Android Apps and Games] SalsaForte:
Works fine with my Nexus One!

Kingston 32gb Class 4

read_ahead_kb set to 3072
[Android Apps and Games] justinglock40:
Can anyone make this compatible with CWM3 for Epic 4G
[Android Apps and Games] DarkPal:
DOES THIS work on samsung galaxy tab? Searched found something.
[Android Apps and Games] ernest33:
Oh :-O

Well with my sdcard Lexar Class 6 (16gb) I got

* write : 21,4

* read : 30,2

using the 2048 mod.

Thanks a lot !:)
[Android Apps and Games] fortuneman:
wow, thanks, it seems like my phone is on speed now :)

is there a way to make it permanent without rooting the phone? thank you.
[Android Apps and Games] ruchern:
On 8GB Desire HD

4096 kb cache.

Trying to push to 8192 kb later

Read: 110.0 Mb/s

Write: 4.0 Mb/s
[Android Apps and Games] TRusselo:
samsung galaxy S series.. aka SGS has been mentioned.. few posts up from yours (mine)

and i really dont get your sig...
[Android Apps and Games] momofashi:
Good job!thx.
[Android Apps and Games] DroidTh3ory:
Can't get it to stick using Clockwork on my ThunderBolt.

___
[Android Apps and Games] :
zip file didn't work on clockwork droid x gingerbread deodexed
[Android Apps and Games] dw9906:
Just buy sd card speed booster from the market. It does the same thing and sets ir at boot
[Android Apps and Games] edwill44:
Thank you, this helped a lot....

View attachment 560230 View attachment 560231
[Android Apps and Games] cartonneexpress:
unbelievable!

it does magic for nandroid on hd2!

writing speed has improved by 64%

reading speed by an unbelievable 308%

btw, I also used SD Card Speed Boost from the market - a lot easier and faster ...but who found out about this?

thanks to ernest33 for sharing!
[Android Apps and Games] v941726:
got a class 10 card. tried 2 speed tests. tried up to 4096. could not get past 20mb read speed. write stayed at 15mb or so. i.e., no change. have the inc
[Android Apps and Games] cwill0303:
I cannot get anything to work unfortunately, does this file need to have the permissions changed as well?

/sys/devices/virtual/bdi/179:0/read_ahead_kb

Thank you!!
[Android Apps and Games] FernandoMiguel:
created a wish bug on cyanogenmod http://code.google.com/p/cyanogenmod/issues/detail?id=3355

please star it, or provide a patch to gerrit! thanks
[Android Apps and Games] DarkPal:
Its a joke about linux. True story though lol. Not that we hate linux it needs alot of work but you can bend it at your will lol.
[Android Apps and Games] sibere:
try /sys/block/mmcblk1/queue/read_ahead_kb

You can do the same for mmcblk0, etc ...
[Android Apps and Games] nizzle1:
i have a few questions for this:

1. what cache size would you recommend for a 16gb sd card??

2. i don't understand what file you would use to make this script, could anyone help me with this please??

thanks for support :) also great find mate
[Android Apps and Games] Omega740:
CWM3

Can't seem to find anything with this and Clockwork Mod 3. Also, I looked in my sd card directory for:

/sys/devices/virtual/bdi/179:0/read_ahead_kb

I made it all the way to bdi, but there was no "179:0" folder to look into. Their were many others, but not a "179:0".

I'm on an Epic 4G.
[Android Apps and Games] Copper Green:
Nyce.. doubled my read-speed.
[Android Apps and Games] rocketboy329:
I had a writing speed of 3.0 mb/s and a reading speed of 68.0 mb/s on a class 4 16gb kingstond msdcard :O..very strange

tried it again and now I have a writing speed of 2.1 mb/s and a reading speed of 139.8 mb/s. Do you think this is accurate or just bollocks for ?
[Android Apps and Games] tommy1994:
got no such a init.d folder

defy stock rom rooted and using root expoler
[Android Apps and Games] W3ber:
1024 perfect for me N1 Nexus One Cyanogenmod Passion rm-32

Kingston SD CLASS 10 16GB
[Android Apps and Games] DjEyeU:
Thanks u for this fantastic work/sharing!

HTC HD2

MIUI 2.3.3

SDCard-SU16G

FLASHED--SDCardSpeedFix2048KB

Before--->:rolleyes:

After--->:eek:
[Android Apps and Games] pac213:
I think this has nothing to do with writing to the SD card, it just affects reading from it. Correct me if I'm wrong.
[Android Apps and Games] jamesbond22:
What is CWM?
[Android Apps and Games] xpooz:
tested on nexus s, it wont work

after flash my read_ahead_kb still 128

it wont change..
[Android Apps and Games] VeEuzUKY:
Yes but those result are totally not correct. benchmark several times and you'll see the results always vary very much and 100MB/s is simply impossible in the real-world.
[Android Apps and Games] RoyalWitCheese:
Lexar 16G Class 6

128 = Write 4.5 Read 25.5

4096 = Write 11.5 Read 132.7

@VeEuzUKY - Ran about 5 times - never under 110, max was 146.9
[Android Apps and Games] Unkjcr:
I own a HTC Magic (sapphire), with CM7-RC4 and a 8Gb Class 6 sd card. I flashed successfully the 2048kb zip and checked that the read_ahead_kb value changed too. But in sd tools test the max read speed i get is 17MB/s. I already tested some other cache values from 1024 to 8192 and no changes either. What's the problem here? :/

Thanks in advance.
[Android Apps and Games] j.youngberg:
I am seeing the same results as you. I tried 1mb, 2mb, 3mb and 4mb of cache with little difference to read or write speeds. Is there a specific format our SD cards need to be in. I am flashing the "fix" from CWM. I have a 8GB card with about 1.3 GB of space free.
[Android Apps and Games] VeEuzUKY:
How to flash this patch? Just like a regular ROM/Kernel update procedure from azip file on CwM Recovery? I dont want to mess things up:) Thanks in advance:)
[Android Apps and Games] Broetchen:
Just read about a couple of threads to get this thing running. What do I have to do with the zip-files? Unzip them on the PC and then? Do what?

Sorry, for that noob-question but I don't get it.
[Android Apps and Games] TRusselo:
this finally fixed the reboot issue on my SGS Captivate!
[Android Apps and Games] j.youngberg:
Flashing the zip via CWM does not change the cache size after boot for me. I tried the 2mb and 4mb zips and upon boot I was still at 128kb.
[Android Apps and Games] Unkjcr:
You need to flash the files in ClockWorkMod recovery. If you have a RA-recovery you need to flash the ones for that recovery. :)
[Android Apps and Games] beardyone:
lovely, thanks mate. works brilliant. flashed the 2048k zip using clockwork recovery. i have a widlfire running CM7 rc3. very impressive.
[Android Apps and Games] RoyalWitCheese:
INSTRUCTIONS - If you're running Cyanogen Mod 7

Download the 4 files from here - http://xdaforums.com/showpost.php?p=12547525&postcount=122

Copy all of them to your SD-Card

Hold down power button until you get the Reboot Menu

Choose Reboot -> Select Recovery, hit OK

When phone reboots into Recovery

- Install Zip From SD Card

- Choose Zip from sdcard

pick one of the Speedfix files

Yes - install sdcardspeedfixXXXX.zip

After it installs - reboot phone

Do your Speed test, write down the speeds, then Repeat all the steps for the next speedfix file.

After you've done all 4, pick the one with the best speed and install that one.

Done.
[Android Apps and Games] j.youngberg:
I'm on CM7.

I've flashed that way multiple times with the 2,3 and 4mb zip.

Upon boot when I look at the /sys/devices/virtual/bdi/179:0/read_ahead_kb file it still says 128.
[Android Apps and Games] CBConsultation:
My 32GB card is a class 4 and I haven't adjusted any settings. I think my results are just fine.

I'm on CM7 RC2 by the way.
[Android Apps and Games] zedopovo:
This thread isn't for any layman. I don't want by any means to offend or judge the amazing work all you guys have done, but I just didn't understand nothing guys. Seriously, I'm very noob here and I didn't get anything at all. I want to increase the overall speed of my sd card, I have an galaxy 5 GT-5500 and I don't have any clue about where to begin. I don't know how to use ROM manager or even if it works on my cel and I don't know what do you mean by 'make a file' with all those programming stuff. Would someone bother to explain me all of that in a really beginner way? Thanks in advance.
[Android Apps and Games] CBConsultation:
if you don't know any of this then you should NOT be attempting any of it. Case closed. Not trying to sound like a snob but you need to learn your device before trying to modify it. IMHO of course.
[Android Apps and Games] Unkjcr:
Try SD Speed Boost from the market. If you have root access.
[Android Apps and Games] c00ller:
I noticed that all the super high read speeds (60 to 100+ MB/s) reported were all obtained with relatively new devices...

I'm using the Hero, and you are using the Magic. Both are first generation hardware devices and my results are similar. You can see them here

http://xdaforums.com/showpost.php?p=12512461&postcount=100

I also have an 8 GB Class 6 card. It's made by Transcend. Who is your SD card manufacturer?
[Android Apps and Games] V6-Maniac:
For the SDCard speed i also can confirm the speed improvement.

I used the "SDCardSpeedFix4096KB" zip and SDTools gives me the following data.

p.s.

I have SGT P1000 Euro loaded with Overcome 1.4.2 and 2.1.2 Kernel and 16Gb Class 4 sdcard
[Android Apps and Games] sibere:
As expected, *huge* slowdown when loading small non consecutive files.

try this:

boot your phone with "standard" 128Kb read_ahead and open gallery (you must have a fair number of picture to feel the difference, say 50 or more) and see how the phone is loading pictures thumbnails.

now reboot and use any parameter like 4096 or so. then reopen gallery and see how slow it is now to load pictures!

It may be different for you but on my HTC desire, I keep 128 or even 64kb read_ahead.
[Android Apps and Games] CBConsultation:
I'm running the Glacier with a brand new Sandisk 32GB card. CM7 RC2.
[Android Apps and Games] Unkjcr:
Maybe that's the problem because i´ve set everything perfectly. My card is just like yours. Same brand. Is there a possibility that this is not working with us due to ROM limitation?

Thanks for your reply. :)
[Android Apps and Games] ZeroXtreme:
SGT Internal Storage

Can this be implemented for the Galaxy Tab's internal 16GB storage?
[Android Apps and Games] cwbristow@cox.net:
downloaded 4096kb zip, moved file to root of SD, opened CWM recovery, installed .zip, SYS still says 4, no change in SD Tools test,

SOOOO,

DOWNLOADED 'SD Card Speed Boost' from market, changed speed from 4 to 4096, SD Tools speed test now similar to other posters
[Android Apps and Games] sudhirkhanger:
Kingston Class 6 8GB MicroSD

Originally 256

Read-11 Write-6

1024

Read-16 Write-8

2048

Read-15 Write-9

3072

Read-16 Write-7

4096

Read-15 Write-6

Unit - MB/s

The r/w speeds are not averaged.

thanks a lot.
[Android Apps and Games] nizzle1:
can anyone help make this for Xperia X8??
[Android Apps and Games] hgoldner:
Was able to do everything here within Root Explorer and increased write speed from 4.5 to 6.9 using 2048 setting on 32 gigabyte Sandisk micro sdhc (Class 2).

Very nice!
[Android Apps and Games] zedopovo:
I'm pretty sure you haven't born knowing everything, but if this is the help you can give, the case is closed indeed.
[Android Apps and Games] PSeeCO:
No problems here, 3Mb patch, i've opened an icon folder (139 items) and it's speedy as always (if not better) i'll definitely keep this setting!

Same SD here, but i'm on N1 with Geo rom, 8 write 71.7 read ;)
[Android Apps and Games] markjnj:
flashing using CWM didn't work for me. setting wasn't sticking. Using sd card boost
[Android Apps and Games] Graveir:
Nizzle1, what's the great philosophy about it? I've just installed it on my X8 with miniCM RC1 and... in tests the improvement is slight, 0,3 for write, about 2,5 for read, however, the 3D gallery works a lot faster now, so I guess it works :)
[Android Apps and Games] Unkjcr:
I don´t want to start an off-topic conversation here, but i'm pretty sure that he was trying to say that if you are not very familiar with this procedure, maybe you shouldn't try it. If you mess something up you can damage your system. But if you really want to try this out, give "SD Card Speed Boost" a shot. :)
[Android Apps and Games] Majesty00:
Hey,

First of all, thanks for the fix!

I was successful in applying the 3072kb cache fix file with Amon_RA 2.0 (using the Amon_RA version, of course), but the fix doesn't stick after a reboot.

If I try to run the script ./77sdcardspeedfix in /system/etc/init.d using terminal emulator, I get this error "[: not found". I guess that's why the fix doesn't stick.

What doest it mean anyway?

If I type "/system/xbin/echo "3072" > /sys/devices/virtual/bdi/179:0/read_ahead_kb", I don't get ant error.

The cache stays with the app "SD Speed Boost".

I am using a Nexus One with a rooted Gingerbread.

Any ideas?
[Android Apps and Games] leonman:
Hi

You did not affect your real read and write speed. All you did is fooled the measurement tool. You cannot have such huge numbers for today's technologies. By adjusting your cache to higher numbers, you are enabling the whole file that is used by the measurement tool to be placed in the cache. So, what you are measuring is the read from RAM not from the real flash. So, the first read is "real" read from flash, the subsequent ones are read from RAM. Most likely the tool performs several reads in the loop. I am not saying that increasing cache is bad - it can give you performance boost when accessing more and more files - but the measurement that you are using is not giving the right picture
[Android Apps and Games] Moffasin:
Just tried the 2048 on my Galaxy S and I didn't notice any change, not using an external SD card though so that might be why.
[Android Apps and Games] ZoZo-:
What about a device without the 179:0 folder?

The G-tablet do have the /sdcard/, internal memory, and the /sdcard2/ for the external sd-card, is there a possible fix for this? :)
[Android Apps and Games] astuermer:
I looked for a "init.d" folder inside /system/etc/ and/ etc/...

Also searched for it with RootExplorer - not found.

Manually creating it and inserting the script - no success after boot.

Using the zips for flashing in AmonRA 1.0 - no success.

After reboot still at 128 :(

Any idea?

Android 2.2.2.

Acer Liquid Metal
[Android Apps and Games] Broetchen:
After months of reading through WinMo-Development I quit my HD2 for a DHD with the original ROM. Nothing changed yet. That is why I do not know about the Android-specific terms as RA-recovery or cwm. Could somenone therefore provide a dumb-easy "hot-to"?

Would be great for the noobs as I am...

thx
[Android Apps and Games] tonno16:
I thinks is not orret the result.

mi class 10 8 gb (payed 20€).

I scored 20 mega in write and 234 in reading
[Android Apps and Games] evilRafael:
Brother, this was awesome. Many thanks! ;)
[Android Apps and Games] SLCMotor:
What I did was download the 2048fix zip file, opened it with Root Explorer and copied it to /system/etc/init.d in R/W mode and then changed ther permissions to resemble the rest of the files in that folder, rebooted and it worked. Verified by looking at /sys/devices/virtual/bdi/179:0/read_ahead_kb and it now read 2048

or as instructions on post 1:

Make a file with this content:

#!/system/bin/sh

if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]

then

/system/xbin/echo "128" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

fi;

Change the red marked number from 128 to what you need (example 2048).

Save it as "99sdcardreadfix", copy it with the Root explorer or push it with ADB into /system/etc/init.d and set permissions to 777. Reboot.
[Android Apps and Games] sibere:
yes the generic path is

/sys/block/mmcblk[1,2,3]/queue/read_ahead_kb

use 1 or 2 or 3 depending on your device (ie: echo "2048" > /sys/block/mmcblk1/queue/read_ahead_kb)
[Android Apps and Games] simnik123:
Amazing from 14 to 101 mb
[Android Apps and Games] AZ2ENVY:
I opened the read_ahead_kb file in text editor and adjusted the values

from 128 to several different values like 1024 , 2048 , etc. and I seen

no change in the speeds . What is going on here ?
[Android Apps and Games] 360nitrous:
I've tried all the flashable zips and none of them increase the write speed, only the read speed, any clues what I could do?

Using a 16GB Class 6 card
[Android Apps and Games] v941726:
same here. i did the same thing before i flashed. like the directions said. i have the dinc.
[Android Apps and Games] gorgy76:
awesome thnx...photos on my gallery in external sd opens lightning fast.........my snappy phone now much more snappier....whooot....

Edit: I can't run sd tools on my external sd card since it's a captivate galaxy s (not supported by the app) but I can tell you opening the photo gallery with hundreds of photos is blazing fast.
[Android Apps and Games] UKseagull:
Apologies if this has already been mentioned, has this script made any difference to the 720p recording/playback?
[Android Apps and Games] iinga:
No it wont because it only will speed up small files that can be precached onto ram. It can't change the read speed of your card: which you can find out the real read speed using antutu benchmark tools.

SD tools is unreliable atm and speaking to the dev it seems like the h igh read speed issue will be fixed for the next release.

Increasing cache size infinitely does not increase read speeds. Hard drive benchmarkers will attest to this (a hard drive buffer being similar to our readahead cache)

Sent by Owl Post
[Android Apps and Games] tofasttafuri:
I have a D1 and i tried the 2048 zip. It worked but my speeds from the SD speed test did not improve.
[Android Apps and Games] Danny80y:
I get worse on anything other than 128 on my Inspire...

Sandisk 8GB SDHC C4

Read/120.2MB/S

Write/7.6MB/S
[Android Apps and Games] AZ2ENVY:
Okay bought the SD Card Booster app and still no changes . Anyone

have any idea on whats going on ? Also I am running a 16G SD , Theres

a 2 inside a circle on the card . Does that indicate the speed of the SD card ?

Thanks in advance !
[Android Apps and Games] LordManhattan:
Desire HD stock SD (128)

- write = 8 MB/sec

- read = 145 MB/sec

I'm kinda happy with the normal read speed, hehe :P
[Android Apps and Games] richua:
The 2 inside the C (it's not quite a full circle :)) means you have a class 2 card. The number indicates the minimum write speed of the card in MB per second.
[Android Apps and Games] Philosuffer:
Notsureifsrs.jpg

But, if you are serious. Write speed is a physical limitation of your SD Card. Also, considering that this tweak alters a file called "read_ahead_kb" it would only be logical to assume that it only alters the read speed, not the write speed.

So, the only advice that I can give you to increase the write speed of your SD Card is to buy a new one, a Class 10 one, funds permitting as they are the quickest available right now.
[Android Apps and Games] AZ2ENVY:
You think this would be the cause of the issues im having ?
[Android Apps and Games] shady503403:
I've tried flashing the zips.. nothing will stick after a reboot. :( any idea? I'm using a vision with UD 3.20...
[Android Apps and Games] richua:
Possibly. Class 2 is the slowest so you will be limited in speeds in that aspect. If your issue is that read_ahead_kb is not getting changed, then the card has nothing to do with it.
[Android Apps and Games] ashton4life:
sayed 128 before and speed was 6 and 47 added 2048 and still the same speed. Checked file and it was at 2048. I dont get it?

Tryed all sizes and they all do the samething all though the 4096 size gices me 3.1 write and 50 read. Is this normail?
[Android Apps and Games] 2sslow:
pre: 5.7/9.2

post 9.9/70+

Flashed 3meg via ra 2.3 alls well after reboot.

If there are any nay sayers just open gallery, youll be a believer!

BTW in running MIUI 1.4.1
[Android Apps and Games] MacDegger:
Holy.

****.

:)
[Android Apps and Games] sdrawkcab3:
Yeah, this is killer. 12/15 before, 14/35+ after (2048) with Transcend 8 gb c6

Who knew gallery could load this fast...

Update: Tried 4096 on a whim and I'm getting 15/50+.
[Android Apps and Games] Toobie:
Used this fixed on my Nexus One, flashed it with ClockworkMod - the 2048KB files

Before:

Write Speed: 2,9

Read Speed: 10,8

-----

After:

Write Speed: 3,4

Read Speed: 26,3
[Android Apps and Games] SalsaForte:
I also noticed that double twist load songs list faster.