FireFox: Slow Upload Speed Fixed!

35 replies [Last post]
Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

There seems to be a problem with Firefox's Upload speed, but up till now I've found no fixes other than to use IE7 for uploading Videos.

Fresh WinXp System.
[URL="http://Speedtest.net"]Speedtest.net[/URL]

FireFox 2.0

Fresh WinXp System.
Speedtest.net

FireFox 2.0

IE7

Now for the Fix. :Wink

Keep in mind that IE7 seems to do this tweak itself. So on some systems both browsers might be the same slow speed and will both move faster. I don't honestly feel this adjustment fixes the problem more than it simply compensates for it. This is still however something the Mozilla Team should look into about auto detecting the buffer sizes.

Anyway, on to the Tweak/Fix. :cool_shad

Quote:Walter - (evdoforums.com)

OK, I've now tested and tweaked all three of my workstations and made the same change to my server. In the case of each workstation, the upload was limited to 200-300 kb/sec before the tweak and went to between 800-1000kb/sec uploads with some occasional higher throughputs. All these numbers using http://miranda.ctd.anl.gov:7123

I researched and tweaked a fair number of things, but only one seemed to affect this. The parameter is:

DefaultSendWindow

and it is set in the registry here:

[HTML]
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters
[/HTML]
Note the location. It is not in the TCPIP section of the registry. Also, none of my machines had this name in the registry. I had to add it.

it is a DWORD value. I ended up with a value of 78000 (in hex). If you want to find out more about this parameter, just do a Google search on DefaultSendWindow. There was a very long thread on a forum discussing tests done a few years back by a few DirecPC users to improve their upload speeds. Since EVDO also has relatively high RTT values, I figured a similar tweak should work and it indeed does appear to. Since this parameter sets the size of a buffer that determines when the winsock sending stops sending and waits for acknowledgments, it makes some sense as to why this would work. Also, it can be changed by an application by setting a socket option parameter, so that would explain how IE 7 could get this to happen only for itself.

I only did a few short FTP tests. FTP uploads were improved modestly (maybe 50% better), but I still need to send to an FTP server with a known adequate inbound bandwidth.

Upload tests using FF to a public site also improved with much higher peaks and modestly better average upload speeds, but not as high as the speed test sites.

---------
Did everyone understand that?

What they are adding to that part of the Registry is:
[HTML]
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters
[/HTML]

"DefaultSendWindow" with a DWORD value of 78000 (in hex).

There is an Image of this attached at the bottom if you feel lost.

REBOOT YOUR COMPUTER!

The Results:

FireFox 2.0 With Registry Tweak.

IE7 With Registry Tweak.

I've made a patch.. but I don't know if everyone has the same control locations.
[HTML]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AFD\Parameters]
"DefaultSendWindow"=dword:00078000

[/HTML]

° º ¤ ø . ¸ . ø ¤ º ° º ¤ ø . ¸ ¸ . ø ¤ º ° º ¤ ø . ¸ . ø ¤ º ° º ¤ ø . ¸

Don't test my skills, I was trained by myself! Check out my Gaming Videos!

robodude666
robodude666's picture
Offline
Joined: 09/16/2006
Posts: 103

I had this problem before, but with the internet in general rather than IE v FF. I increased my TCP window size to allow larger packets to be sent and I managed to increase my internet speed from 5/1 to 14/1.5 (advertised 15/2).

Search for dslreport and drtcp or tweak test. They have a nice tutorial there of how to fix it also. I personally like dr. tcp because it does the dirty work for you. No need to mess with registry yourself, in case you're scared of screwing it up.

MakubexGB
MakubexGB's picture
Offline
Joined: 10/09/2004
Posts: 3613

Sweet! Thanks!

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

From My House On DSL:

FF 2.0

IE7

FF 2.0 With Registry Tweak

IE7 With Registry Tweak

No real changes other than IE7 got a better speed, but that might have been a fluke.
At work with the faster connection is when I notice the slowdown problem with Firefox.
All very Interesting...

matty_1210
matty_1210's picture
Offline
Joined: 06/06/2006
Posts: 3502

with out the tweak i got firefox 215k and IE 216k
with the tweak i i got firefox 214k and IE 217k

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

matty_1210;606313 wrote:
with out the tweak i got firefox 215k and IE 216k
with the tweak i i got firefox 214k and IE 217k

Seems your like me from home. I wonder if this problem only happens to those connection that have a much larger amount of upload bandwidth?

Manic Mouse;606314 wrote:
Tried this at work with the following results under Vista (all FF) both against the same server at Fenton MI:

Before Patch:

After Patch

Not bad! Can't wait to try this @ home! :thumb

Glad to see your FF work upload connection has improved! :thumb

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

robodude666;606254 wrote:
I had this problem before, but with the internet in general rather than IE v FF. I increased my TCP window size to allow larger packets to be sent and I managed to increase my internet speed from 5/1 to 14/1.5 (advertised 15/2).

Search for dslreport and drtcp or tweak test. They have a nice tutorial there of how to fix it also. I personally like dr. tcp because it does the dirty work for you. No need to mess with registry yourself, in case you're scared of screwing it up.

I've had my share of those apps to avoid using them when possible. They seem to adjust way to much and that scares me if I ever want to reset things. It's just nice to know there is one adjustment to focus on. :) But yeah.. I've been there having to adjust settings to get the best out of my home DSL.

killergame0
killergame0's picture
Offline
Joined: 09/02/2007
Posts: 198

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

killergame0;606395 wrote:

Is that with or without the fix?

KusoSamurai
KusoSamurai's picture
Offline
Joined: 06/10/2007
Posts: 569

Before

After

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

KusoSamurai;606420 wrote:
Before

After

Yup.. Looks like the Buffer Size problem really only hurts connections with alot more upload bandwidth. :)

killergame0
killergame0's picture
Offline
Joined: 09/02/2007
Posts: 198

this is the new firefox

i just downloaded it today

[SIGPIC][/SIGPIC]

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

killergame0;606436 wrote:
this is the new firefox

i just downloaded it today

Only problem is that your bandwidth is low, so I don't know if the new FireFox has fixed anything until it's released. That's when I can install it at my work.

matty_1210
matty_1210's picture
Offline
Joined: 06/06/2006
Posts: 3502

man i hate all u people with big upload connections

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

Race234;606493 wrote:
wow Im going to have to give this a try and see how it affects my results :Thumb

What kind of connection do you have? :cool_shad

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

Race234;606544 wrote:
probably one to slow to make a difference, I have clear wire which is a wireless provider. Im signed up right now to their 2mb down 300kb up but it fluctuates with it being wireless so sometimes I get as much as a 1mb up but it hovers around 280-400kb so doing this tweak probably wont help.

I think it looks like 512Kb/s and below will not notice a difference in their upload speeds, tweaked or not.

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

Race234;606565 wrote:
ah so should I go ahead and do the tweak for the heck of it so if I ever get faster internet I wont have to mess with it or try to remember what I did lol?

That's kind of why I posted this here... Forum = Personal Note Pad. ;)

meng-chieh
meng-chieh's picture
Offline
Joined: 04/21/2004
Posts: 395

Thanks Tivon! My upload went from a meager 100 kbs to 500 kbs - still slow but much better. :)

HP w2207 Widescreen LCD / Pentium 4 3.2C GHz w/800 FSB @ 3.5GHz
Asus P4P800 DX / 2 x Corsair DDR400 PC3200 512MB RAM
Sapphire Radeon X1950 Pro 512mb / Maxtor 300GB SATA w/ 16MB Cache
W.D. 120GB SATA w/ 8MB Cache / Lite-On 812S
Enermax Noisetaker 425 / Aspire X-Dreamer II
Toshiba Satellite M60 w/ 1GB Kingston RAM
BenQ M310 Cordless Mouse

ultrastei
Offline
Joined: 09/10/2008
Posts: 2

Thank you man!!! Genius!! I searched for this solution 2 days and you are the only one that have the magic key! It's working PERFECT! I uploaded before with 50k/s maximum on youtube, now i'm uploading with 400-450k/s with FF 3.0

ultrastei
Offline
Joined: 09/10/2008
Posts: 2

mecon2;675663 wrote:
i would love faster uploads but i don't get it :(

You need a good connection. If you don't have it it's normal that you see no changes.

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

mecon2;675824 wrote:
no, as in i don't understand how to change Mozilla...

You don't change Mozilla. You change the windows registry. Because IE is more integrated into the Operating system it has the ability to auto detecting the buffer sizes. Mozilla however does not have this ability for windows. In most cases this is perfectly fine for 95% of the World. Although there are people with nice wide and fast connections that are trying to upload large files. When it's 1 minute with IE and 10 minutes with FF, it kind of gets under your skin to find a fix. I found most of this information on Google, but it was not easy and did take weeks to gather. And that's why I've posted it here for Google to keep a record of this problem and one day hopefully a real fix.

Maor_Splinter
Maor_Splinter's picture
Offline
Joined: 07/13/2004
Posts: 185

In FireFox version 3 i need to do that fix?

Linux support games... Games don't support Linux XD
_______________________________

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

Maor_Splinter;681026 wrote:
In FireFox version 3 i need to do that fix?

Yes, FF3 and 2 check the system for the speed settings rather than auto adjust like IE does. It only makes a difference if you have a nice network connection.

Dan3274
Offline
Joined: 11/18/2008
Posts: 1

I just tried the registry tweak...and it made no change to my upload speed :(

I kept the default data value - shoud i change it? Im running windows XP, 1GB RAM :o

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

Dan3274;686209 wrote:
I just tried the registry tweak...and it made no change to my upload speed :(

I kept the default data value - shoud i change it? Im running windows XP, 1GB RAM :o

The trick does work, but only if you have alot of bandwidth. In your case there is something else going on because your download speed is nice, but your upload speed is too small. Compare your results with IE.

Mirkin
Offline
Joined: 12/06/2008
Posts: 139

Firefox 3.0.5

IE7

On Vista Ultimate64

Windows 7 Beta Rig: GA-M591SLI-S5 AMD X2 4600+ Corsair XMS2 800 4X1GB ATI X1950 Pro

Tivon
Tivon's picture
Offline
Joined: 04/26/2002
Posts: 1888

Mirkin;693173 wrote:

Firefox 3.0.5

IE7

On Vista Ultimate64

Is this with or without the fix? What is your rated bandwidth?

stringbean09
Offline
Joined: 07/06/2009
Posts: 32

Good Lord those speeds are insane. Darn you Montana! Why do we have to be a technological dead zone. We don't even have 3G anywhere.

CPU: Intel P4 @ 3.0 Ghz GPU: HIS IceQ3 HD 3850 AGP MOBO: Gigabyte 8PE800 RAM: 1Gb DDR 333 Monitor: Samsung T260 HD 26"