FORUMS

XDA Recap: This Week In Android (May 17 – 23)

Another week, another recap. The Sunday tradition marches on this week with a fresh … more

Huawei To Sell Honor Smartphones Via Indian Retail Outlets

World’s fourth largest smartphone maker Huawei plans to now sell its … more

Sunday Debate: Are Smaller Bezels Better or Worth It?

Bezels have been getting smaller and smaller as the years go by, and while devices … more

LG G4 First Impressions and Unboxing – XDA TV

The latest in LG’s signature line of “G phones” has been released. … more
Post Reply Subscribe to Thread Email Thread

Fix for slow 3G download speeds

20th October 2010, 10:28 PM |#1  
geeknik's Avatar
OP Retired Recognized Developer
Flag Oklahoma City
Thanks Meter: 27
 
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; 20th October 2010 at 11:00 PM.
The Following 2 Users Say Thank You to geeknik For This Useful Post: [ View ]
 
 
20th October 2010, 10:49 PM |#2  
Senior Member
Flag Central USA
Thanks Meter: 123
 
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, 01:57 AM |#3  
Member
Thanks Meter: 4
 
More
Ok. Im lazy. Can this be made into a cwm file?


Sent from my SCH-I500 using Tapatalk
21st October 2010, 02:22 AM |#4  
Junior Member
Thanks Meter: 0
 
More
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, 02:28 AM |#5  
Boushh's Avatar
Retired Recognized Developer
Flag Portland, OR
Thanks Meter: 143
 
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, 02:43 AM |#6  
destroyerbmx's Avatar
Senior Member
Flag New Mexico
Thanks Meter: 16
 
More
Sped me up consistently, and upload and download speeds are smoother and dont jump around.
21st October 2010, 02:52 AM |#7  
dnoyeb's Avatar
Senior Member
Auburn, AL
Thanks Meter: 59
 
More
Now if we can figure out where the damn tcp window is hard coded.. We will be golden.
21st October 2010, 02:53 AM |#8  
Senior Member
Thanks Meter: 2
 
More
Is this only for the fascinate?

Sent from my PC36100 using XDA App
21st October 2010, 03:00 AM |#9  
adrynalyne's Avatar
Recognized Developer
Thanks Meter: 6,451
 
More
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, 2742 views)
The Following 7 Users Say Thank You to adrynalyne For This Useful Post: [ View ]
21st October 2010, 03:01 AM |#10  
Member
Thanks Meter: 3
 
More
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