Networking Forums

Networking Forums > Computer Networking > Linux Networking > IPV4 Latency Issue: 2.4.18 Kernel

Reply
Thread Tools Display Modes

IPV4 Latency Issue: 2.4.18 Kernel

 
 
Rob Novak
Guest
Posts: n/a

 
      04-30-2004, 03:13 PM
Hi there,

I'm currently working on a project that is, unfortunately, irrevocably
tied to the 2.4.18-3 kernel (RedHat 7.2). It's the runtime system for
what is supposed to be an "appliance", but I'm now arse-deep into the
OS.

Part of the project is to copy a certain amount of data from a data
center on the east coast to one on the west. We've got a sliver of an
OC-3 with a CIR of 10Mbps. RTT latency is 70-75ms.

So far, we've only been able to push (at max) 450KB/s down this line.
Immediately suspecting it to be a TCP window-size problem, I bumped up
the net.ipv4.tcp_wmem and net.ipv4.tcp_rmem parameters. I saw a
slight improvement moving from the defaults to:
min: 8K
def: 128K
max: 256K

I figured window size from:
(windowsize * 8bpB) / RTT = Throughput
or
Windowsize = (Throughput * RTT)/8

Windowsize = (10Mbps * .075)/8 = 96KB

I also changed net.core.rmem/wmem.default/max values to ensure
everything was sane. Currently net.core.rmem/wmem.max is 4MB.

The original throughput was 420KB/s, and upping the window sizes
increased it to 450. Further increasing the window size has had no
effect. SACK and FACK are enabled. The line is not oversubscribed.
Performing the same file copy with a Solaris box as the source
saturates the pipe.

I'm fresh outta ideas. Can anyone be of assistance?

--
Rob on the Web: http://rob.rnovak.net
Electronic Music: http://www.ugotawanit.com
 
Reply With Quote
 
 
 
 
Alexander Clouter
Guest
Posts: n/a

 
      05-04-2004, 07:04 PM
On 2004-04-30, Rob Novak <(E-Mail Removed)> wrote:
>
> Part of the project is to copy a certain amount of data from a data
> center on the east coast to one on the west. We've got a sliver of an
> OC-3 with a CIR of 10Mbps. RTT latency is 70-75ms.
>
> So far, we've only been able to push (at max) 450KB/s down this line.
> Immediately suspecting it to be a TCP window-size problem, I bumped up
> the net.ipv4.tcp_wmem and net.ipv4.tcp_rmem parameters. I saw a
> slight improvement moving from the defaults to:
> min: 8K
> def: 128K
> max: 256K
>
> I figured window size from:
> (windowsize * 8bpB) / RTT = Throughput
> or
> Windowsize = (Throughput * RTT)/8
>
> Windowsize = (10Mbps * .075)/8 = 96KB
>

Aways round up (orders of magnitude you should work to), so use RWIN=128kB
(which you are anyway

> I also changed net.core.rmem/wmem.default/max values to ensure
> everything was sane. Currently net.core.rmem/wmem.max is 4MB.
>
> The original throughput was 420KB/s, and upping the window sizes
> increased it to 450. Further increasing the window size has had no
> effect. SACK and FACK are enabled. The line is not oversubscribed.
> Performing the same file copy with a Solaris box as the source
> saturates the pipe.
>
> I'm fresh outta ideas. Can anyone be of assistance?
>

whats the window size at both ends? Is it this speed in both directions?

I would attach tethereal to the device with

# tethereal -p -n -i ethx -s 40 -w dump

shunt some data and see what ethereal's tcp throughput and rtt graphs show.
This can really help no end.

Send me the blurb if you want.

You also have not mentioned what you are using to shunt the data across, if a
10Mb/s HUB is in the works these normally pack out at 40% if anything else is
on them; however I assume you have a *good* NIC plugged directly into the
OC-3 mcwhatsit.

Cheers

Alex
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BE latency issue Graham. Broadband 5 01-30-2010 12:40 AM
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 11:27 AM
Using IPv4 TCPMSS target with IPv6-in-IPv4 Mark T.B. Carroll Linux Networking 1 03-18-2007 10:30 AM
Added some debugging stuff under net/ipv4, I can see the new function in System.map file, I can't see that under /proc/ksyms once I loaded new kernel, why? santa19992000@yahoo.com Linux Networking 0 08-22-2005 03:45 PM
PCMCIA SMC2835W card not recognized by kernel-2.4.* and kernel-2.6.5 Jorge Ventura Linux Networking 0 05-03-2004 08:08 PM



1 2 3 4 5 6 7 8 9 10 11