You are not logged in.

#1 2011-04-26 21:54:24

toru
Member
Registered: 2011-03-22
Posts: 27

how would one limit their upload speed? [solved]

I'm having a problem where computers over the network sharing information start out sending info relatively fast and then slow down and stall after too much has been sent.  This happens with ssh, ftp, smb, everything I've tried.  I would like to try limiting the upload speed a bit to see if that helps.  Is there any documentation on how to do this?  Or perhaps someone has a better idea?

Last edited by toru (2011-04-28 02:24:44)

Offline

#2 2011-04-27 08:14:13

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: how would one limit their upload speed? [solved]

If it's simply a test to see if transfer speeds affect the connection quality at all, you might consider using filezilla's own transfer speed limit. If this improves the situation for FTP transfers, perhaps then you can look further into the issue.

Is " too much"  a constant amount?
Have you made sure that the connection is solid? It wouldn't be the first router to bug out when large amounts of data are pushed through it at speed.

Many if not most of the transfer applications have their own bandwidth limiting features:
rsync has --BWLIMIT=
scp has -l

You might also consider things as trickle:
http://www.archlinux.org/packages/commu … 6/trickle/


Arch i686 on Phenom X4 | GTX760

Offline

#3 2011-04-27 11:48:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: how would one limit their upload speed? [solved]

I would recommend fixing the problem, not trying to make it even slower wink

Try "MTU" (e.g.:  ip link set eth0 mtu 1452) and "TCP window scaling" - Google 'em.

Offline

#4 2011-04-27 23:35:58

toru
Member
Registered: 2011-03-22
Posts: 27

Re: how would one limit their upload speed? [solved]

brebs wrote:

I would recommend fixing the problem, not trying to make it even slower wink

Try "MTU" (e.g.:  ip link set eth0 mtu 1452) and "TCP window scaling" - Google 'em.

I changed the MTU to 1452 by using ifconfig eth0 mtu 1452 and it actually seems to be doing a lot better now (not perfect, but a major improvement).  Does this change the setting in a configuration file somewhere?  Or will I have to do this every time the server reboots?

Last edited by toru (2011-04-27 23:46:14)

Offline

#5 2011-04-27 23:44:16

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: how would one limit their upload speed? [solved]

Every time.

Offline

#6 2011-04-27 23:48:48

toru
Member
Registered: 2011-03-22
Posts: 27

Re: how would one limit their upload speed? [solved]

I'm assuming there's a place where I can add a script to be run on start up?

Offline

#7 2011-04-28 01:29:32

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: how would one limit their upload speed? [solved]

toru wrote:

I'm assuming there's a place where I can add a script to be run on start up?

That would be /etc/rc.local.

Offline

#8 2011-04-28 02:24:15

toru
Member
Registered: 2011-03-22
Posts: 27

Re: how would one limit their upload speed? [solved]

my0pic wrote:
toru wrote:

I'm assuming there's a place where I can add a script to be run on start up?

That would be /etc/rc.local.

thanks.  had a feeling that was going to be the case.  before checking back here i looked up what rc meant.  for some reason i was thinking rc.local might just be for daemons.  that's what i've used to auto start daemons on distros that didn't have an rc.conf.  slackware has rc.local in /etc/rc.d/ that's where this confusion spawns from.

rc == run commands

Last edited by toru (2011-04-28 02:26:47)

Offline

Board footer

Powered by FluxBB