[TUT] Bump up SDcard speed - Sony Ericsson XPERIA X10 Mini

android read and writes SDcard really slow
even if you got a class ten card this really sucks
why is it so slow?
the cache size to read and write the sdcard is set to 128kB on our devices
can we change this?
yes we can
this speeds are with my sdcard they are different for each sdcard
128 kB: <- original
Write: 4.1 MB/s
Read: 11.2 MB/s
1024 kB: <- sucks
Write: 4.5 MB/s
Read: 18.1 MB/s
2048 kB: <- write spees is best
Write: 6.7 MB/s
Read: 35.5 MB/s
3072 kB: <- overal speed is best
Write: 6.4 MB/s
Read: 45.8 MB/s
4096 kB: <- also sucks
Write: 3.9 MB/s
Read: 35.3 MB/s
now you got proof you can make this better
Code:
open root explorer
go to "/system/etc" and open "hw_config.sh" with Text Editor
paste this line at the end
"# sd speed fix
echo 3072 > /sys/devices/virtual/bdi/179:0/read_ahead_kb"
without quotes ofc
quick note i will include this in my rom updates
Enjoy!

Nice find owain :thumb: A bit off topic, if i'm not mistaken, there's some pieces inside there about LED keyboard with light sensor automation. Can it be implemented directly into you ROM? CMIIW but If i'm outdated about your CM progress then i'd say sorry i'll try 3.6 now..

hansip87 said:
Nice find owain :thumb: A bit off topic, if i'm not mistaken, there's some pieces inside there about LED keyboard with light sensor automation. Can it be implemented directly into you ROM? CMIIW but If i'm outdated about your CM progress then i'd say sorry i'll try 3.6 now..
Click to expand...
Click to collapse
nah i've tried that

Thank you!, brainmasters methods were no good for me.
The improvements are fantastic, absurd this isnt this stocked.

Whats the default permissions for "hw_config.sh"?

owain94 said:
android read and writes SDcard really slow
even if you got a class ten card this really sucks
why is it so slow?
the cache size to read and write the sdcard is set to 128kB on our devices
can we change this?
yes we can
this speeds are with my sdcard they are different for each sdcard
128 kB: <- original
Write: 4.1 MB/s
Read: 11.2 MB/s
1024 kB: <- sucks
Write: 4.5 MB/s
Read: 18.1 MB/s
2048 kB: <- write spees is best
Write: 6.7 MB/s
Read: 35.5 MB/s
3072 kB: <- overal speed is best
Write: 6.4 MB/s
Read: 45.8 MB/s
4096 kB: <- also sucks
Write: 3.9 MB/s
Read: 35.3 MB/s
now you got proof you can make this better
Code:
open root explorer
go to "/system/etc" and open "hw_config.sh" with Text Editor
paste this line at the end
"# sd speed fix
echo 3072 > /sys/devices/virtual/bdi/179:0/read_ahead_kb"
without quotes ofc
quick note i will include this in my rom updates
Enjoy!
Click to expand...
Click to collapse
Nice Owain!
Waiting for updates in your ROM!

dj_deez said:
Whats the default permissions for "hw_config.sh"?
Click to expand...
Click to collapse
#ls -l /system/etc/hw_config.sh
-rw-r--r-- 1 root root 1443 Aug 1 2008 /system/etc/hw_config.sh

miniCM RC1??

death_syndrome said:
miniCM RC1??
Click to expand...
Click to collapse
Maby you can make a sentence then we might understand you -.-''
Sent from my U20i using XDA Premium App

owain94 said:
Maby you can make a sentence then we might understand you -.-''
Sent from my U20i using XDA Premium App
Click to expand...
Click to collapse
.
.
lol . . does t work with miniCM RC1 rom?

5.0 Write
43.4 Read!!!!
I SD is on steroids!!!
Thanx!!!

death_syndrome said:
.
.
lol . . does t work with miniCM RC1 rom?
Click to expand...
Click to collapse
it works on every rom stock cyanogen sense

do u know same app to test it?

I used SD tools
Sent from my U20i using XDA Premium App

@Owain----on my class 4,8GB Transcend card-----I get write/read speeds of 11 and 16 by default.Upon tweaking as suggested by you,the reading speed goes up to around 21 whereas the writing speed actually drops(just a wee bit though)!

sathkartha said:
@Owain----on my class 4,8GB Transcend card-----I get write/read speeds of 11 and 16 by default.Upon tweaking as suggested by you,the reading speed goes up to around 21 whereas the writing speed actually drops(just a wee bit though)!
Click to expand...
Click to collapse
I posted 3 different cach sizes in first post by my tests try the other sizes by just replacing the 3072 with another it may work better with your sd card
Sent from my U20i using XDA Premium App

@Owain--thanks.
for the records--the best results for me were at 4096 when the speeds went to 10.9/38.4 compared to 12.4/15.9 for default.

thanks owain, at last found the simple configuration.
tried on my x10 mini, got improvement.

thx owain
huge improvement on stock 2gb memory card

Hey, I tried all the different values 1024, 2048, 3072 etc.
I get worse results in write and marginally better in read.

Related

[Q] Nice Tweak for SD card Cache, not Working on X10, Dev Help Required :)

I whish to use this tweak...
http://forum.xda-developers.com/showthread.php?t=1010807
i can't find the init.d folder to push the script in... Someone knwo where ?
Yperion said:
The script works only with cyanogens mod roms, i cant post on the dev thread so plz write it for the other users.
Regards.
Click to expand...
Click to collapse
If you don't have CWM then you can do following:
Make a file with this content:
Version 1:
#!/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;
Version 2 (If the Version 1 is not working for your ROM - credit goes to rafpigna):
# Tweak mmc read-ahead - rafpigna -
mmcfolder="/sys/devices/platform/msm_sdcc.2/mmc_host/mmc1"
cd $mmcfolder
folderlist=`ls -1`
mmcresult=`echo $folderlist | grep -o '\bmmc1:\w*' | sed 's/mmc1://'`
echo 128 > /sys/devices/platform/msm_sdcc.2/mmc_host/mmc1/mmc1:$mmcresult/block/mmcblk0/queue/read_ahead_kb
cd /
Change the red marked number from 128 to what you need (example 2048) and 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.
just flash one of the links he posted
It doesn't work with xrecovery ... allready tried.
Sent from my X10i using XDA App
then i have no idea sorry
it worked
Just pushed to /etc/init.d/ set permissions on all checked and reboot
Sd seems to be more fast to open pictures !
Testing with sdcard speed test my result is:
5Mb/s to write and 15 Mb/s to read
Tks
/system/etc/init.d
You have such a folder on x10?
Sent from my X10i using XDA App
28spawn said:
it worked
Just pushed to /etc/init.d/ set permissions on all checked and reboot
Sd seems to be more fast to open pictures !
Testing with sdcard speed test my result is:
5Mb/s to write and 15 Mb/s to read
Tks
Click to expand...
Click to collapse
Pls mate..can you upload the file??
Cuspide said:
You have such a folder on x10?
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Yes! what firmware are you running??
2.1 0435. Bitsnaker ...
I look in system/etc/
No init.d folder ... not even with a search ... :-( strange....
Maybe i bypassed the bootloader ... joking of course
Sent from my X10i using XDA App
Cuspide said:
2.1 0435. Bitsnaker ...
I look in system/etc/
No init.d folder ... not even with a search ... :-( strange....
Maybe i bypassed the bootloader ... joking of course
Sent from my X10i using XDA App
Click to expand...
Click to collapse
ahahah..So you are a rock!!! XD
I don't know why you don't have this folder...Maybe you can create yourself..i have only 1 file inside it!! Anyway i try to create the file and copy it to init.d folder but it's not working!! Any help pls??
I all ready tried to create that folder... put the script in, changed the permission... not working...
Really annoying it really boost sd card reading, noticable whan you open gallery for example...
Cuspide said:
I all ready tried to create that folder... put the script in, changed the permission... not working...
Really annoying it really boost sd card reading, noticable whan you open gallery for example...
Click to expand...
Click to collapse
I think there is an error in the text code:
#!/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;
I can't get the code to work automatically but it works!
Row Labels Average of Read Average of Write
128 18.067 13.033
2048 62.171 13.793
3072 74.785 13.505
4096 69.367 13.595
with 3072 it even hit 90MB/s sometimes!. thx u mate.
28spawn said:
it worked
Just pushed to /etc/init.d/ set permissions on all checked and reboot
Sd seems to be more fast to open pictures !
Testing with sdcard speed test my result is:
5Mb/s to write and 15 Mb/s to read
Tks
Click to expand...
Click to collapse
wanna share your file ?
"Yperion" wrote me in PM:
:The script works only with cyanogens mod roms, i cant post on the dev thread so plz write it for the other users.
Regards.[/QUOTE]
hmm. i was able to run thru recovery. but i dun feel ALOT of diff. just ABIT faster only.
SD tweeks
mrljlamon said:
wanna share your file ?
Click to expand...
Click to collapse
There is nothing to share here I guess. You are looking at wrong file. there si no system/etc there is only etc/init.d when you use root explorer.
however you can edit your values by
- Manually change read_ahead_kb from 128 to 2048, 3072 or 4096 using root explorer.
i am getting 6 mb/s read and 40 or 50 mb/s write
not bad finding
i was able to increase reading speed from ~10Mb to 18Mb with a script file
the problem with this is that after a reboot it returns to 128Kb
but HELL i had a script so everytime i reboot just need to press one button
atintan said:
There is nothing to share here I guess. You are looking at wrong file. there si no system/etc there is only etc/init.d when you use root explorer.
however you can edit your values by
- Manually change read_ahead_kb from 128 to 2048, 3072 or 4096 using root explorer.
i am getting 6 mb/s read and 40 or 50 mb/s write
Click to expand...
Click to collapse
and witch values you use to get those high values?

SD-Card Speed Up!

Speedup your SD-Card reading Speed as follow steps:
1-Download and install "SD Tools" app that attached below and run to inform your sdcard write and read speed before applying speedup patch.
2-Download and install "Script Manager".
3-download "sdcardspeed.zip" file and Move "sdcardspeed.sh" file into your SD-Card.
4-Run "Script Manager" program and select "sdcardspeed.sh".
in opened page: fill the "Run as Root" and "Run at Boot" check boxes and Save!
5- Reboot the phone and after reboot "Allow" superuser!
6-Run again the "SD Tools" and compare your SD-Card speed after applying the patch.
Progress in your SD-Card speed is depend on your SD-Card Class.
Why not asking for SU after ReBoot!? (Here's explaing of the problem!): Thanks to GlossGhost
Lol, it really does something, Read: 4.5 MB/s
thanks good staff for my x10 i will test it later
the clock on the before shot shows that it was taken after the other
There's actually a new app called "SD increase " that will take care of the script for u
Sent from my X10i using XDA App
ermm... is there really a need to open a new thread when someone has already posted in our X10 General section where it should belong?
increase sdcard read/write speeds
anyway, good effort though...
GlossGhost said:
Lol, it really does something, Read: 4.5 MB/s
Click to expand...
Click to collapse
mine - 9.6 mb/s before
now is 10 mb/s
how to Allow SU after reboot?
microsd SU16G
cache set to 3072
before write 5.8 read 17.2
after write 6.5 read 26.1
Before 6.7
17.7
After 5.6
19.2
MicroSD SU08G
before
2.6
14.7
after
4.6
25.1
thanks
nonentity said:
ermm... is there really a need to open a new thread when someone has already posted in our X10 General section where it should belong?
increase sdcard read/write speeds
anyway, good effort though...
Click to expand...
Click to collapse
You can see downloads number of the thread
Why would my write speed go up but not my read speed? In fact my read is slower than the write!
Sent from my X10a using XDA App
great find!!
before write 1,2 read 12
after write 1,2 read 13,8
nice!!
my results WITHOUT the script:
1 - Write: 3.2 MB / s Read: 12.1 MB / s
2 - Write: 5.4 MB / s Read: 13.3 MB / s
3 - Write: 9.1 MB / s Read: 14.5 MB / s
4 - Write: 10.1 MB / s Read: 14.9 MB / s
5 - Write: 11.0 MB / s Read: 14.6 MB / s
6 - Write: 10.4 MB / s Read: 14.6 MB / s
Now with the script:
Firstly, the script did not do anything!
Message from GScript "sdcardspeed.sh: / system / bin / echo: not found"
this happens because I have echo in the xbin folder
After changing the file "read_ahead_kb" manually to 3072,
1 - Write: 9.9 MB / s Read: 32.6 MB / s
2 - Write: 10.3 MB / s Read: 29.8 MB / s
3 - Write: 10.3 MB / s Read: 30.3 MB / s
Conclusion,
first we need to make 3 or 4 tests without the script to get the real speeds, and secondly, only the reading speed increased (is already good enough).
Question: How does "read_ahead" could increase the writing speed?
Why not asking for SU after ReBoot!? (Here's explaing of the problem!)
memazy said:
mine - 9.6 mb/s before
now is 10 mb/s
how to Allow SU after reboot?
Click to expand...
Click to collapse
Okay, so I think everybody know's that when you turn on the phone, it's "Preparing SD Card" so the Script Manager is starting earlier than the sd card (i know the card is not starting but preparing). So the manager starts, and searches for the script, but there is NO sd card (because the sd card is preparing...) and what? Loading the script FAILS! That's why the manager don't ask for SuperUser permissions. That's why You have to move the "sdcardspeed.sh" to the INTERNAL MEMORY (I suggest moving it to the root folder of the INTERNAL MEMORY where are all the folders: system, sdcard.. etc) then you do all the instructions below.
Here's MY instructions:
1-Download and install "SD Tools" app that attached below and run to inform your sdcard write and read speed before applying speedup patch.
(attached @ first post!)
2-Download and install "Script Manager".
(attached @ first post!)
3-Download "sdcardspeed.zip" file and Move "sdcardspeed.sh" file into your SD-Card.
(attached @ first post!)
4-Use something like Root Explorer and move the "sdcardspeed.sh" file to the root folder of the INTERNAL MEMORY.
5-Run "Script Manager" search for the "sdcardspeed.sh" in the INTERNAL MEMORY not at the EXTERNAL MEMORY!" and select it.
6-In opened page: fill the "Run as Root" and "Run at Boot" check boxes and Save!
7- Reboot the phone and after reboot "Allow" superuser!
8-Run again the "SD Tools" and compare your SD-Card speed after applying the patch.
____________________________________________
That's from me
Nice one
Before:
5.9 and 15.5
After
9.6 and 46.8
Read speed increased by 3 times!!! Good one mate..
sony ericsson E10i (x10 mini)
To what cache/buffer size does this script increase the stock value?
My sd has the fastest speeds with 2048kb...
Does this work for 2.1?
I've changed the cache size manually with Root Explorer and I've seen a huge jump in my read and write speeds.
The only issue is that the change I made goes back to default when I reboot my phone.
I've seen other MODs but it required for me to have 2.2, which is why I'm asking.
vitas0y said:
Does this work for 2.1?
I've changed the cache size manually with Root Explorer and I've seen a huge jump in my read and write speeds.
The only issue is that the change I made goes back to default when I reboot my phone.
I've seen other MODs but it required for me to have 2.2, which is why I'm asking.
Click to expand...
Click to collapse
there's a guid in this thread
http://forum.xda-developers.com/showthread.php?t=1013554
before:
write : 4.0 mb/s
read : 11.9 mb/s
after:
write : 1.3 mb/s
read : 99.4 mb/s
something must be wrong... write speed 4x less and read speed 9x more

[Q] change boot

hi all, i'm pretty new to android development.
i'm wondering if there is a method to boot up from "hard disk" instead of using the SD when using ubuntu on TF201.
there is some test made with stock rom and "dd" with /dev/zero and /dev/null.
Code:
From Gentoo chrooted into Android ( Stock TF201 ROM ) [ 16GB sd class 2 ]
sd read : 16.3 MB/s
sd write: 03.3 MB/s
hd read : 26.7 MB/s
hd write: 11.2 MB/s
i've extracted the initrd image of the 1st post and i think that modify the 'init' script ( and the scripts inside script/ folder ) can mount different partition on /root dependig on user choice.
so the question is 2:
is it possible to change the partition table of the TF201?
is it possible to ask which partition mount into /newroot (or /root) ??
Thanks in advance,
tux_mind.

[Q] Looking for HDD speed tests results (80 or 101G9)

Hi,
I have a 80G9 (was HDD 250GB, but now moded SSD), and I'm looking for original HDD speed test results .
With SSD it's aprox. : 23 MB/s write and 15 MB/s read..., (done with "SD Card Tester" and a 2GB test file)
Is this good ?
Thanks

what is difference between inner storage and sd card ?

are they both NAND Flash storage device? the only difference is that the inner one is fixed to the device and difficult to remove from device, while the sd cards are removable, any other differencees?
dalvikna said:
are they both NAND Flash storage device? the only difference is that the inner one is fixed to the device and difficult to remove from device, while the sd cards are removable, any other differencees?
Click to expand...
Click to collapse
yes both are nand device .......now a days flash nand technology is used in solid drives. NAND has so many advantages over NOR technology like higher densities, larger capacities, and lower cost. It has faster erases, sequential writes, and sequential reads.
inner storage has more pins than sd cards . sd card have 8 pins where as internal storage have 16 or may be 32 pins which results into high read write speed . both sequential as well as random read write speed of inner storage are better than sd card .
if you want to know more about random read write speed go to this thread : http://forum.xda-developers.com/showthread.php?t=2742903
i randomly performed a disk marking and got following results .
test performed on 50 mb space
1. inner storage (device micromax canvs hd )'
-----------------------------------------------------------------------
CrystalDiskMark 3.0.3 Shizuku Edition x64 (C) 2007-2013 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]
Sequential Read : 34.813 MB/s
Sequential Write : 6.757 MB/s
Random Read 512KB : 34.773 MB/s
Random Write 512KB : 2.992 MB/s
Random Read 4KB (QD=1) : 13.044 MB/s [ 3184.6 IOPS]
Random Write 4KB (QD=1) : 1.079 MB/s [ 263.3 IOPS]
Random Read 4KB (QD=32) : 15.335 MB/s [ 3744.0 IOPS]
Random Write 4KB (QD=32) : 1.143 MB/s [ 279.1 IOPS]
Test : 50 MB [H: 37.1% (671.3/1809.3 MB)] (x1)
Date : 2014/05/15 23:21:18
OS : Windows 7 Ultimate SP1 [6.1 Build 7601] (x64)
2. sony sd card (32 gb class 4)
rystalDiskMark 3.0.3 Shizuku Edition x64 (C) 2007-2013 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]
Sequential Read : 8.725 MB/s
Sequential Write : 3.028 MB/s
Random Read 512KB : 8.715 MB/s
Random Write 512KB : 0.659 MB/s
Random Read 4KB (QD=1) : 2.548 MB/s [ 622.2 IOPS]
Random Write 4KB (QD=1) : 0.247 MB/s [ 60.4 IOPS]
Random Read 4KB (QD=32) : 2.905 MB/s [ 709.2 IOPS]
Random Write 4KB (QD=32) : 0.384 MB/s [ 93.7 IOPS]
Test : 50 MB [E: 16.7% (4.8/28.9 GB)] (x1)
Date : 2014/05/15 23:26:53
OS : Windows 7 Ultimate SP1 [6.1 Build 7601] (x64)
3. pen drive 16 gb hp
CrystalDiskMark 3.0.3 Shizuku Edition x64 (C) 2007-2013 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]
Sequential Read : 19.958 MB/s
Sequential Write : 5.597 MB/s
Random Read 512KB : 22.317 MB/s
Random Write 512KB : 0.997 MB/s
Random Read 4KB (QD=1) : 4.655 MB/s [ 1136.4 IOPS]
Random Write 4KB (QD=1) : 0.012 MB/s [ 2.9 IOPS]
Random Read 4KB (QD=32) : 5.362 MB/s [ 1309.2 IOPS]
Random Write 4KB (QD=32) : 0.013 MB/s [ 3.1 IOPS]
Test : 50 MB [D: 0.1% (0.0/15.0 GB)] (x1)
Date : 2014/05/15 23:42:49
OS : Windows 7 Ultimate SP1 [6.1 Build 7601] (x64)
now you can easily compare the basic difference . i found that random write speed is maximum in case of inner storage which is required for better performance of operating system (refer the link of thread ).
How to increase internal sdcard?
I bought a chinese tablet, Ainol Novo8 mini, which has a Micron 64GB Nand Flash MT29F64G08CBAAAWP.
The tablet uses only 8GB, so is it possible to increase the internal storage? How can I do it?
Thanks in advance.

Categories

Resources