SD Card reading speed fix

Search This thread

-Arturo-

Senior Member
Oct 7, 2007
693
19
it might be but i think that it uses much ram...

Iq1d just to clarify a few things If we changed the cache to for example 2048 kb would that mean that the system would have 2MB of ram less? If so we could test other cache sizes for example 1024 that's only a 1 MB of ram and I would be willing to sacriface it for the sake of higher sd writing/reading speeds.

Here's one of the tests from the thread
"My speed test result on HTC Desire CM7 RC2, Kingmax Class 10 8GB

128 default
1) 7.5, 13.5
2) 5.2, 16.2
3) 18.6, 18.7
4) 18.8, 20.9

4096
26.2, 53.9
17.5, 62.9
19.7, 59.6
26.7, 57.2
27.8, 55.7

3072 - before reboot
23.6, 46.7
17.6, 70.2
24.3, 36.5
23.6, 66.1
15.9, 67.2

3072 - after reboot
6.2, 51.6
13.5, 23.3
5.4, 17.4
11.5, 86.4
16.7, 41.6
25, 50.9
23.6, 51.7



I think it is worth trying I suppose it would speed up the devices of users who have data on sd card.
 
Last edited:

daedric

Senior Member
Dec 24, 2006
2,258
468
Porto
To gain extreme stability, we must use data on sd img/part.
If we can improve sd reading speed at the cost of 1/2 mb of ram, it would be worth it IMHO.
 

Aiex Rlder

Member
Aug 12, 2010
49
1
i really hope this works, as the only way to have stable data is on SD but the phone runs really really slow this way.

EDIT: I installed SD tools and ran it a couple of times, getting speeds of around 5mbps write/ 10mbps read on my class2. With these speeds my kaiser runs painfully slowly, wondering if the script will make any noticable difference.
 
Last edited:

-Arturo-

Senior Member
Oct 7, 2007
693
19
i really hope this works, as the only way to have stable data is on SD but the phone runs really really slow this way.

EDIT: I installed SD tools and ran it a couple of times, getting speeds of around 5mbps write/ 10mbps read on my class2. With these speeds my kaiser runs painfully slowly, wondering if the script will make any noticable difference.

Results from one of the users from the thread.

Using the 2gb Class 2 that came with the phone.

Default:
W: 4.2
R: 9.3

2048kb:
W: 4
R: 26.2

3024kb:
W: 5.1
R: 33.8


The card read speed gains are mind blowing.
 

Aiex Rlder

Member
Aug 12, 2010
49
1
Results from one of the users from the thread.

Using the 2gb Class 2 that came with the phone.

Default:
W: 4.2
R: 9.3

2048kb:
W: 4
R: 26.2

3024kb:
W: 5.1
R: 33.8


The card read speed gains are mind blowing.


are you using data on SD? does your kaiser feel faster? because i don't know if i've done it wrong but my system is really slow all the time and apps are even slow :(
 

-Arturo-

Senior Member
Oct 7, 2007
693
19
are you using data on SD? does your kaiser feel faster? because i don't know if i've done it wrong but my system is really slow all the time and apps are even slow :(

You misunderstood me. This arent my results I just posted them here. The resulrs where taken from the original sd card fix thread.
 

Krazy-Killa

Senior Member
Mar 14, 2009
345
40
kz.game-server.cc
Would our phones benefit from this script?
Any brave soul care to try it?


http://xdaforums.com/showthread.php?p=12437265#post12437265
Hm, could be useful for people who have fried NANDs ... *cough*

Though what really needs to improve is write speeds. Read speeds would be fine if /system is on NAND, but write speeds needs to improve as that's where our slowdowns come from.

On average, our Kaiser's SD Card reader writes on average 4.8Mbps, where it writes about 8-12Mbps depending on how much actual RAM is available.

Granted we could really use the increase in read speeds, but what good is fast read speeds if the SD card dogs down due to it having a very slow write speed.
 

daedric

Senior Member
Dec 24, 2006
2,258
468
Porto
ok, OC 480, data on sd partition. micro sdhc 4gb CLASS 2. Custom rom based on Gingerbones.

2048:
Write- 5.7
Read- 23.4

128(default):
Write- 5.7
Read- 12.1

4096: (OC 550)
Write- 6.1
Read- 11.5
 

Aiex Rlder

Member
Aug 12, 2010
49
1
hmm i tested this by just manual editing the value which resets after reboot.

4gb class2 card with no OC. sys on nand, data in partition using not so super froyo.

128:
write: 4.8 read 11.4

2048:
write 5.2 read 24.2

not sure if this improvement in read speed actually speeds up my kaiser. do you think a class 6 card would speed it up much?

not sure exactly how to implement it permanently, i tried manually adding a file but it didn't seem to work. though altering this value isn't too bad as i don't reboot often.
 

daedric

Senior Member
Dec 24, 2006
2,258
468
Porto
There's no caching on write aparently (probably to avoid lost data).
So writes must be mostly dependent on class + SD reader/writer driver.

Acording to wikipedia:
Class 2, 2 MB/s, slowest for SDHC cards.
Class 4, 4 MB/s.
Class 6, 6 MB/s.
Class 10, 10 MB/s.

(this is write speed, MegaBYTE).
So... either we are getting bogus results, or our cards are a little above the quoted class.
 

Aiex Rlder

Member
Aug 12, 2010
49
1
There's no caching on write aparently (probably to avoid lost data).
So writes must be mostly dependent on class + SD reader/writer driver.

Acording to wikipedia:
Class 2, 2 MB/s, slowest for SDHC cards.
Class 4, 4 MB/s.
Class 6, 6 MB/s.
Class 10, 10 MB/s.

(this is write speed, MegaBYTE).
So... either we are getting bogus results, or our cards are a little above the quoted class.

i think the classes are minimum speeds, and it seems other users are getting higher speeds than their class. how did you implement this script btw?
 

daedric

Senior Member
Dec 24, 2006
2,258
468
Porto
Read 1st post. Follow Link. Read whole 1st post there. There's a sample script there.
You must create a file in /system/etc/init.d/ named 99something_you_chose (should begin with 99, the files are executed in order, we should have our script run last).
So... either you remount /system with read+write permissions, and put the file there, or edit the androidinstall.tar and put the file there, or a androidupdate.tar with the file there.

Or...

https://market.android.com/details?id=com.vaelek.sdspeedboost
 
Last edited:

-Arturo-

Senior Member
Oct 7, 2007
693
19
Read 1st post. Follow Link. Read whole 1st post there. There's a sample script there.
You must create a file in /system/etc/init.d/ named 99something_you_chose (should begin with 99, the files are executed in order, we should have our script run last).
So... either you remount /system with read+write permissions, and put the file there, or edit the androidinstall.tar and put the file there, or a androidupdate.tar with the file there.

Or...

https://market.android.com/details?id=com.vaelek.sdspeedboost

@Daiedric

Did you notice any speed improvements in data read?
 

drfno1

Senior Member
Dec 11, 2007
61
4
Kansas
Wow, class 2 4GB sdhc /system on ext4 /data on ext4, Krazy 2.6.32.9, cynMod7,
Rogue Tools OC 529

Before
write 1.8
read 9.1

After mod to 2048 with Root explorer
write 2.9
read 20.1
 

Aiex Rlder

Member
Aug 12, 2010
49
1
hmm, drfno1, so do you have system and data on your SD card? is your kaiser quite slow then with write speeds of 2MBbps :S

i can't decide whether to buy a higher class SD card and if that will improve my kaiser's speed.
 

drfno1

Senior Member
Dec 11, 2007
61
4
Kansas
Been playing with this config only a few days with wifi only. My understanding is that the ext4 file system speed is what makes the system very usable. The only thing I find frustrating is the time it takes to boot and become stable. I say try it on your current sd first. The boost in reading seems to help starting apps and using file managers.
 

-Arturo-

Senior Member
Oct 7, 2007
693
19
Been playing with this config only a few days with wifi only. My understanding is that the ext4 file system speed is what makes the system very usable. The only thing I find frustrating is the time it takes to boot and become stable. I say try it on your current sd first. The boost in reading seems to help starting apps and using file managers.

I don't like this sd tools app at all. It gives me some ridiculous readings. I have a 6 gig class 4 card with 5 GB fat32 partition, the app shows that the size of the partition is 4,2 gb. Also I get speeds of around 1.9 writing and 4.5 reading...this can't be right. I have just tried another app and the results were as follows writing speed 5.1 and reading speed 10, this seems more like it. Unfortunately after applying the script I don't see any changes in results still around 5ws /10 rs.