Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,852 Members 41,621 Now Online
XDA Developers Android and Mobile Development Forum

Fix for slow 3G download speeds

Tip us?
 
geeknik
Old
(Last edited by geeknik; 20th October 2010 at 11:00 PM.)
#1  
geeknik's Avatar
Recognized Developer - OP
Thanks Meter 27
Posts: 47
Join Date: Sep 2007
Location: Oklahoma City

 
DONATE TO ME
Default Fix for slow 3G download speeds

**BY DEFAULT, ANDROID DOESN'T HAVE A SYSCTL.CONF. IF YOU'RE RUNNING SOMETHING CUSTOM, MAKE SURE THE FILE DOESN'T EXIST BEFORE YOU OVERWRITE IT.**

Some people in #samsung-fascinate were complaining about slow 3G download speeds. Here is a simple fix:

Create a file on your PC called sysctl.conf, add the following information and then adb push sysctl.conf /system/etc/sysctl.conf.

Code:
net.ipv4.tcp_ecn=0
net.ipv4.route.flush = 1
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_rmem = 4096 39000 187000
net.ipv4.tcp_wmem = 4096 39000 187000
net.ipv4.tcp_mem = 187000 187000 187000
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
After you push the file, open up adb shell and type "sysctl -p" in the window (without the quotes). If it was successful, it should output what is in your sysctl.conf file.

I'm continuously tweaking these settings, they are desktop settings, but I was able to go from 900kbits/sec on 3G to 1800kbits/sec. Your mileage may vary of course. I live in a rural area so 3G usage is probably lower than in say Chicago or New York.

*Not responsible if your phone quits working, catches on fire or threatens to kill a foreign head of state. Also not responsible if your download speed doesn't increase. And I'm not going to support this or hold your hands. If you don't know anything about Linux, Android, ADB or editing system files, don't bother me. =)
android kernel hacker + security researcher + google security hall of fame rockstar
The Following 2 Users Say Thank You to geeknik For This Useful Post: [ Click to Expand ]
 
Domush
Old
#2  
Senior Member
Thanks Meter 123
Posts: 294
Join Date: Jun 2007
Location: Central USA
Went from 53kB/s to 17kB/s. Reverted..

Must be area specific.

Yes, my data rates are normally horrid at my house. Better than nothing, I suppose.
 
andwhy81
Old
#3  
Junior Member
Thanks Meter 4
Posts: 24
Join Date: Oct 2010
Ok. Im lazy. Can this be made into a cwm file?


Sent from my SCH-I500 using Tapatalk
 
rigormootis
Old
#4  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Sep 2010
Quote:
Originally Posted by andwhy81 View Post
Ok. Im lazy. Can this be made into a cwm file?


Sent from my SCH-I500 using Tapatalk
I was going to ask the same thing, I just didn't want to be first.
 
Boushh
Old
#5  
Boushh's Avatar
Retired Recognized Developer
Thanks Meter 143
Posts: 390
Join Date: Mar 2008
Location: Portland, OR
Quote:
Originally Posted by andwhy81 View Post
Ok. Im lazy. Can this be made into a cwm file?


Sent from my SCH-I500 using Tapatalk
Quote:
Originally Posted by rigormootis View Post
I was going to ask the same thing, I just didn't want to be first.
You do realize that you both just typed more characters posting your reply's than it would have taken to copy/paste the file data and pushing the files onto your phone. Or just creating a file on your phone.

Also...

Quote:
Originally Posted by geeknik View Post
I'm not going to support this or hold your hands.
[] Current Phone: Galaxy Nexus []
[] Current ROM: AOKP []
[}------------------------------------------------------------{]
[] Current Tab: Nexus 7 []
[] Current ROM: AOKP []
[}------------------------------------------------------------{]
[] Hack to learn []
[] NOT []
[] Learn to hack []
[}------------------------------------------------------------{]
The Following User Says Thank You to Boushh For This Useful Post: [ Click to Expand ]
 
destroyerbmx
Old
#6  
destroyerbmx's Avatar
Senior Member
Thanks Meter 16
Posts: 372
Join Date: Mar 2010
Location: New Mexico
Sped me up consistently, and upload and download speeds are smoother and dont jump around.
 
dnoyeb
Old
#7  
dnoyeb's Avatar
Senior Member
Thanks Meter 59
Posts: 849
Join Date: Nov 2007
Location: Auburn, AL
Now if we can figure out where the damn tcp window is hard coded.. We will be golden.
beyondnoyeb
Galaxy S4
 
Pbrussell
Old
#8  
Senior Member
Thanks Meter 2
Posts: 271
Join Date: Aug 2010
Is this only for the fascinate?

Sent from my PC36100 using XDA App
 
adrynalyne
Old
#9  
adrynalyne's Avatar
Recognized Developer
Thanks Meter 5669
Posts: 9,619
Join Date: Dec 2008
Quote:
And I'm not going to support this or hold your hands. If you don't know anything about Linux, Android, ADB or editing system files, don't bother me. =)
Some of us aren't pricks.

Attached will install via cwm.
Attached Files
File Type: zip 3g.zip - [Click for QR Code] (3.1 KB, 2657 views)
If you like what I do, buy me a brew!
The Following 7 Users Say Thank You to adrynalyne For This Useful Post: [ Click to Expand ]
 
Njzkrish
Old
#10  
Member
Thanks Meter 0
Posts: 51
Join Date: May 2008
before trying this, i searched on root explorer for anything named sysctl. It found something in system/xbin/ named sysctl. Is that the same place/file? what should i do to it before installing your configurations.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes