Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Fix for slow 3G download speeds

OP geeknik

20th October 2010, 11:28 PM   |  #1  
geeknik's Avatar
OP Recognized Developer
Flag Oklahoma City
Thanks Meter: 27
 
47 posts
Join Date:Joined: Sep 2007
Donate to Me
More
**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. =)
Last edited by geeknik; 21st October 2010 at 12:00 AM.
The Following 2 Users Say Thank You to geeknik For This Useful Post: [ View ]
20th October 2010, 11:49 PM   |  #2  
Senior Member
Flag Central USA
Thanks Meter: 123
 
294 posts
Join Date:Joined: Jun 2007
More
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.
21st October 2010, 02:57 AM   |  #3  
Junior Member
Thanks Meter: 4
 
29 posts
Join Date:Joined: Oct 2010
Ok. Im lazy. Can this be made into a cwm file?


Sent from my SCH-I500 using Tapatalk
21st October 2010, 03:22 AM   |  #4  
Junior Member
Thanks Meter: 0
 
16 posts
Join Date:Joined: Sep 2010
Quote:
Originally Posted by andwhy81

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.
21st October 2010, 03:28 AM   |  #5  
Boushh's Avatar
Retired Recognized Developer
Flag Portland, OR
Thanks Meter: 143
 
390 posts
Join Date:Joined: Mar 2008
More
Quote:
Originally Posted by andwhy81

Ok. Im lazy. Can this be made into a cwm file?


Sent from my SCH-I500 using Tapatalk

Quote:
Originally Posted by rigormootis

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

I'm not going to support this or hold your hands.

The Following User Says Thank You to Boushh For This Useful Post: [ View ]
21st October 2010, 03:43 AM   |  #6  
destroyerbmx's Avatar
Senior Member
Flag New Mexico
Thanks Meter: 16
 
372 posts
Join Date:Joined: Mar 2010
More
Sped me up consistently, and upload and download speeds are smoother and dont jump around.
21st October 2010, 03:52 AM   |  #7  
dnoyeb's Avatar
Senior Member
Auburn, AL
Thanks Meter: 59
 
851 posts
Join Date:Joined: Nov 2007
More
Now if we can figure out where the damn tcp window is hard coded.. We will be golden.
21st October 2010, 03:53 AM   |  #8  
Senior Member
Thanks Meter: 2
 
271 posts
Join Date:Joined: Aug 2010
Is this only for the fascinate?

Sent from my PC36100 using XDA App
21st October 2010, 04:00 AM   |  #9  
adrynalyne's Avatar
Recognized Developer
Thanks Meter: 5,771
 
9,787 posts
Join Date:Joined: 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, 2694 views)
The Following 7 Users Say Thank You to adrynalyne For This Useful Post: [ View ]
21st October 2010, 04:01 AM   |  #10  
Member
Thanks Meter: 0
 
52 posts
Join Date:Joined: 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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes