yashsingh1/xdaforums huggingface dataset:
[Fascinate Android Development] geeknik:
**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.

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. =)
[Fascinate Android Development] Domush:
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.
[Fascinate Android Development] andwhy81:
Ok. Im lazy. Can this be made into a cwm file?
[Fascinate Android Development] rigormootis:
I was going to ask the same thing, I just didn't want to be first.:D
[Fascinate Android Development] Boushh:
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...
[Fascinate Android Development] destroyerbmx:
Sped me up consistently, and upload and download speeds are smoother and dont jump around.
[Fascinate Android Development] dnoyeb:
Now if we can figure out where the damn tcp window is hard coded.. We will be golden.
[Fascinate Android Development] Pbrussell:
Is this only for the fascinate?
[Fascinate Android Development] adrynalyne:
Some of us aren't pricks.

Attached will install via cwm.
[Fascinate Android Development] Njzkrish:
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.
[Fascinate Android Development] adrynalyne:
Don't expect answers from the op.

sysctl is an program. Its installed via busybox. It should be in /system/xbin/ and no, do not remove it.
[Fascinate Android Development] Njzkrish:
So do i just cwm install after backing up with your 3g.zip over the original?
[Fascinate Android Development] Domush:
Without going into a long winded unix tutorial, unix is very simplistic in how it is structured. Anything you would normally see in the registry or a .cfg file in windows is a .conf file in unix. Many things which have no extension at all are executables, especially anything in a /bin or /xbin directory. The sysctl.conf is the configuration for for the executable you found. The /etc directory you are to copy it into is the main directory where many system executables' config files are placed.

I hope that helps some people new to unix, as that took a while to understand when I was still new to it.

So, copy the sysctl.conf file to the /system/etc dir and it will automatically be activated for the /system/xbin/sysctl executable.
[Fascinate Android Development] adrynalyne:
Just install via cwm. The file does not exist, otherwise (at least not on my phone). It installs to /system/etc.
[Fascinate Android Development] Njzkrish:
Thank you :]
[Fascinate Android Development] Jbuch84:
This sped up my 3g a great deal. Now if you find a fix for my 3g dropping in and out constantly then you'll make me and several others VERY happy! Anyway, great stuff man.
[Fascinate Android Development] voghan:
Interesting, seems to have had little effect on my phone. 3G still sucks. I'll give it a test again at work.
[Fascinate Android Development] taypotts:
So if there is a problem a recovery will remove this correct?
[Fascinate Android Development] geeknik:
I am going to play around with the settings tonight and listening to some feedback from a few people, I should have an updated version of this tomorrow afternoon. =)

Thanks. =)

Just delete the /system/etc/sysctl.conf and reboot. =)

There is nothing to backup. The file in /system/xbin is the executable that reads the conf(iguration) file in /system/etc. Just install the 3g.zip in CWM and test out your speeds.
[Fascinate Android Development] syaoran12:
Went from 910 to 1543 seems to work for me
[Fascinate Android Development] charlesweaver:
install fine, seems to work well kept phone in same place tested it several times before install an got around 260s down and 180 up thats is with 1 bar of 3G then installed it and am getting 510s down and 250s up. Thanks alot man. hope it can get better !!
[Fascinate Android Development] Sublimer677:
Installed via clockwork, downloads went from 500k to 1200k, thanks for your time man, much appreciated!
[Fascinate Android Development] andwhy81:
i think mine went up. i have only one bar at work and im getting 300-500, i believe i usually get 100-200, so i guess it helped

thanks
[Fascinate Android Development] kupdegrove:
Try running speed test or FCC test to confirm. You can get both for free in the market
[Fascinate Android Development] kupdegrove:
Applied the zip through CWM. Both speedtest and FCC showed a modest increase on the d/l test. Strangely enough, it seems that the u/l speeds decreased slightly. Could just be a coincidence but possibly noteworthy for the OP.

Thanks!
[Fascinate Android Development] voghan:
Tested at work and got my fastest times ever! 1.4 mb down and .5 down. Thanks!
[Fascinate Android Development] phoenx06:
Went from 1300's to 1600's. Thanks man.
[Fascinate Android Development] dlongb13:
went up to 2600, I am winning!
[Fascinate Android Development] Daswolven:
Service in the building I work in is a little iffy, but I went from a 5 run average of 410 down/ 490 up to 300 down/ 320 up. I'll play with it in a better area before making decisions, but I'm wondering how this improves for some, and seems to do the opposite for others.
[Fascinate Android Development] dopepope:
before fix:

747/256 then 208/323 then 81/1794 then 98/186 all in my room, havnt moved the phone (wtf?)

then with new sysctl.conf file:

67/346 then 135/260 then 225/216 and finally 434/90

seems like my 3G was sporadic to begin with, not sure this changed anything. when i get to school (across town) i'll try both again and see if there are any notable changes.
[Fascinate Android Development] mackeydesigns:
Currently testing this out, I made a note to use the same servers for the speedtest.net app.

After I applied the change, none of my local servers are showing up, which is making it very difficult to do an accurate test if I can ping the same servers.
[Fascinate Android Development] Daswolven:
Yeah, compared outside and still get better speed without. Ran concurrent against my gf fascinate, and she topped me consistently. Will keep an eye on this thread though.
[Fascinate Android Development] mackeydesigns:
Well here goes... and I'm probably gonna have to say I'm going back to stock, for now. These stats are so inconsistent that it's too hard to determine whether this works or not. For those testing, you need to make sure you're running the speedtest on the SAME servers, otherwise there is no point in doing a comparison.

All tested using Speedtest.net App with 2 connection bars inside my office.

Stock 3G settings:

Tacoma, WA Server (average of 3 tests) KILO/SEC

PING: 177

DOWN: 655

UP: 661

Federal Way, WA Server

PING: 148

DOWN: 541

UP: 535

With Updated 3G Settings:

First I was having issues getting local servers to populate. This first set is pinged to an LA server. Which shouldn't be used to compare.

Los Angeles, CA

PING: 168

DOWN: 1173

UP: 601

Local Servers then populated after I removed the fix and re-applied it.

Tacoma, WA (averaged out of 5)

PING: 150

DOWN: 596****

This one is only this high because my wife called me during a test to ask a question. After I hung up, I re-did the test and it shot up to 1272, without this score, the average is around 375)

UP: 655

Federal Way, WA

PING: 137

DOWN: 432

UP: 278

As you can see, there is way too much inconsistency with all the data, that and the test seemed to lag and bounce a few times, so who knows if its just crappy servers to connect to or not.

For S & giggles, here are two speed tests hooked up to the work wifi. I don't normally use wifi at work because they have strict sonicwall settings here.

Seattle - ping: 44 down: 2690 up: 2709

Tacoma - ping: 88, down: 2562 up: 2738
[Fascinate Android Development] xirnibor:
I have the 3g.zip file downloaded, and transferred to my phone SD card. I'm not sure how to install it from CWM, i don't see an option for that? Do I rename the file to update.zip and boot to recovery?
[Fascinate Android Development] mAlfunkti0n:
I have to wonder if Samsung locked the rates in so low because they saw problems for people in areas with low signal or if it reacts differently to one tower or another. Technically it shouldn't, but something is having an effect.
[Fascinate Android Development] mAlfunkti0n:
You can use Rom Manager and select the zip, or you can boot to CMW and select the zip that way, does the same thing.
[Fascinate Android Development] xirnibor:
thanks for the reply. i get an error when i try to have cwm install, and when i use adb push i get permission denied. the phone appears rooted, i have superuser permissions in my app list? im going to try to find the 1click root or remember where the update.zip is for root and start from there. thanks!

it appears my phone isn't rooted anymore, although im unsure how. i have superuser permissions in my app list, but when i use adb shell, i get $ instead of #...im going back thru these steps listed here, but never actually get the # anymore :(

Process:

- Open command prompt

- cd c:/wherever-your-sdk-tools-folder-is

- adb devices (to verify the connection)

- cd c:/fascinateRoot

- adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage-arm5.bin

- adb shell

- cd data/local/tmp

- chmod 0755 rageagainstthecage-arm5.bin

- ./rageagainstthecage-arm5.bin

- let the process run until it returns you to c:/fascinateRoot

- cd c:/wherever-your-sdk-tools-folder-is

- adb devices (to verify the connection)

- adb shell (you should now have a # prompt)

- exit

- cd c:/fascinateRoot

- adb push Superuser.apk /system/app/Superuser.apk

- adb push su /system/bin/su

- adb push busybox /system/bin/busybox

- adb shell

- chmod 4755 /system/bin/su

- chmod 4755 /system/bin/busybox

- exit

making progress. here's newest problem:

C:\Users\rrix\Downloads\android\android\tools>adb push sysctl.conf /system/etc/sysctl.conf

11 KB/s (395 bytes in 0.035s)

C:\Users\rrix\Downloads\android\android\tools>adb shell

# sysctl -p

sysctl -p

sysctl: not found

#
[Fascinate Android Development] bigtp2:
Worked for me!

Went from averaging ~1000/500 to ~1500/700 after the .zip

Thanks!
[Fascinate Android Development] spaciorek:
Using CWM reboot into recovery

Install zip from sd card

find the 3g.zip file DO NOT RENAME IT

Apply it

Reboot
[Fascinate Android Development] xirnibor:
will try CWM now that i have # back. using adb shell, this is the error i get:

making progress. here's newest problem:

C:\Users\rrix\Downloads\android\android\tools>adb push sysctl.conf /system/etc/sysctl.conf

11 KB/s (395 bytes in 0.035s)

C:\Users\rrix\Downloads\android\android\tools>adb shell

# sysctl -p

sysctl -p

sysctl: not found

#
[Fascinate Android Development] xirnibor:
CWM error: failed to verify whole-file signature, signature verification failed. installation aborted.
[Fascinate Android Development] Daswolven:
Great, now I'm playing with this. lol. Interesting stuff.

Quick question, in no way directed at the OP: Is the sysctl -p command necessary to set the configuration, or will it pick it up on reboot automatically?
[Fascinate Android Development] xirnibor:
i have the file copied now in the /system/etc/ directory. my speetest.net results in Manassas VA

550down/200up

will test from home later.
[Fascinate Android Development] chronster:
Hey I'm in Manassas! :D

I'll post my results when I get out of work here in Warrenton. The last time I checked anything with my download speed it was while tethered at my parents house on Davis Ford Road. I was getting about 2mb down.

I hope this isn't going to have a reverse effect that I'm looking for :eek:
[Fascinate Android Development] chronster:
Why can't we just use something like root explorer to copy the file into that directory manually?
[Fascinate Android Development] Daswolven:
http://lh6.ggpht.com/_BsXYkhI5C_Q/TMCUl3DC-AI/AAAAAAAADhs/4RX79Njb0HE/s288/[UNSET].jpg

Might be getting the hang of this. :P
[Fascinate Android Development] mackeydesigns:
I'd be interested in testing your settings...
[Fascinate Android Development] andwhy81:
OK, confirme dnow much faster. There are rooms i can go in now and get 20k+ where i got 5 or below before. I can actually USE tether now
[Fascinate Android Development] rigormootis:
I am consistently faster without. I am in Boston, Ma.
[Fascinate Android Development] mackeydesigns:
I'm beginning to think there are too many factors that contribute to this being useful or not. Signal strength, Cell Tower, Server connections, distance from phone to the file(s) you're trying to access, etc.

I mean, if I go outside, down the street and camp underneath a cell tower, I bet i'd get some pretty blazing speeds, but what if I go down the street and sit underneath a tower that was just built, perhaps that tower operates better?

I guess what I'm saying is, the settings might be useful, but will never show consistently better speeds.
[Fascinate Android Development] imnuts:
It will pick it up on reboot. The command is only needed to implement the changes with restarting.
[Fascinate Android Development] mAlfunkti0n:
Add "busybox" (without quotes) before the sysctl command.
[Fascinate Android Development] neozen21:
Removed.....
[Fascinate Android Development] dopepope:
i don't know, why can't you? i've both adb pushed and used root explorer, pushing is just faster from the pc (instead of copying, finding it in RE, copying, etc).

anyways like some of the other people I'm not seeing consistent enough results to say that this for certain help or hurt anything. I've tried it all across town, and its sporadic either way.
[Fascinate Android Development] pkopalek:
If you're booted in recovery, try booting the phone up normally.

Can you confirm that if you browse, with Root Explorer, that you have sysctl in your xbin folder?
[Fascinate Android Development] carrick1107:
Thank you very, very, very, very much! It doubled my speed from 330kbps to 894kbps!
[Fascinate Android Development] ITGuy11:
After running 10 speed tests before and after the "fix" I have removed it. My speeds were consististantly slower with it installed. My speeds went back up when I removed the "fix".
[Fascinate Android Development] spaciorek:
My speeds have been five times faster same server out of Chicago and same area in my neighborhood in Indiana.

Thanks:D
[Fascinate Android Development] bdubbin:
I agree, I can neither confirm or deny that my speed is better or worse, too many variables come into play. Thanks for the work though & hope its helping someone. What we need is a better baseband or radio, my signal strength is up & down all the time after adding voodoo, can't seem to figure it out... I'm in columbus ohio, I should and have been ok on signal in the past.
[Fascinate Android Development] geeknik:
Just a quick update on the tweaks. I've been working with dnoyeb and when birdman releases his next kernel, speeds might improve even more as we're adding in some TCP settings that Samsung either removed or commented out. =)

If you run sysctl -p (or busybox sysctl -p) you don't have to reboot. Otherwise, the settings should stick when you reboot.

I live 3 miles from the nearest 'Verizon' tower. I actually get worse speeds when I"m 100 yards from the tower than I do when I'm at home. =)
[Fascinate Android Development] Daswolven:
This Link is a good starting guide for tweaking these values. Assuming that connections can vary regionally based on Verizons infrastructure, it would make sens to make on point adjustments specific to the user, as opposed to a blanket setting.

Just a thought, this is new to me. Learning, but kick me in the teeth if I'm spreading misinformation here. I tested my latency by tethering, being as I cannot seem to find a decent app on the market for it.
[Fascinate Android Development] CPierce:
I have the same results. There's a tower at my school and they rent space to verizon. Speed at school is probably 75% of the speed I get when I'm at my house 10 miles away
[Fascinate Android Development] ryude:
I specialized in radio transmission in the Air Force, the reason reception is worse the closer you are is due to a cone effect. To make your transmission reach as many people as possible, you have to place your antenna as high as possible. The side effect of this is that being too close beneath the antenna will show limited or even no radiation at all.

Hope I helped clear things up a little.
[Fascinate Android Development] jason1332:
Sweet...thanks.
[Fascinate Android Development] Mageta:
I'm a noob, bite me, but I was wondering if I should remove voodoo before installing?
[Fascinate Android Development] Njzkrish:
works fine for me with voodoo so i see no reason to remove it.
[Fascinate Android Development] cesium:
Definitely not!
[Fascinate Android Development] Mageta:
Slowed my phone down. Was 700 ish to 500 ish. I was hoping for this one, reverted. Nice idea and thanks for posting this for others to try! :P
[Fascinate Android Development] kuroyoma:
Just checking, so if i remove this file and reboot my phone it will return to the default setting?
[Fascinate Android Development] mattstakilla:
yes, it should
[Fascinate Android Development] mailaliasgar:
I keep getting a "permission denied" error (before and after root). Do I need to install CWM for this to work?

I read another post form a user who had the same error and instructions to fix it but wasn't able to follow them. Specifically, I did not follow the "cd c:/fascinateRoot" instruction. What does fascinateRoot mean? I don't have such a folder on my machine.

I am a self-proclaimed noob so please help me out.

Thanks in advance.
[Fascinate Android Development] dnoyeb:
Start with the threads that say, start here. You have some reading to do. ;)
[Fascinate Android Development] Daswolven:
Am I correct in thinking the adjustment can be tailored to a specific area/connection? I have almost doubled my typical speeds testing on the same set of servers from stock but want to make sure I'm not just having a placebo effect. The settings I'm using are not far from the ones in the OP, but get better speed for me than those.
[Fascinate Android Development] swerve12:
Amazing went from from 130kbps to 309kbps thanks!!!:D
[Fascinate Android Development] jselden:
I went from an average of 1000kbps down and 500kbps up to about an average of 1700 kbps down and 700kbps up.

Super Simple, Thanks a lot!
[Fascinate Android Development] phoenx06:
I'd be willing to test yours :)
[Fascinate Android Development] Daswolven:
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 52500 187500

net.ipv4.tcp_wmem = 4096 52500 187500

net.ipv4.tcp_mem = 187500 187500 187500

net.ipv4.tcp_no_metrics_save = 1

net.ipv4.tcp_moderate_rcvbuf = 1

Getting the best results with this by far. Still playing in spare time though. it's the testing that takes so long. I run it five times each on five different servers from the same location against my GFs who is on stock side by side. Test on 3G at work, 3G at home, and Wifi at home. This helps ensure that the endless variables are as minimal as I can get them.

I saw a slight reduction with the posted settings, but here I'm seeing almost twice on 3G what stock pulls.
[Fascinate Android Development] chronster:
Thanks for testing this for everyone. I put this into that conf file, then just pasted the file into system\etc. I honestly don't even know if this is the correct way to install it, but i'll test with it anyways.
[Fascinate Android Development] Daswolven:
Well I'm actually shooting in the dark without a good understanding of this. Just testing according to some of the info I've pulled out of google searches. I don't know I'd this is an optimal setting for me, but it is almost precisely 2x my gf stock in side by sides.

I'm also thinking the numbers should vary based on connection.
[Fascinate Android Development] rigormootis:
If I use the zip file from the op where do I go to try these settings? Can I even do it like that?
[Fascinate Android Development] Dalamar1320:
So I'm rooted, but don't have cwm installed. So I simply copied the text. Used text edit from the market, pasted and saved as sysctl.txt . Used astro file manager to rename and chop off the .txt and change it to .conf. then used terminal to copy. I used the following commands:

$ su

# cd sdcard

# cat sysctl.conf > /system/etc/sysctl.conf

# reboot

After the reboot. Double the download speeds.

Thanks man! This rocks!
[Fascinate Android Development] mailaliasgar:
I kept getting a "permission denied" error but thanks to the above instructions I was able to get it working. Funny thing is that my download speed actually got worse after the fix so I ended up not using it.

Instructions for other noobs like me (assumes you are rooted):

open command prompt

navigate to the tools directory of android sdk

type the commands from Dalamar1320's post after typing "adb shell" in the command prompt
[Fascinate Android Development] mattstakilla:
Removed. Speeds we're 200-300 slower. Florence az
[Fascinate Android Development] Dalamar1320:
I probably should've made that more clear (I'm a rooter from the original days of using terminal rather then adb). Download terminal emulator from the market and use the commands I stated above, from terminal directly on the phone. Alternately if you have busybox installed you can use the cp command instead of cat.
[Fascinate Android Development] churro7:
only for fascinate? doesnt work with epic?
[Fascinate Android Development] dnoyeb:
if you are running one of the latest JT(v10/27) or birdman (v.20) kernels for Fascinate or Nullghost for the Epic v 1.49 or newer, they contain a kernel side fix for the speed issues. It seems that Samsung for some reason decided to remove a line of code that sets the default RWIN value which caused all kinds of weird issues. It has been inserted in all the mentioned kernels above.

You can of course still use the fix in this thread to tinker around with other settings.

I am not sure if the captivate kernels or the vibrant have edited theirs yet... I haven't gotten ahold of those kernel makers yet.
[Fascinate Android Development] smilepak:
Before Apply this, did 3 speedtest

1) 478/617

2) 657/452

3) 563/516

Applied 3G fixes before JT, did 3 speedtest

1) 727/806

2) 623/756

3) 655/815

After applied JT ROM, did 3 speedtest

1) 235/305

2) 156/501

3) 261/438

Applied 3G fixes after applying JT ROM (http://xdaforums.com/showthread.php?t=814463), did 3 speedtest

1) 544/376

2) 815/239

3) 598/268