All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aaron Wrasman <awrasman@enchanted.net>
To: linux-kernel@vger.kernel.org
Subject: Slow network and initial TCP connection
Date: Tue, 7 Oct 2003 21:10:18 -0500	[thread overview]
Message-ID: <20031008021018.GA17457@enchanted.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

I'm working with a 2.4 kernel and we have linux servers (over 3000) that have 
to talk over a slow satellite connection. We noticed that it was timing out
on the initial TCP connection and had to retry. Between the first time
out and the second try with a longer timeout it was actually taking
longer than it use to with a different OS and we had more traffic on our
network because of the retry.

We changed one thing in include/linux/tcp.h

Change:

#define TCP_TIMEOUT_INIT ((unsigned)(3*HZ))

to be

#define TCP_TIMEOUT_INIT ((unsigned)(5*HZ))


We did this and connections work the first time and we cut our traffic
in half.


Is there a better way than having to hardcode this in a header file and
having to recompile the kernel? I would have thought someone would have
run into this on a high latency network before now and this would be
tuneable from /proc


I know that there are some socket options that an application can set to
override this in some places but I need to do this for all TCP traffic.


All suggestions?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2003-10-08  2:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031008021018.GA17457@enchanted.net \
    --to=awrasman@enchanted.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wrasman@cs.utk.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.