yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] razze76:
Do you have root access? Terminal Emulator works for me, but not Astro
[Android Apps and Games] webmastir:
yeah i did this via term emulator as well, since astro wouldn't edit the file for me either
[Android Apps and Games] itisagoodname:
x2

Edit file in Root Explorer (GREAT app)

4.3/17

to

8.4/29.9

Adata class 10 16 gig card @ 4194 cache
[Android Apps and Games] kollock:
EVO with Class 10 8gig kingston, went 4 meg cache...

6/12

10/105

gallery finally acts how it should
[Android Apps and Games] brainmaster:
No extension, just 77sdspeedfix
[Android Apps and Games] opher50:
Thats wierd ... I've looked into the file 77fix that was in my phone after flashed via CWM and it has 2048 set already .. rebooted my phone and still the benchmark will show exactly what i see ... slow -_-

3.1MB/s write

12 mb/s read ..

is it possible that my sd card class is very low? -_- it came with the phone from the cellcom company .. il try another fix ..!
[Android Apps and Games] brainmaster:
If it's Class 2 SD Card, that is all what you will get.

This hack works at best if you have fast SD Card.
[Android Apps and Games] melvinchng:
It Is class 2. 2 means more than 2mb. You can try a tool named 'sd speed boost', it let you set up to 4mb. It is very speedy for me!
[Android Apps and Games] opher50:
I understand ... is it possible to exchange internal SD card?

EDIT : IM using now the 1024 one .. it is much better ! amazingly :] Quadrant also gave me higher score XD
[Android Apps and Games] elgubbo:
thanks for this!

just one question: will this also affect the read speeds of the ext2/3/4 partition on my sdcard or only the fat part?

regards :)
[Android Apps and Games] brainmaster:
Why use the tool that costs money, that does the exactly same thing as my hack?
[Android Apps and Games] brainmaster:
It affects the whole Card.
[Android Apps and Games] JustinBlue:
4096k on my 8gb transcend card made it go up from:

Write: 2.1MB/s

Read: 24MB/s

to:

Write:~3MB/s

Read: ~70MB/s

HTC HD2 running Pongster's HyperDroid GBX
[Android Apps and Games] melvinchng:
Hmm, it speed up my class 4 sd from 5.5writing (2mb) to 10.2mb writing (4mb).

[Someone gave me the apps]
[Android Apps and Games] cHarley04:
There is nothing to be "afraid of" in changing the buffer size. A buffer size that's too big or too small will only slow down the phones R/W performance, it won't harm anything.

Simply try all of the supplied settings and choose the one that gives you the best performance.

And YES, flash by putting it on the SD card and using the "Install Zip From SD Card" command in CWM.
[Android Apps and Games] rnscotch:
I have a Scandisk 8gb class 4... 2048 KB Cache size performs best for me..

Before:

Write: 7.2MB/s

Read: 47.7MB/s

After:

Write: 8.1MB/s

Read: 70.8MB/s
[Android Apps and Games] Cuspide:
when you say /system/etc/init.d

init.d is a folder, or a file to create.. ?

I have no such file/folder in system/etc/init.d :-(
[Android Apps and Games] brainmaster:
Init.d is a folder. Maybe it is somewhere else on your phone. You have to look for it.
[Android Apps and Games] Cuspide:
no init.d on my whole system files... and if i create the init.d folder, it does nothing with the script in it... :(

Xperia X10 Android 2.1
[Android Apps and Games] jimbobalu:
What permissions are 777? I want to use this on my Nook Color and CWM does not seem to work and I would like to use Root Explorer to place the file and set permission but need to know what 777 means.

Found what it means, basically everything checked, correct?

But I also have no init.d folder.

Worked great on my Nexus One, my write speed didn't change, 10MB/s but my read speed increased from 19MB/s to 63MB/s. Lexar 32GB class 10.

Thanks
[Android Apps and Games] :
Thanks, this script is incredible! I went from 10.6 mb/s to 22 mb/s on a class 4 card - gallery loads pretty fast now.
[Android Apps and Games] sniperkill:
Might be just my phone (samsung epic galaxy S ) but the script doesnt seem to stick.

I've found that you gotta copy and paste the 77sdcardreadfix folder in the init.d folder in order for the hack to stick past the reboot. At first I ran the cwm script that the OP provided us with, with no changes to the scoring using SD tools, then I installed the 1024 using the directions in the OP using Root Explorer and pasted the file in the system/etc/init.d folder and it worked past the reboot. So just a heads up for Galaxy S owners, You guys might run into this problem, so just follow the instructions for people without cwm thats in the OP. Just create a folder using root explorer, and put the commands as shown in it, name the folder 77sdcardreadfix, and copy and paste it under system/etc/init.d and set the permissions to 777, and you'll be good to go...
[Android Apps and Games] sniperkill:
NO, the "read" "user" and "group" boxes are checked, and the "Execute" "user" and "group" are checked, so 4 boxes total are checked in the permissions window. All the rest are left unchecked... Your init.d folder is under system/etc/init.d.... If you still cant find it, it's gotta be somewhere on your phone, just be patient and look for it...
[Android Apps and Games] Vpr2006:
Thanks for this script! I'm running CM6.1.1 on my Nexus One and flashed your 2048 for my 16Gb and the read speed went from 11 MB/s to 37 MB/s! The gallery app was starting to be really slow lately since I went from a 4Gb card to a 16Gb, but now it's super snappy!
[Android Apps and Games] Billbo1970:
I know this has been mentioned, but I'm wondering if anyone has found more info on this? I'm using an ATT Captivate, and SD Tools is only testing my internal 16GB of memory. It is not testing my external 8GB card.

Bill
[Android Apps and Games] thenags:
Yea, I'm rooted running CM7. I edit the file and save it. Then go right back in and it's back to 128
[Android Apps and Games] kbrn:
Ok I tried to fix mine with the 4096KB zip

I did everything as instructed

change the read_ahead_kb value to 4096

rebooted to recovery

flashed the4096.zip fix

Rebooted and checked my sd card speed but was reading the same

So I went back to /sys/devices/virtual/bdi/179:0/read_ahead_kb with root explorer and it went back to 128 ..

So what am I doing wrong?

Thanks!
[Android Apps and Games] webmastir:
did you try doing this:

in /system/etc/init.d/

create a file 99sdcardspeedfix (with 777 perms)

#!/system/bin/sh
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "4096" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

reboot & see what happens?
[Android Apps and Games] kbrn:
I checked and the file is there already..

I opened with root explorer and It reads like this

#!/system/bin/sh
#
#Created by Calkulin

READ_AHEAD_KB="256"

if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ] ; then
echo $READ_AHEAD_KB > /sys/devices/
virtual/dbi/179:0/read_ahead_kb
echo "SD card read ahead kb SET to
$READ_AHEAD_KB"
fi

I'm lost now lol

EDIT: the file was named 04sdcardspeedfix

I moved it as a backup just in case

created the file you suggested

rebooted and bam!!! Same results back to 128

I get 4.4 write and 14.4 with 128..
[Android Apps and Games] d3s3rt_eagle:
This tweak is only a placebo, read speed isn't increased. Only read cache is increased and this influences sd tools because it reads many times the same data and so it shows that great speed.

I've made a test using dd to measure read speed, copying an 80 MB file to a tmpfs (on ram). I used an LG P500 and a kingston class 4, that were the results (tmpfs is mounted on /data/ciao):

echo "128" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
# dd if=/sdcard/cyanogen_thunderg-ota-eng.mik.zip of=/data/ciao/ff
161178+1 records in
161178+1 records out
82523597 bytes transferred in 2.007 secs (41117885 bytes/sec) 41 MB/s

echo "256" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
# dd if=/sdcard/cyanogen_thunderg-ota-eng.mik.zip of=/data/ciao/ff
161178+1 records in
161178+1 records out
82523597 bytes transferred in 2.073 secs (39808778 bytes/sec) 39 MB/s

echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
# dd if=/sdcard/cyanogen_thunderg-ota-eng.mik.zip of=/data/ciao/ff
161178+1 records in
161178+1 records out
82523597 bytes transferred in 2.035 secs (40552136 bytes/sec) 40 MB/s

echo "4096" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
# dd if=/sdcard/cyanogen_thunderg-ota-eng.mik.zip of=/data/ciao/ff
161178+1 records in
161178+1 records out
82523597 bytes transferred in 2.098 secs (39334412 bytes/sec) 39 MB/s

So the best value to set is 128, bigger values are simpy useless.
[Android Apps and Games] Ci5co:
I had the same problem with my SGS I9000, and this is what i've done (perhaps it can help you too):

open RootExplorer and go to system/etc/init.d (i found there a file named 77sdcardspeedfix)

mount R/W

rename this file to S99sdcardspeedfix or another name so that it is placed at last position. (i said that 'cause i have a lot of files there and i saw in another forum that this file has to be at bottom of that list).

reboot

Then go to see the read_ahead_kb and it would be the new value :cool:
[Android Apps and Games] webmastir:
aw very interesting & makes sense looking at your results. thanks
[Android Apps and Games] Broetchen:
Anybody being able to help me?
[Android Apps and Games] OniKyanAE86:
Corrupted Memory Card after doing speed fix

Well I tried the memory card speed fix on my Sprint Epic 4G and after about 20 minutes of doing the modification, I noticed that when my phone was ringing, it no longer was the normal ring tone I have set. I then saw a notification on my screen that made my heart drop into my feet, "Need to Format Card......." My Epic was no longer reading my Memory Card (Lexar 32GB Class 10). I then tried the memory card on my laptop and it also asked to format before it could be used. I was pissed, but then remembered that I have a recovery program for storage devices, crossed my fingers and ran it, found all my files on the memory card, extracted them, then formated my card. The phone and memory card are working fine now, but I don't think I will try this mod again.
[Android Apps and Games] Jclintcox:
Great work..... thanks for posting this

Sent from My Touch 4G CM7 using the XDA App
[Android Apps and Games] d3s3rt_eagle:
I think this tweak has not damaged your sdcard, maybe your filesystem got corrupted for another reason, but i agree with you not to try this tweak: it's simply useless ;)
[Android Apps and Games] kbrn:
I give up too... lol and after reading your post Hell nah!! I won't

Sorry about your card bro!
[Android Apps and Games] OniKyanAE86:
I'm very sure it was the speed mod that did something since prior to the mod the sd card worked perfectly fine, I never had an issue o/s or memory card wise. 20 minutes after the mod my sd card's boot sector got wiped so it couldn't be read triggering the please format before using messages from my phone and laptop. But to tell the truth, I did not feel any real world speed increase from the mod. Going from a Class 2 memory card to a Class 10 did though. With all the apps installed on my SD card, the Class 2 would take about 3-5 minutes to fully load all the apps on my phone's application menu, with the Class 10 it takes about 30 seconds. So those are my findings from what I have tried.
[Android Apps and Games] v941726:
i'm beginning to wonder. i change mine and nothing happens. check to see if it changed back. it doesn't. not til reboot. so why is this? i think your right. i think those speed tools don't work right on some phones is all
[Android Apps and Games] v941726:
wasn't working for me anyway. but soon after changing the size, i couldnt read some files. refreshed on laptop and all is good now. i didnt flash the mod, thank goodness, just modded the file.

i'm interested in the recovery program you used though anyway.
[Android Apps and Games] gorgy76:
actually it is also hardware wise. I have a captivate which has a good processor speed, since the rom I have only has stock 128 kb caching to the memory so its caching is capped on that size since it is a small size all it would do is buffer back and forth to load larger files so thats causes slight lag, when you increase the caching size bigger files that you want to open are already cached to the memory so it minimizes back and forth buffering that makes a file load faster. however if your phone processor is limited you would not notice any noticeable difference so hardware place an important role also with the speed you want to achieved this tweak only maximizes caching of files to your memory it does not increase your phone speed. I have done this mod but haven't encountered any bugs or problems all it does is increase file acces to my sd card. So it's not the mod itself, maybe there's other file on your phone that makes conflict with the tweak.
[Android Apps and Games] fidorulz:
Tried this on my Desire HD running RCMix HD v5.8. Using a class 10 32gig patriot card.

I modified the values via file explorer but after flashing the script it reverts back to the default 128kb

Any ideas?
[Android Apps and Games] ZoZo-:
Before and after on the G-Tablet

I've reverted back to the default 512 on this rom tho, because of all the "it's only a placebo effect" :p
[Android Apps and Games] MaluNoPeleke:
On my Motorola Atrix there is no "/sys/devices/platform/msm_sdcc.2" folder or a "/system/xbin/echo" binary but a "/system/bin/echo" binary and also the init.d script should be placed in /etc/init.d if I am not totally wrong :)
[Android Apps and Games] :
I 100% support the statement made in your post.

The people who think this is a speedup are mistaken because they don't understand the concept of page cache.

The second run will always be faster than the first, unless you flush the cache between runs.

Testing with dd shows 0% improvement on sequential reads between between 128 / 2048 / 4096 readahead.

I'm sorry to burst the bubble, but this 'fix' is a total placebo.

For info, read ahead is actually useful for spinning disks where there is an access latency, and therefore it is beneficial to read additional sequential sectors which haven't been requested yet by the operating system, along with the data that has been requested.

Flash memory has a negligible access latency so read ahead doesn't make any difference because there isn't any need to read ahead.

All this 'fix' will result in is increased RAM usage by cache memory. Lol.
[Android Apps and Games] stavros86:
on 4096 works flawless on nexus s, instant opens library and photos, faster loading of games, 1 day no problem at all :D
[Android Apps and Games] :
Which is exactly what the people boasting of a miracle speedup are doing.

That made me lol.

http://youtu.be/W8qcccZy03s
[Android Apps and Games] gorgy76:
I know all about caching stuff, if this is a placebo effect why would my gallery load faster and files in sd card open in an instant? I tried reverting back and forth the difference is realy noticeable. Clue pls....
[Android Apps and Games] :
I can see from your previous post on this thread that you are confusing disk readahead with page cache, which makes me doubt your knowledge on 'caching stuff'.

The 2 may be linked but they are very different. The OP also mistakenly refers to readahead being cache.

The likely reason for the percieved speed increase is because the increased readahead value is causing more unrequested data to be read into the page cache, which means it is being read by Android from RAM instead of the SD, which gives you your percieved speedup.

The page cache will get substantially larger with an increased readahead, which will reduce your available RAM to the detriment of the rest of the system.

Your SD card read speeds will not improve, at all, which was what I stated in my post.
[Android Apps and Games] iinga:
I think this "fix" will die once sd tools is updated to measure read speeds properly.

Sent by Owl Post
[Android Apps and Games] OniKyanAE86:
I will PM you as soon as I get home from work for the recovery program.
[Android Apps and Games] OniKyanAE86:
Hmmmmm, you talking about processor speed or memory card speed? I was talking about Memory card speed and how my memory card's boot sector was erased by this mod..... I know this mod has nothing to do with processor speed...... that's why I use SetCPU for the processor speed.
[Android Apps and Games] gorgy76:
Yes I am reffering to the ram to cache files and that was my point. I'm not totally referring to sd because hardware wise you must use class 10 card if you want faster write or read since I want faster read increasing cache would allocate more ram space for my file load illeminating more buffering back and forth from my sd card. If my cache size is capped at 128kb it would buffer more. I have a ram usage monitor widget although it uses more but not that huge. Well if your phone has less ram I would think twice in using the mod.
[Android Apps and Games] gorgy76:
I'm talking both because they play hand in hand. put a class 10 sd card in a low speed processor and it is still slow. My point is many have done this mod without problem and only 1 I have known so there must be a file inside your phone that makes conflict with the mod which in turn made your sd corrupted.
[Android Apps and Games] Snoere:
this patch is not a miracle

Funny thread ;)

This patch is not a big miracle. It may improve sequential reading of small files, but it doesn't improve your overall experience.

There had been many, many explanations and warnings - but it seems most people don't care about it...

Let's sum it up:

1) The fix is meant for increasing the read-ahead cache. Why should this improve write speeds?

2) Use your brain (or Google, Wikipedia,...): it's impossible to get reading speeds above 10MB/s with a microSDHC. That's a technical limitation. Point.

3) Nearly all testers rely on just one program. Despite even the programmer of the app is stating that his tool doesn't show proper values when running with cached files, people keep posting their "awesome" results showing technical impossible speeds.

Testing with other methods or other tools made it clear: there's not much real improvement.

Read this post, that post and especially this post [dd is a Linux copy tool]. And there are many other posts like those.

Conclusion: this patch may improve reading small files (eg gallery thumbnails), but it doesn't improve your overall experience.

If you want fast file access, buy a good Class 10 card.
[Android Apps and Games] Moss17:
I don't have init.d in system/etc

Though i have init.goldfish.sh

Does that count?
[Android Apps and Games] TRusselo:
we thank you and your 8 posts of experience on XDA!!...
[Android Apps and Games] TRusselo:
.sh is a script. not a folder.
[Android Apps and Games] gorgy76:
Funny Thread

seems other people here are not happy with the small improvements this mod had and keeps on bragging and referring this as a funny thread:D. If they are not happy with this thread why keep on coming and posting negatively. I'm just happy how this mod gave even with slightly faster sd card read...If this mod won't work for you keep it to yourself because no phone are the same and would react differently with every tweaks or mods.:rolleyes::D
[Android Apps and Games] Ci5co:
See what i said here http://xdaforums.com/showpost.php?p=12675858&postcount=390.
[Android Apps and Games] cr0wnest:
Hmm weird now my gallery's performance is back to normal, like before i did the flashing. But it was blazing fast last night when i was testing it. I just ran the SD tools benchmark again and the high speeds are still there.
[Android Apps and Games] pathologo:
Be advised, you have absolutely no clue at all what you're talking about.

Better listen to the more educated people and stop being so pigheaded with your dangerous half-knowledge.
[Android Apps and Games] samy.3660:
I have R.A recovery 2.0.0 so should i flash the zip with it ??
[Android Apps and Games] rwunnink:
on Xperia X10 i used script manager but i got an error:

5: Syntax error: "fi" unexpected

(expecting "then")

can anyone advise ?
[Android Apps and Games] a1yet:
it must not be needed on the Atrix

i get crazy speeds on the internal SD card

heres my speeds

write speed 11.2 MB/s

read speed 175.2 MB/s

there is 16 GB internal storage and it is reading off

that card and explains the higher read speed

anyone know a way to get SD Tools to test me other card ?
[Android Apps and Games] Nagrom Nniuq:
This guy is correct. Don't dis him. Listen to him. You are not going to get a massive boost in your card via a script...
[Android Apps and Games] Auridran:
It doesn't read off anything other than the "internal SD" if your phone has one. The author of the program has stated this.

Also, as has been posted before, read speeds very far above 20MB/s on an actual microSD (not Galaxy S internal, or most phone's irreplaceable memory) are not possible. The class refers to the minimum sustained write speed the card can attain in MB/s, and most SD cards seem to have at a maximum double the write speed they're capable of in read speed. That means anything above 20MB/s is not an indication of actual performance, especially if your card is not class 10.

Your read speed is a limitation of the card. Want proof? Hook your phone up to your computer and run a disk benchmark like CrystalDiskMark on your SD card using the sequential read/write benchmark. You won't be getting anywhere near what your "tweaked" SD Tools benchmarks are, because they're artificially inflated.
[Android Apps and Games] Joschi75:
The class doesn't refer to the maximum sustained write speed but to the least sustained write speeds for a card in a fragmented state.
[Android Apps and Games] Auridran:
Yeah, I edited my post. Didn't mean that :)
[Android Apps and Games] iinga:
Or use other android working apps such as Antutu benchmark tools. It even notes in the description of SD Tools that very high read speeds are a bug, but people gloss over that and continue to post their high read speeds.

MYTH BUSTED over the past 2 or 3 pages!

Another myth busted:

This "fix" does not affect WRITE speeds at all
[Android Apps and Games] cr0wnest:
Any idea why my gallery is back to loading slowly again? Its like the hack was isnt there. The SD Tools benchmark still shows that the hack is still working because my read speeds could hit up to 70MB. Reflashing the script and installing a different kernel didnt work.
[Android Apps and Games] dandroidMe:
Yes. Some data that Gallery used happened to be near some other data on the card that was already loaded and those both luckily were to in the same (128/1024/2048) read ahead buffer. Now, something has moved and you're out of luck again. Plus the device driver is now reading 4x as much data as it really needs to on every access of the card, which will slow it down a bit.

d.
[Android Apps and Games] cr0wnest:
Damn thats not good. Any way around this? Reverting back to 128kb then flashing back to 3072kb didnt help at all.
[Android Apps and Games] dandroidMe:
No. What you see here is a perfect example of:

a) using a speed test program which has entirely predictable behaviour. In these circumstances, you can tweak any number of parameters to get it to show spectacular speed increases

vs

b) What happens in the real world, where file access is entirely unpredictable and there are complex interactions between the application, file system, device driver and physical media. In this real world, percieved and actual access times will change.

d.
[Android Apps and Games] pathologo:
Actually READ the last few thread pages, damnit! You are still believing the myth!
[Android Apps and Games] dandroidMe:
Just to confuse things :)

This can actually speed up writes to the card in a limited set of circumstances - those being that that while writing a file the file system will have to occasionally have to go read the file system meta data (e.g. the FAT). Depending on which way the wind is blowing, you may get lucky and have some of that meta data loaded into the read ahead buffer and so save yourself some time.

Usually though you'd expect the file system to maintain it's own dedicated cache of the meta data for the purposes of performance improvement. The device driver read ahead buffer is not the place to be doing this.

d.