Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
frankoid
Old
(Last edited by frankoid; 1st December 2010 at 09:00 PM.)
#1  
Member - OP
Thanks Meter 14
Posts: 72
Join Date: Oct 2010
Default Fix for slow SD card speed with HTC's Froyo Kernel

There have been quite a few complaints about slow SD card speeds with Froyo/Sense ROMs (e.g. http://forum.xda-developers.com/showthread.php?t=778748).

I've looked into the problem and discovered that the poor performance is due to HTC reducing the readahead settings in their kernel.

I've attached a prebuilt kernel (as a flashable zip using Koush's AnyKernel) and a kernel source patch that fix this. Let me know how you get on

EDIT: if you prefer Richardtrip's kernel to the stock one, use the update zip here, or v5 or later of his kernel, instead of kernel_2.6.32-frankoid.zip

To see whether your kernel needs the fix you need to run a command with your phone plugged in to your computer. On Linux and OS X you need to include quotes, like this:
Code:
adb shell 'cat /sys/devices/virtual/bdi/179:0/read_ahead_kb'
If you are using Windows don't include the quotes - run this:
Code:
adb shell cat /sys/devices/virtual/bdi/179:0/read_ahead_kb
If it returns 4 then you need the fix. If it returns 128 you don't need it.

If you are a developer and you'd like to incorporate this fix into your ROM without having to change the kernel see this post for instructions on how to edit init.rc to change the readahead setting.
Attached Files
File Type: zip kernel_2.6.32-frankoid.zip - [Click for QR Code] (3.92 MB, 2993 views)
File Type: txt bravo-2.6.32_sd_speed_fix.diff.txt - [Click for QR Code] (599 Bytes, 2250 views)
The Following 4 Users Say Thank You to frankoid For This Useful Post: [ Click to Expand ]
 
hensk
Old
#2  
hensk's Avatar
Senior Member
Thanks Meter 24
Posts: 977
Join Date: Aug 2006
Location: Skopje
only for SENCE

ASUS TF 32Gb/32Gb
SAMSUNG GALAXY S I9100 AOKP
SAMSUNG GALAXY S I9000 CM)

Hero/HTC Desire/SGS I/SGS II[/U]
Trendcent 16GB clas6
[/B]
 
frankoid
Old
#3  
Member - OP
Thanks Meter 14
Posts: 72
Join Date: Oct 2010
Quote:
Originally Posted by hensk View Post
only for SENCE
Yes, this is only for Sense, but I haven't had any problem with SD card speeds on non-Sense ROMs.
 
elmalote
Old
#4  
elmalote's Avatar
Senior Member
Thanks Meter 21
Posts: 715
Join Date: Dec 2007
Will flashing this remove OC? I'm running Richards kernel and not stock. Will your zip file overwrite?

Sent from my HTC Desire
Creator of

www.road-aid.com

Nominated for best danish app by Mobile Awards 2012 & Danish App Awards 2012.

With RoadAid you can interact with other people on the road.
It's a social networking application for traffic related insight.

Download from Play Store or visit www.road-aid.com/download

Available for Android, iPhone and Windows Phone.

Need app developers? Check out
www.mobcoders.com
 
frankoid
Old
#5  
Member - OP
Thanks Meter 14
Posts: 72
Join Date: Oct 2010
Quote:
Originally Posted by elmalote View Post
Will flashing this remove OC? I'm running Richards kernel and not stock. Will your zip file overwrite?
I'm not sure, I don't overclock myself. I have turned off perflock in this kernel though so it might work.

You could always give it a try and restore a nandroid backup if you lose OC.

The best thing in the long run would probably be to ask Richard to apply the patch to his kernel.
 
LoQo_
Old
#6  
Member
Thanks Meter 6
Posts: 98
Join Date: Aug 2010
Don't works on rcmixhd v10. I flash it and not reboot well

Sent from my HTC Desire using Tapatalk
 
Audioboxer
Old
#7  
Audioboxer's Avatar
Senior Member
Thanks Meter 225
Posts: 1,575
Join Date: Aug 2010
Quote:
Originally Posted by elmalote View Post
Will flashing this remove OC? I'm running Richards kernel and not stock. Will your zip file overwrite?

Sent from my HTC Desire
Want to know this as well, but if you've fixed the problem my hat off to you sir! It really annoys me.
 
eViL D:
Old
(Last edited by eViL D:; 22nd October 2010 at 05:10 AM.)
#8  
eViL D:'s Avatar
Recognized Developer
Thanks Meter 1337
Posts: 4,472
Join Date: Jun 2006

 
DONATE TO ME
Nice, gonna check it out. Do you have any statistics?

*edit, this has already been pushed upstream to .35+ kernels.
 
harish.awe
Old
#9  
harish.awe's Avatar
Member
Thanks Meter 2
Posts: 94
Join Date: Jul 2010
Location: bangalore
Not working in RcmixHD..!!!

In which ROM did you try OP..??
-My Device-
HTC One X
ROM: Rev HD

Device History:



VISIT MY BLOG


Phone: Samsung Galaxy S GT-I9000 | Kernel: SpeedMod K13C | ROM: Darky's ROM 9.2
 
dennis.l
Old
#10  
dennis.l's Avatar
Senior Member
Thanks Meter 3
Posts: 185
Join Date: Dec 2007
Quote:
Originally Posted by harish.awe View Post
Not working in RcmixHD..!!!

In which ROM did you try OP..??
RCmixHD is the rom port from the desire HD isn't it?

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...