yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PIRATA!:
So there weren't any files...the first one was yours....

What rom are you using??
[Android Apps and Games] Irontiger:
Currently the stock ROM. As far as I know it doesn't make any difference?
[Android Apps and Games] sleepyEDB:
Just a quick PSA...if you haven't updated your SD Tools to the latest version, I recommend doing so. Using the previous version, 4096 was the clear winner for me. Now, with SD Tools 1.6, it's 2048.

sleepy
[Android Apps and Games] PIRATA!:
Maybe yes. Maybe the name is related to what the system can search.

Let me make a couple of questions......
[Android Apps and Games] iinga:
The recent update to SD Tools means that this tweak doesn't affect the scores, so your post makes no sense and it is by pure chance that you got a better score for 2048
[Android Apps and Games] sleepyEDB:
Ah. :o

Well then, in that case, keep calm and carry on.

sleepy
[Android Apps and Games] 1loco69:
Hi.

I tested your fix, but doesn't seem to work at all for me.

Kingston 16gb class 4:

128: 4,3w 15,8r

1024: 4,3w 15,6r

2048: 4,3w 15,7r

3072: 4,3w 15,9r
[Android Apps and Games] PIRATA!:
PLEASE REPLY!!!!! I am making some tests and need to have info from you guys!!!
[Android Apps and Games] iinga:
The app has been fixed...only place you might see a difference is in gallery loading speeds now.

Sent by Owl Post
[Android Apps and Games] 1loco69:
Hi.

Indeed, I opened the gallery and everything seems smoother now.

Btw, I used the fix on 179:0 first. Didn't notice the changes with sdtools. But then I modified the value inside 179:8 and sd tools started to show the changes. How come?

I've only been able to read till page 20 so far sorry, still reading.
[Android Apps and Games] gorgy76:
Omg my class 2 card performs faster than yours. Did you check the root script if its sticking in there. By the way it does not increase sd performance all it do is improve caching of data to your ram from your sd that's why when you open a file from your sd it opens quickly.those test only measures how your sd card performs. Try to open some files on your sd, if it opens smoothly then it's working don't rely on those benchmark because it only measures what your sd card is capable of not what your system does.
[Android Apps and Games] Borat38:
I set mine to 3072, and got--

Write: 7.0Mb/s

Read: 20.6Mb/s.

Imagine my surprise when I set it back to 128 default and I got:

Write: 11.0 Mb/s

Read: 17.6 Mb/s

Is this SD Tools proving to be inaccurate, or is it something else? Btw, I used SD Increase, but before that I flashed the 3072 Zip file.
[Android Apps and Games] Irontiger:
Ok. :) I'm waiting.

IT
[Android Apps and Games] dandroidMe:
It's almost certainly inaccurate because it needs to work around and preserve the existing data you have on the card, the layout of which will affect it's results.

To get compatible results you need to start the test each time with precisely the same data layout - the way you do this normally is to capture and then restore the entire disk image. There's a further advantage that by doing this with different disk images you can test the considerable performance impact of this mod when at different levels of file fragmentation (which of course nobody has actually thought to do yet). The level of fragmentation is why people get differing results; In some cases it will make the gallery load quicker and in other cases this mod is most likely making it worse.

d.
[Android Apps and Games] dakost:
This looks ok to me (excluding missing any typo mistake).

If you are rooted you can always verify the path through a shell or root explorer.

I did just in case because i recall having seen somewhere that for at least one android device (viewsonic tab) the numbers are different than (179:0) and (178:0).
[Android Apps and Games] dakost:
As far as i know it depends on the machine you have. For example on galaxy s, sd tools only benches external sd, so you need to modify 179:8).

I think on htc desire it benches just internal (someone can verify?) and so you need to modify 179:0). So modify both as well as default.

To bench the internal on galaxy s i use another app called sst. Not sure what sd tools benches in other phones. Similarly i can recall having seen at least one android device (viewsonic pad i think?) that the numbers are different than (179:0) and (179:8)
[Android Apps and Games] zallaaa:
Am I the only one that cannot keep the settings? Initially I've tried with 2048 (using the script in init.d) and it worked, but after that I couldn't replicate the result with other measures and the phone just returned to the pre-change speed (128). I've also tried modifying the value in 179:0 but no luck...
[Android Apps and Games] jrr1421:
I had your problem, but (somehow) I was able to fix it. I'm not sure what fixed it exactly, so I'll just run through the steps I took.

1. I installed SD increase (before I even knew about this thread) and changed my value to 2048. After ticking the option to apply on every boot, I rebooted but my value reverted back to 128. I changed my value back to 2048 again w/ SD increase and rebooted again - same result. I uninstalled SD increase.

2. Decided to google a way to change the value myself since the app wasn't keeping my value and I found this thread.

3. I flashed the 2048 file in CWM and rebooted. Checked my value in the read_ahead_kb file with root explorer and it was still set to 128.

4. Planned to re-flash the 2048 file again but reinstalled SD increase b/c I figured a) it would be faster to check my cache status on boot and b) if the 2048.zip wasn't going to stick the settings, at least I could quickly reapply the value after reboot manually w/ SD increase.

5. I changed the value in SD increase to 2048, ticked the apply on boot box and then booted into CWM.

5. I flashed the 2048.zip file again in CWM and rebooted. When I opened up SD increase, to my surprise, it was already set to 2048. I opened up the read_ahead_kb file again and confirmed that it was set to 2048.

I've rebooted 3 times now and the value has stuck every time. I don't know why it's working now, but at least for me, it appears that the combination of SD increase and the flashing of the 2048.zip file did the trick. Neither one of them independently kept my settings. I'm not going to mess with it now that it's working the way I want it to, but perhaps someone else who hasn't been able to get their value to stick can try out the variation of both SD increase and a flashable zip to get it to work.
[Android Apps and Games] diego.stamigni:
Ok boyz, many thanks to all, my app now is at 1.3 and it should work on a large variety of devices.

Also, the auto set at boot should work well.

Sorry for the problems, but there are too many ROMs, diversity of file system tree and so on, caused by the awesome number of devices. At this point, I'm going to correct some function to be able to work on a big number of devices. Stay up.
[Android Apps and Games] zman519:
I tried Version 1 & 2 and its does not work on my SGS Epic with 2.1

Any ideas?
[Android Apps and Games] diego.stamigni:
Try my app.
[Android Apps and Games] zman519:
Your app seems to work. I went out last night after posting that and I did not reboot after trying ur app. I like ur app but I would just like to understand why the OPs methed does not work on my phone. I will have to do some more testing

Sent from my ComBadge..
[Android Apps and Games] markdj57:
Has anyone got this to work on a Galaxy S running Gingerbread v.2.3.3 ?

I have tried manually changing 77sdcard... file cache value and tried the app for changing cache but absolutely no difference in testing.
[Android Apps and Games] bswann:
Before: write speed- 6.1

read speed-11.3

after: write-5.7

read-17.9

Not bad, I didn't notice any difference in the slower writing speed as I just copied 4.3gb of music to my card and it only took about 5 minutes.
[Android Apps and Games] spleef:
downloaded the app from market sdincrease havent noticed any differences in anything but the number i set stuck after reboot. am runnin latest aospcmod on a sprint hero with a class 2 8 gig card

ran the test read is 14.9 write is 7.7 with 2048
[Android Apps and Games] verbuyst:
Is this "Hack" only for the SD card or also for the internal memory from the I9000? Because the internal memory is also seen as SD by android.
[Android Apps and Games] dpaine88:
Oddly enough...my OG Droid is having some pretty wack results.

Changing values via Root Exp and the app mentioned.

My WRITE speed is changing while my READ speed is NOT changin....

very weird as I thought only Read was supposed to change but it has been from 6.0-6.3 the entire time.

The write speed has varied from 6.0-10.0

Gallery seems smooth on any setting, even 128kb
[Android Apps and Games] PIRATA!:
Dut is the /default/ for what?? internal fyle system??
[Android Apps and Games] cyberdimitri:
working fine for me, great speed improvement!
[Android Apps and Games] PIRATA!:
Ok guys, I've made a CWM version of it that is working on Darky's ROM and that sets correct permitions.

I've made 3 version of it all @2048 (best solution):

INTERNAL SD @ 2048

INTERNAL SD + EXTERNAL SD @ 2048

INTERNAL SD + EXTERNAL SD + Default memory @ 2048

Related file locaton for the cache files:

INTERNAL SD chache file location >> /sys/devices/virtual/bdi/179:0/read_ahead_kb

INTERNAL SD chache file location >> /sys/devices/virtual/bdi/179:8/read_ahead_kb

Default memory chache file location >> /sys/devices/virtual/bdi/default/read_ahead_kb

The attached files have self understandable filenames so it will not be hard to pick the one you need.

The script filename is S97sdcardspeedfix and it will be installed in the scripts dedicated folder:

Scripts location >> /system/etc/init.d/

NOTE!:

If you realize that at boot you still have 128 in the related read_ahead_kb file (or files), try renaming the script's prefix to something different (99* or 00* or 77*) being careful not to change permissions.

If it is not loaded with any filename you try, you'll probably need to have a rom kernel that support script running at boot.

Cheers.
[Android Apps and Games] brainmaster:
Nice of you for providing those CWM zip files, but they wont work because there is no "mount system" command in the updater script, without this command, you can't extract the script successfully to system.
[Android Apps and Games] kulasito:
thanks a lot man!:)
[Android Apps and Games] PIRATA!:
Yes, it works.

Try it.

I have all the 3 read_ahead_kb files with 2048.
[Android Apps and Games] ardalaan:
Does it really work? :S

Flashing with CWM means what? I do Install From Sd card? or ?
[Android Apps and Games] PIRATA!:
Copy on Internal SD, then go in CWM and apply zip file...
[Android Apps and Games] EVERMIND:
Htc Magic stock 4GB SD (I think Class II)

128:

6,4

18,2

1024:

4,9

18,2

2048:

8,2

19,3

3072:

9,7

18.8

4092:

10.8

18.8

I set it to 2048, although I don't trust the benchmark at all, the gallery is working a lot faster, thx.
[Android Apps and Games] Anon9mouz:
whats the best cache size for the 16gb that comes with the epic plus idk what class it is
[Android Apps and Games] aortega:
Not workin' at all for me
[Android Apps and Games] PIRATA!:
With which version of CWM files?

Have you tried mine?? http://xdaforums.com/showpost.php?p=12811920&postcount=549
[Android Apps and Games] torq1337:
Good work m8, this script was added to www.MyGT540.tk

KEEP THAT GOOD WORK !
[Android Apps and Games] divxmaniak:
I don't know why, but after flashing the 2048.zip file, the value is still 128kb.

I'm using LCR-F2.0 on acer liquid.

Any idea?
[Android Apps and Games] PIRATA!:
What CWM file have you flashed?

Check my post to see if you have same folder structure as these files are for (you'll find it in my signature)
[Android Apps and Games] :
I dont really understand this.. by default (128) I got

write:8,8, read: 9,6

then changed to 2048 and got

write 13,7, read: 8.8

but whenever I repeat the test now, I get way lower speeds.. maybe I should stick to 128?
[Android Apps and Games] diego.stamigni:
Try the new version of my app, that I improved a lot (v. 1.3.2).

Many other supported languages will be added.
[Android Apps and Games] diego.stamigni:
Is there anyone who's interested to help me as tester for new alpha version ? Preferably someone that has problem with that one, specially where the app doesn't work in his device.

Please contact me: diego.stamigni@gmail.com
[Android Apps and Games] dandroidMe:
It's because this mod will:

1) Work moderately well in a very limited set of circumstances (gallery loads quicker for some people / poorly executed benchmarks appear faster)

2) Have a small negative the rest of the time (no-one has bothered to measured this*)

3) Have a very large negative effect once things get complicated (this is you)

*There's a big factory in China somewhere where they will have tried this and as a result didn't dare set it any higher than 128K. 128K is already huge in this application. Try making it smaller than 128K, something suprising may happen.

d.
[Android Apps and Games] astuermer:
Tried it on my Acer Liquid MT and set it to 2048.

Sadly, performance in games was poorer then.

Stuttering in games and so on.

Set it back to 128 and all normal now...
[Android Apps and Games] Gang_Jordan:
is this working with the [ROM] CM 6.1.3 ??

If this work ,, whats the best for my stock 8gb sd card ?

Default is 128

my current read is 18.8mb ,, write 6.6mb

:)
[Android Apps and Games] :
Well, thank you for that explanation !

For anyone interested: Im on a Desire with the newest InsertCoin.
[Android Apps and Games] jordonkobe:
my speed ,seems slow
[Android Apps and Games] techofweb:
very nice post

Me too blogged on this

www.techofweb.com/google/increase-sd-card-reading-speed-android-devices.html

Thanks'

ATUL
[Android Apps and Games] zeleboba:
Hmmm, flashed the update to 3072 but after reboot I see only 128. Although the default value was 4. Is there any way out?
[Android Apps and Games] Akusari:
Hello !

I wrote a little App to do this at once!

SD-Booster comes with a easy to understand UI and sets all stuff automaticly during the Android boot process. It's free. Just search on the market for "SD-Booster" by Akusari.

Have fun!
[Android Apps and Games] JarradDD:
Thanks for the app, tested on reboot and worked perfectly on sgs.
[Android Apps and Games] boojay:
Thanks man! I just tried your app and am noticing a positive difference. You rock the casbah!
[Android Apps and Games] MikesDroid:
The app seems to be working well. Got my Wintec 32GB card today and am getting good benchmark results. Cache set at 3072

​
[Android Apps and Games] Khizzer:
for g1

which onez the best for my g1 with 4gb sd card
[Android Apps and Games] pcphobic:
Hi I am using Motorola Milestone running on CRONOS Ginger ver.1.1 and have managed to applied the mod.

What you will need:

1) SD Tools (for benchmarking) - https://market.android.com/details?id=ales.veluscek.sdtools

2) The modified 99complete file - http://dl.dropbox.com/u/10439360/99complete (right -click, save link as... select file type as all files)

Note:

Credit goes to Brainmaster for providing the script at this posting http://xdaforums.com/showpost.php?p=12437265&postcount=1

I have edited the 99complete file with Brainmaster's script to use 2048kb cache.

#Increase SD card speed

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

then

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

fi;

What you will need to do

Copy the 99complete file to your SD card.

Then use Root Explorer to copy it to /system/etc/init.d/ folder to replace the original 99complete file.

Set the file permission of the 99complete file to follow the permission of the other files.

My SD Tools benchmarking results for my 8GB Class 2 micro SDHC card

Stock 128kb setting:

Write 6.8Mb/s

Read 19.2Bb/s

2048kb setting:

Write 6.4Mb/s

Read 32MB/s

3072kb setting:

Write 6.7Mb/s

Read 29.8Mb/s

My conclusion is that 2048kb setting yielded the best result for my Sd card.
[Android Apps and Games] guitardoc64:
Works fine on my Hero! nice app!
[Android Apps and Games] H3llstorm:
Did anyone catch glitterballs' post about "increasing readahead in a not completely retarded manner"? :cool:
[Android Apps and Games] PIRATA!:
In the file you link to download there are some extra lines (that I marked in red):

[COLOR=blue]#!/system/bin/sh[/COLOR]

[COLOR=blue]#Increase SD card speed[/COLOR]
[COLOR=blue]if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ][/COLOR]
[COLOR=blue] then[/COLOR]
[COLOR=blue] /system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;[/COLOR]
[COLOR=blue]fi;[/COLOR]

[COLOR=red][B]sync;[/B][/COLOR]
[B][COLOR=red]setprop cm.filesystem.ready 1;[/COLOR][/B]

What are they for??
[Android Apps and Games] Product F(RED):
Actually, Persnlmgr beat you to it:

http://xdaforums.com/showpost.php?p=11679107&postcount=36250
[Android Apps and Games] feefeeboomboom:
code for Samsung Epic 4g

here is the properly written init.d code

#!/system/bin/sh

if [ -e /sys/devices/virtual/bdi/default/read_ahead_kb ]; then
echo "512" > /sys/devices/virtual/bdi/default/read_ahead_kb;
fi;
[Android Apps and Games] PIRATA!:
PLEASEEEE!!!
[Android Apps and Games] Peter_Peterson:
Great work on finding that bottle neck!

Are there any other good SD card speed test?

I'd like to cross check my speed.

As far as is understand this tweak, it shouldn't increase the speed of transfers from my SD in my phone to my PC - am i right?

Btw Running CM7 nightlies on HTC Wildfire and my buffer was set to 4 ;) Not running on 2096. Gallery is definitely a way faster
[Android Apps and Games] InternationalPlayer71:
is the content of the file the same for different phone and firmware??..I've just create it..copy into init.d and set permissions but it is still not working..any help pls?? :confused:
[Android Apps and Games] cwill0303:
Me too, I have tried flashing and putting the file in the init.d folder and rebooting. Still 128, booo :( stupid phone
[Android Apps and Games] Techvir:
Samething here
[Android Apps and Games] blackroseMD1:
Yep, either way, it doesn't seem to stick for me.
[Android Apps and Games] mutant13:
it worked for me with 3072, class 4 32G..... brings up gallery much faster ! EvO 4g hdwr003
[Android Apps and Games] cwill0303:
Does the read_ahead_kb file have to have the same permissions? I cant get it to work, no way, no how! Probably something to do with the kernel that Im using with my phone. I tried that app that they were talking about and it didnt work either. oh well, maybe it can be written into the kernel.
[Android Apps and Games] JSmurfy:
om im trying this now.. seeing is believing i guess..

incase something goes wrong is there a way to revert back to orig settings??

-- Noob question -- how do i know what class my sd card is..

test 1.. before update -- write 1.6mb read 14.6mb

test 2.. 2048 kb -- write - 4.8mb read - 48.6mb

test 3.. 3072 kb -- write - 4.3mb read - 68.5mb <~~ interesting my write speed suxx lol

test 4.. 4096 kb -- write - 4.0mb read - 71.9mb -- correction -- google was updating

new results for this -- write 5.4mb read- 72.4mb -- tested third time got aboyt same results as number 2.. damm auto updater

safe to say i like the results from 2048
[Android Apps and Games] Unicorn9x:
marked for later use :D thanks!

yes! after changed to 2048 gallery load faster @@ omg!
[Android Apps and Games] JSmurfy:
ok -- i thyink noob question 2 --- will this work on a droid x and droid 2.. so i can share the files with my colleagues????
[Android Apps and Games] rickyt63:
This is what happened:

- Run SD Tools at default setting (128):

write = 6mb, read= ~20mb. (did not take screen shot)

- Manually changed read_ahead_kb from 128 to 2048 using root explorer.

- Reboot and verified that read ahead kb went back to default (128).

- run SD tools: write=~8mb-12mb; read= >200mb :)

- Reboot/run sd tools multiple times (setting still at 128 everytime) and get similar results as above !!! see attached.
[Android Apps and Games] ragarm:
Tried it. It didn't change for me. Mine still shows 128 settings.

Still is a great find.
[Android Apps and Games] JSmurfy:
r u running this thru alternate recovery will not work with CWM.. i think it was said in the first post.. or im just not understanding anything.. late nights sukk.. lol

if not make sure u r using alt recovery.. like amon -- if the fascinate/ galaxy s van do that.. not sure..
[Android Apps and Games] pflorin:
you can disable media storage using autostart manager or similar so that wont scan at all your sdcard and then install this

http://www.appbrain.com/app/scanmedia/com.humanrobot.scanmedia

create a desktop shortcut and whenever you put something new on sdcard scan on demand by clicking the shortcut

DO NOT PLAY WITH THIS IF YOU DONT KNOW WHAT YOUR DOING. IM NOT TO BE HELD RESPONSIBLE IF SOMETHING GOES WRONG BY YOUR HAND.
[Android Apps and Games] mutant13:
I used Amon_RA to flash this, it worked great , checked and it changed it to 3072
[Android Apps and Games] musashiken:
Cool, was about to ask if Amon_Ra works :)
[Android Apps and Games] brainmaster:
Some of the ROM chiefs have hardcoded this values in the init.rc, 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 - has pointed this out here.

Which Super SD Card are you using?
[Android Apps and Games] sheepdog elite:
Trial by fire contribution

Samsung fascinate, 2.2 rom super clean (2.9.2), voodoo (ext4) kernel.

flash via CWM, edits validated by checking the file referenced in the OP

open app, test, close app, open app, test

Stock card, stock settings

6.4 w, 11.5r

4.6 w, 12.9r

1024 script

2.3 w, 13.2r

5.4 w, 14r

6.1 w, 14.6r

2048 script

2.6 w, 11.5r

5.5 w, 14r

5.5 w, 13.8r

3072 script

2.7 w, 13.5r

9.4 w, 14.4r

9.7 w, 13.9r (promising results, testing more)

10.6 w, 13.3r

7.2 w, 13.6r (Not sure if i'm trusting such high write speeds)

3.2 w, 13.8r (Seems more honest)

7.8 w, 13.2r

7.4 w, 14.1r (I think I like this one)

4096 script

2.6 w, 11.4r

5.4 w, 14.6r

6.0 w, 14.1r

5.4 w, 13.0r

4.5 w, 14.0r

Strange my write seemed to spike on the 3072 script. It all doesn't seem to stack up.
[Android Apps and Games] brainmaster:
Updated the post 1 with the infos for those who don't have the CWM, or if the hack don't work for you.
[Android Apps and Games] brainmaster:
You probably have SD Card Class 2. Its slow, you can't get it better.
[Android Apps and Games] Johnsondr80:
Agreed

+1
[Android Apps and Games] iBowToAndroid:
I can't get my read speeds to increase no matter what I do. I've tried manually changing it, flashing the zip, SD-Booster, and SD Speed Increase. Tried 2048, 3072, and 4096. Write speeds are about 1 MB slower on 2048, but read speeds never change- I have never recorded a read speed over 20MB with SD Tools. Incredible, CM7.0.1 - anyone else???
[Android Apps and Games] H3llstorm:
Yep - http://xdaforums.com/showthread.php?t=1032317 :cool:
[Android Apps and Games] iBowToAndroid:
OK but then why has everyone else seen improved results??
[Android Apps and Games] H3llstorm:
1. Everyone else hasn't.

2. Benchmarks that test retrieving info from the larger cache will show significantly higher scores. Benchmarks that actually test read speed? Not so much.
[Android Apps and Games] bgumble:
How can I undo, if I flashed the .zip from 1st post via recovery?

I can't delete /system/init.d/77sdcardspeedfix

cause my HTC Desire is S-On protected.
[Android Apps and Games] PIRATA!:
PLEASE PLEASE PLEASE..this is very important! I'm making new scripts and I need to knwo this!!!
[Android Apps and Games] prboy1969:
How do you check what kind of card you have. The Class?
[Android Apps and Games] prboy1969:
Never mind, downloaded the app from the market. Haven't tested yet. But seems to be hella faster. Thanks : )

Shifted from neverland using XDA Premium App
[Android Apps and Games] Ficus*:
thanks a lot!