yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] cr0wnest:
I did read, its a placebo effect. But even if its all bull it did help to improve my gallery and photo load speeds. In the past it takes seconds to load the gallery, in some cases it just gets stuck there and i need to reopen the app again. After the fix theres virtually no load time at all and it always worked.

So what im asking now is... Now that my gallery is back to the way it was before the fix, am i out of luck?
[Android Apps and Games] dandroidMe:
Totally out of luck. If there's one thing this points to it's that there is perhaps an inefficiency in the Gallery application - for example it's repeatedly opening, reading and closing some file which is >128K in size. However, that's pure speculation and something I have no intention of getting into :)
[Android Apps and Games] cr0wnest:
Okay, so the gallery app is just stubborn then. ;)
[Android Apps and Games] Irontiger:
Hello,

I have a Galaxy S I9000 and tried to create the 99sdcardreadfix. It doesn't matter which of the two methods from post 1 I try, the value in read_ahead_kb will be set to 128 kb instead of 3072.

I'm running Android 2.2.1 and used the latest build of root explorer. The permissions of the 99sdcardreadfix file is set to 777.

What did I do wrong?

Hope for help.

Greetings

IT
[Android Apps and Games] PIRATA!:
Hi!

I am very interested in this because i have a Kingston 32Gb SDHC Class4 microSD card in my Samsung i9000 Galaxy S.

In attach there is my screen capture score..that I really can't understand if it is normal or low....and that I can't understand if it was really ended or not (but the toast screen asking for saving the image came out...!!)

I would like to understand what should be a good setting for my sdcard and if the cache dimention that I will set will decrease some other cache or memory space from somewere else because of this giving space to sd card cache.

Thank you.
[Android Apps and Games] H3llstorm:
Want further proof. See how much faster QuickPic is compared to the "3D" Gallery. :cool:
[Android Apps and Games] gorgy76:
Did you explore the root script in your system whether the values your input really stick. Maybe the values revert back to stock reflashing won't help if you wouldn't know if the cache values aren't sticking in some cases a simple reboot will solve the issue. Did you do it manually or with CWM?
[Android Apps and Games] webmastir:
^ +1. My fav gallery app by far. Whether you try this bs tweak or not, that app will hands down own any other gallery app out there(speed wise).
[Android Apps and Games] Logseman:
I'm not convinced that this fix works (I've done it manually as per the instructions). Here you have my observations with the different speeds, in a Galaxy S I9000 with a Kingston SDCard class 6, 32 GB.

However, I'll try flashing each file with CWM and I'll notify you if things have changed.
[Android Apps and Games] d3s3rt_eagle:
This is *NOT* an sd read speed fix. It could be called only "gallery speed improvement" :D
[Android Apps and Games] alexkruyer:
Works for me
[Android Apps and Games] webmastir:
Yep. Read last few pages of this thread. Proof it is pretty useless..
[Android Apps and Games] gorgy76:
really? did you know the mechanics on how this mod works or just thinkering what other says.
[Android Apps and Games] Logseman:
There is no cake.

The cake is a lie.

The cake is a lie.

The cake is a lie.

The cake is a lie.
[Android Apps and Games] markdj57:
I have a galaxy s running stock XXJPK Gingerbread and could not get this to make any difference.

I tried editing file directly to change 128 to 2048 and rebooted and while the 77speedfixmod file kept the same value the speed was the same. Also tried changing to 99speedfixmod but phone created a new 77speedfixmod file with default values and 99 file was unopenable ??

Anyway, I have a class 6 32Gb sandisk, write speed at 7-8Mb/s read speed at 11-12Mb/s
[Android Apps and Games] andy31021:
thank your sharing:D
[Android Apps and Games] gorgy76:
fyi. this mod does not increase your sd card read or write. what it does is increase the cache allocation in your ram so that when you need to open a file in your sd it is already cache there thus minimizing buffering time and increase file reading that's why this mod is called by the op as read ahead. did you look the script cache values in your root system if the cache values your flashing is sticking and know what the default values in there? speed test doesn't do a damn it is an erratic and fluctuating testing tools mostly not for galaxy s for the time being as the developer states.
[Android Apps and Games] PIRATA!:
PLEASE!!!!
[Android Apps and Games] PIRATA!:
do you mean the 77sdcardreadfix FILE not folder...

I mean...I have Galaxy S and will try this fix (even if I still don't know which one for my 32gb microsd..!) but you say that those settings does not stick there...
[Android Apps and Games] brainmaster:
Guys, thank you for all the attention that this thread is getting.

I am not the one that came with this idea, I also didn't stated that in my OP. If you look on XDA you will find other threads with the same theme/issue.

But this "SD Speed Boost" App from market made me curious if this can be done without buying that App.

I did a little search on this issue and found which values need to be changed manually to get this done.

So, I provided the CWM zip files and the information what to do and how to do it.

About everyone saying, "Its a lie", "Its a Myth", "Its a placebo effect" - Are there any negative side effects?

if yes - give me some proof, besides - you can easily revert it back.

if no - I am happy that my pictures are loaded faster, and that is a fact.

No one is forced to do this, so calm down.

I found something, and wanted to share that with the XDA community, and that is the spirit and the idea behind the XDA - sharing the knowledge, not bashing.
[Android Apps and Games] Irontiger:
If you can get it to work, please tell me how.. as far as I understood it, I don't need CWN etc., if I create the script by myself and copy it to init.d. But after a reboot the cache size is again 128kb instead of 3072...
[Android Apps and Games] diego.stamigni:
I write an App that include these things. Read more here: http://goo.gl/H79j4
[Android Apps and Games] Smurph82:
Sorry if I did not read this earlier but I have a rooted stock Evo I have changed the the file manually and it does work. Only thing is I have create the script manually, then deleted, and flashed it from recovery and neither make the change stick after a reboot. I don't know if this is the problem but the Stock Evo does not have a /system/etc/init.d by default. I was wondering if you could place this script into the init.rc or init.supersonic.rc that is in the Stock Evo by default. Great thread.
[Android Apps and Games] PIRATA!:
..&...

Same for me on Samsung Galaxy S: I apply the CWM patch in first post for 2048KB, but after reboot I still have 128KB.

I have checked this using diego.stamigni's SD Increase app and manually viewing the file /sys/devices/virtual/bdi/179:0/read_ahead_kb with RootExplorer.

Any help???????
[Android Apps and Games] Irontiger:
Thanks!

Am I right, that I have to start an apply the app-settings after every restart?

Could you please add a 3072 kb option? Would be great!

IT
[Android Apps and Games] GchildT:
I'm glad i found this thread. SD Increase makes a substantial difference.

Thanks!
[Android Apps and Games] PIRATA!:
Yes, I can confirm this.

Any way to set the new KB setting at boot using a script way like it is written in first page??? I mean a working way... :)
[Android Apps and Games] v941726:
none of this is working for me. even sd increase didnt do it. i give. i have a class 10. its fast. my gallery flies at 128.
[Android Apps and Games] PerGon:
It does not really increase the read/write speed of the SD card, but it works when we access multiple times the same thing.

That is the definition of Cache.

brainmaster, may not have explained everything, but the fact is that accessing the gallery or so, is faster.

Does it, in theory, make the read/write of the SD card faster? No :o

Does it 'look' faster? Yes :D
[Android Apps and Games] PIRATA!:
..&...

FOUND A SOLUTION if flashing with CWM does NOT WORK!!

Probably you are using a coocked rom like me. I use Darky's, and in the /system/etc/init.d folder I have all the script files named with S70*, S98* and S99* at the beginning of their names (I have 3 scripts in there!), instead of 77* or 99* as described in first post or as files in the CWM zips in first page.

So I had to rename the 77sdcardreadfix file that was installed using the 2048KB CWM zip file insto S97sdcardreadfix ...and now it works!! ;)
[Android Apps and Games] Irontiger:
Well.. it doesn't work for me.

But: The script should work even without CWM or am I wrong?
[Android Apps and Games] madmatts87:
Great find, thanks!
[Android Apps and Games] piens:
Hi, I tried to get it working on my HTC Desire, which does not have a /system/etc/init.d

I flashed the SDCardSpeedFix3072KB.zip and now there is an etc/init.d with the 77sdpeedfix file, but it does not work automatic after a reboot. I can remove the speedfix file and the init.d directory but it is recreated after every reboot! How do I repair that, ie get rid of this file and directory for good, since it doesn't work anyway on my system
[Android Apps and Games] PerGon:
So we agree that the first post is leading people to believe that the read/write speed really increase. It's true, it doesn't.

And it's also true that there is no way to test if the gallery is faster in a factual way. But there is always the empiric way.

I've just done the test....

Without the hack i've done:

- Reboot the phone

- open the galery

- sent an sms

- open the galery

- listen 30 second of music

- open the galery

Then I aplied the hack and:

- Reboot the phone

- open the galery

- sent an sms

- open the galery

- listen 30 second of music

- open the galery

I've listen the same music, and sent the sms to the same person with the same text. So the conditions seem to be, not equal, but similar. Yeah, I know it's not a very good test, but you get the point!

Have I seen any diference? Maybe is just the placebo efect, but yes, it does seem to be faster, way faster.
[Android Apps and Games] gorgy76:
haven't you clearly read and understand the op's 1st post it's clearly states there that this mod is for caching data from sd to phone memory it is not misleading if you dig enough what the op write. read it again, understand and you will know. it does not states there that it speed up your sd card performance the only thing misleading is the title bro. well if someone is dumb enough not to read and understand what's written there he will be mislead.:D:D:D:D
[Android Apps and Games] Sigkill-9:
I too was a little skeptical, but after lots of testing (rebooting, sending text and mms messages, sd card speed tests, gallery load time tests) I can confirm that this fix indeed works.

Since the fix, I've noticed my boot time is quicker, gallery loads faster, and overall phone performance seems snappier.

Simple sd card read/write benchmark results:

Before applying this fix:

Write speed: 2.2mb/s

Read speed: 14.2mb/s

After applying this fix:

Write speed: 7.6mb/s

Read 32.2mb/s

Quadrant benchmarks have also increased considerably.

This fix performed on a Samsung Epic 4G, rooted android 2.2 ext4 o/s
[Android Apps and Games] PerGon:
I'm also a disbeliever, thats why I've tested it. And since yesterday that I've noted some diference in performance. So... I'll keep the fix.

In any case, if I find any downside, I will post it here.
[Android Apps and Games] mikron24:
these are my numbers

I have a Droid x with Lexar 32 gig class 10

I have done nothing and here are my speeds

write speeds 10.1 mb/s

read speeds 19.2 mb/s
[Android Apps and Games] rwunnink:
I used your strategy, but doesn´t work

If i run from script manager i get an error

syntax error: "fi" unexpected (expecting "then")

something not okay, please help ?
[Android Apps and Games] a1yet:
thanks for the reply :-)

i understand now

ty

Ric H. (a1yet)
[Android Apps and Games] YOSEFE:
I have tried the mod on my DZ, I also bought the one found on the Market recommended somewhere in here, sorry to say that I don't see any significant change, the repeat tests are not yielding specific or consistent results.

I am however happy that the mod and the app work for others.
[Android Apps and Games] jcj77d:
would this be the same as using the app "SD Speed Boost" from the market, its adjustable from very low to 4mb, w/ option to set on boot.?
[Android Apps and Games] akanishilin:
Test with the latest version of SD Tools (v1.5):

w (mb/s) r (mb/s)

128kb (default):

6.2 22.8

6.1 23.3

5.3 23.2

5.4 23.6

5.9 23.2

1024kb:

5.9 24.3

5.8 24.1

6.1 24.1

6.8 23.8

6.0 23.7

2048kb:

5.5 24.2

5.3 23.9

6.2 23.6

6.4 23.9

6.0 23.8

3072kb:

6.2 23.8

5.9 24.4

5.9 24.1

6.6 24.0

5.4 24.3

4096kb:

5.6 24.0

5.7 24.9

6.1 24.1

5.8 23.2

5.8 23.6

Quite different results compare to my previous test using SD Tools v1.4.

The read speed was more than 70mb/s with the cache file of 3072kb, but now it has a similar speed with the default size. It seems not to work, very odd.

http://xdaforums.com/showpost.php?p=12507799&postcount=89
[Android Apps and Games] dandroidMe:
Possibly the difference can be explained by one of the below...

What's in this version:

1. Version 1.5

2. more accurate read/write test.

3. automatic detection of external sd cards.
[Android Apps and Games] mikron24:
Hay I have Droid x that is stock and I noticed the app called "SD Increase" requires Root access

what if i root temporarily when I go back to stock will the rule still apply

or maybe there is some other solution here that does not require root ?
[Android Apps and Games] DanneMCA:
Just remove the last "then" in line 5. Like this:
[Android Apps and Games] theted:
it works kinda

i didnt see any major differences but i just wondering wait rom are you using? and is there anything else that you would say might help with increasing the speed of which the sd card is read?
[Android Apps and Games] rwunnink:
Tnx

Also noticed that a my copy had carriage returns in it.

Furthermore de directory system/xbin did not have the file echo

system/bin had

so now the script is working, tnx !

but, i do not feel any noticeable difference, as I do followed this topic thoroughly with all cons en pro's for this script which only seems to work on sd tools ;)

however, i just wanted the script to work ;) an learn about it
[Android Apps and Games] amiraras:
Thanks.

Really really appreciated for such great help and post.

Thanks you bery much fro the through explanations...

Enthusiastically,

amiraras.

:rolleyes:

:)
[Android Apps and Games] PerGon:
@SimonVT

With the latest release of the SD Tools the benchmark difference is not noticed. The developer has improved the tool so it test the performance of the SD Card and not the performance of the system.

As someone write a couple of posts ago, now the difference cannot be seen in the benchmark tool.

As I wrote on my first reply the trick does not improve the SD read/write (as we can see with the latest version of the SD Tools), but, depending of the use of the phone, it improves the overhall performance. It's a Cache, it improves performance depending of the use we give to the SD card.
[Android Apps and Games] kleinmischa:
HTC Desire with GV 1.8:

Writing Speed:20,2 MB/s (avrg. of 5 tests)

Reading Speed: 8,8 MB/s (avrg. of 5 tests)

standard HTC stick ^^
[Android Apps and Games] jbarcus81:
Write speed 5.9 MB/s and Read 19.0 MB/s ... write speed probably limitation of the SD card I would imagine.. great tweak!!
[Android Apps and Games] thebozzer:
Arrrrrgggg.....damit......I wish I had seen this post before, I wrote about the nice little app called SD SPEED BOOSTER in the LeeDroid forum......I was dubious about the SD card speed boosters but I decided to download one as it was only a Euro.

I must admit, I was surprised with the result. My Desire stock setting is 128, so I changed it from 128 up in the following values 256, 1024, 2048, 3072 and 4096, then did three tests at each value using SD tools and took an average read and write result.

The results showed that there was little to no impact on write speed. This was all done with a class 4 Samsung SD card, so the max write speed should be 4mb/s and it was clocking in around the 4.7mb/s so not bad.

The read speeds were a different story. At the stock setting, reads maxed out at 13.6mb/s, but as you increases the setting the read speeds increased and peaked at 53.1mb/s using 3072. With 4096 the write speeds dropped back off.

While a lot of this is theoretical, I was surprised to see that it made a huge difference to loading times both on thumbnails (gallery) and games.

The thumbnails used to take ages to regenerate but now it's almost instant.

Just using 'Lets Golf 2' as an example at least halved the loading time.

I have a class 10 PNY on its way so that should be even better again!

Thanks for the info OP, even though I paid for it, the net outcome seems to be the same!
[Android Apps and Games] vaitony:
So all we have to do now is download the market apps, SD Tools and SD increase? And all fixes should be done?
[Android Apps and Games] highdefdinardo:
I must be retarded, i rooted my phone but i cant figure out for the life of me how to do this on a samsung galaxy s 4g. ive been reading up on this for a few days, and i still feel lost.
[Android Apps and Games] gohamstergo:
those should be all you need, yeah. and please try not to quote the ENTIRE op next time, mmmk?
[Android Apps and Games] gorgy76:
just download the sd increase in the market and install the app. your phone still has no CWM available yet at the moment so you can't flash the zip file from the OP. You can either navigate to root files in your phone and change the script in there but from my point of view it is somewhat complicated for you to do so just leave it there. Try to dig more knowledge about your phone first before you modify it to prevent future headaches along the way.
[Android Apps and Games] vaitony:
When you say applied the fix, do you mean all the SDCardspeedfix1024KB.zip and do we need to apply all of them? or just the one we want like the 1024 or 2048 one. I have a OG-Droid running Chevy SS5.2GB overclock to 1200LV kernel.
[Android Apps and Games] vaitony:
Sorry about that. Thanks for your help. So can you please tell me what the SDCardspeedfix2048KB.zip is, should i install this too?
[Android Apps and Games] dakost:
This may sound very ignorant, but I am wondering

Why not also change?

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

Come to think about it why not also change?

/sys/devices/virtual/bdi/default/read_ahead_kb

Couple the above with the list on this post

http://xdaforums.com/showthread.php?t=808522

and then it seems 179:0 is the internal sdcard while 179:8 is the external sd card.

Maybe then default is what will be applied if a new/different sd card is incerted?
[Android Apps and Games] gorgy76:
when you flash the cwm zip patch in the OP those you mentioned above will automatically changed to those value specific to the patch you flash. 170:0 and 179:8
[Android Apps and Games] siirus09:
Just adding my 2 cents, I tried this speed increase for my stock SD card and I do notice an increase in access to the card. Works well!
[Android Apps and Games] diego.stamigni:
Ok boyz, now my App has AutoBoot setting. Enjoy
[Android Apps and Games] Irontiger:
Wow, that was fast, thanks ;)

The only thing missing for me is an 3072 kb option. Would that be possible too? Please!

Greetings

IT
[Android Apps and Games] dakost:
Hi thanks for the confirmation.

That is what I tried, I have manually changed all three, 179:8, 179:0 and default. Later should be able to add the chnages in init.d.

Its just that 179:8 and default where not explicitly mentioned, neither included in the CWM zip files. I suppose some people don't have an external sd so they are not required.

Since we are into this, if one changes read_ahead, why not also change nr_requests (lets say from 128 to 256)?

By the way the 2nd method of changing read_ahead (Version 2) shouldn't work on all androids, on galaxy s the path is

/sys/devices/platform/s3c-sdhci.0 (probably internal)

/sys/devices/platform/s4c-sdhci.2 (probably external)
[Android Apps and Games] gorgy76:
I just flashed the cwm and didn't change it manually both values where automatically changed to my desired. it is included in the first post of the OP I get it from there (attached zip files from first post). by the way mine is also a galaxy s variant a captivate.
[Android Apps and Games] dakost:
In that case i guess it works and i am missing something, probably the links i guess. I'll have a closer look. Thanks.
[Android Apps and Games] akanishilin:
I'm afraid so.:p
[Android Apps and Games] gkenny1991:
app in market worked like a charm ^^
[Android Apps and Games] PIRATA!:
...&....

I have used the 2048 patch and then checked my /sys/devices/virtual/bdi/179:8/read_ahead_kb

and /sys/devices/virtual/bdi/default/read_ahead_kb files and they are both to 128KB!!!

Are you sure that the /179:8/ is for

EXT-sdcard

??? And wnat about /default/ ??

What is that for???????

And about the code...what about editing the script as this??:

#!/system/bin/sh
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;

if [ -e /sys/devices/virtual/bdi/179:8/read_ahead_kb ]
then
/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:8/read_ahead_kb;
fi;
if [ -e /sys/devices/virtual/bdi/default/read_ahead_kb ]
then
/system/xbin/echo "2048" > /sys/devices/virtual/bdi/default/read_ahead_kb;
fi;

Thank you!
[Android Apps and Games] Irontiger:
So would the right code for the SGS look like this?

mmcfolder="/sys/devices/platform/s3c-sdhci.0/mmc_host/mmc1"
cd $mmcfolder
folderlist=`ls -1`
mmcresult=`echo $folderlist | grep -o '\bmmc1:\w*' | sed 's/mmc1://'`
echo 3072 > /sys/devices/platform/s3c-sdhci.0/mmc_host/mmc1/mmc1:$mmcresult/block/mmcblk0/queue/read_ahead_kb
cd /

mmcfolder="/sys/devices/platform/s4c-sdhci.2/mmc_host/mmc1"
cd $mmcfolder
folderlist=`ls -1`
mmcresult=`echo $folderlist | grep -o '\bmmc1:\w*' | sed 's/mmc1://'`
echo 3072 > /sys/devices/platform/s4c-sdhci.2/mmc_host/mmc1/mmc1:$mmcresult/block/mmcblk0/queue/read_ahead_kb
cd /

And this has to be put into init.d as 99sdcardreadfix?

Thanks

IT
[Android Apps and Games] TRusselo:
for galaxy S (well my captivate)

all i had to do was rename 99sdcardreadfix to S99sdcardreadfix either in the zip before flashing or in init.d after flashing

then it worked on reboot. Though, Ive mentioned it several times in this thread and others in the captivate forum.
[Android Apps and Games] Irontiger:
Well... it does not for me. As I understand post#1 I don't need CWM... but It wont work, no matter if I call it: 99sdcardreadfix, S99sdcardreadfix, S97sdcardreadfix or S97sdcardspeedfix, but thanks anyway.

@diego.stamigni: Now if I disable "remeber on boot" (to test the script), the option isn't saved, so I had to uninstall SD increase to set the value back to 128 on boot.
[Android Apps and Games] piens:
Remove again

I flashed the CMW file. How do I remove it again?
[Android Apps and Games] MKuiter:
For me the 1024 kb setting gives me the smoothest (and snappier) experience on my Desire with Froyo MIUI and a 8 GB class 6 card. 2048 kb gave me very poor write speeds (about half) compared to the standard 128 kb setting. 4096 kb was the fastest for me but seemed too fast; I saw some stuttering here and there that I didn't see with the other possible settings. Whether it works or not, it gave me the snappy overall experience on Froyo MIUI that you would get when you switch from Froyo to Gingerbread.
[Android Apps and Games] PIRATA!:
Please go in the folder /system/etc/init.d/ and list here each file name you found there.
[Android Apps and Games] Irontiger:
Currently there aren't any files... the last I tried was S99sdcardreadfix. I removed it a few hours ago, because it didn't work. There weren't any other files.