Improve SDcard reading performance

转载 2013年12月03日 16:00:35
Many of us are disappointed about the reading speed of the SD Cards on our HD2. It doesn't matter if you have fast 10 Class SD Card, it performs very poorly on HD2 comparing how it performs on the PC.

The clue is the Cache size for reading from SD Card. It's set to 128 KB, on some ROM's it's even set to 4 KB!
 


You can check for yourself your Cache size by looking into this file:
 

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


You can change it manually but it will be reverted to default on the reboot. The changes need to be done permanently by loading the script on the startup through the init.d.
 


Or you can flash the CWM zip files that I made for you.
 

For RA 1.7 Recovery zip look into this post. Many thanx to user laie1472 for making them.



You must find which Cache size fits best for your SD Card. In my case its the 3072 KB Cache size.
 At best, use the Root Explorer to change the value, then run SD Tools Benchmark - finally flash the CWM zip file that fits your SD Card.

Here are two screenshots - the first one shows the reading speeds with the default Cache 128 KB and the second one is with the 3072 KB Cache with my Class 4 SD Card on CM7 RC2 by Charnsingh.
 


The Benchmark is made with the 
SD Tools program.


If you want to convince yourself of the speed improvement after applying the fix, just open your Gallery and see how fast it loads the photos!

Suggestion: 2048 KB Cache size performs at best for most of the SD Cards!

相关文章推荐

How to Improve Speed Reading Skills

如何提高英文阅读能力?

Best practices to improve performance in JDBC

From http://www.precisejava.com/javaperf/j2ee/JDBC.htm#JDBC104This topic illustrates the best practi...

深度学习性能提升的诀窍 How To Improve Deep Learning Performance

原文: How To Improve Deep Learning Performance  作者: Jason Brownlee  翻译: KK4SBB 责编:何永灿 克服过拟合和提...

Crawler学习:4.Improve Performance

声明:所有内容均为本人学习《自己动手写网络爬虫》心得,有任何疑问可以参考原文。 提高爬虫的表现性涉及到很多方面。 针对不同的需求设计相应的爬虫队列以及爬行的策略,是各大搜索引擎的核心竞争力。 在此...

Improve and Performance Tune your Application Engine Programs

Improve and Performance Tune your Application Engine Programs Writing Efficient App Engine Program...

How to improve Java's I/O performance( 提升 java i/o 性能)

原文:http://www.javaworld.com/article/2077523/build-ci-sdlc/java-tip-26--how-to-improve-java-s-i-o-per...

How to Improve Query Performance - A Checklist

How to Improve Query Performance - A Checklist         The below 25 points are the small tips to i...

Using Covering Indexes to Improve Query Performance

Using Covering Indexes to Improve Query Performance(使用Covering Indexes改善查询性能)

Five Invaluable Techniques to Improve Regex Performance

Regular expressions are powerful, but with great power comes great responsibility. Because of the wa...

pat 1055 how to improve the performance

#include #include #include #include using namespace std; struct Person { char name[9]; int age; ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)