Window sizes.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

I'm trying to get some performance out of some gigabit ethernet
cards. Tweaking here and there we're now up to over 50 mbyte per
second. 

However, I think there is "more to be had": we're not close to the
wire speed, and both machines still have CPU free. (not only measured
through top and friends, but also measured with a concurrently running
"bogomips counter" (Attached below).)


The important settings we've changed to get to this point are: 

tcp_mem:1048576 1048576 1048576
tcp_rmem:131072 131072  131072
tcp_wmem:131072 131072  131072

and the MTU for the link to 6000 (that's max for one of the cards that
we have)

but I still see only 32k of advertized "window". And at those speeds,
the window can easily be "too small". We would therefore like the window
to be advertized a bit larger.....


tcp_window_scaling:1

is already set at 1. What else do we need to change to get the
advertized window size to go up?

				Roger. 

----------------------------------------------------------

#include <stdio.h>
#include <signal.h>
#include <unistd.h>

volatile int count;



void alrm (int sig)
{
  static int oldcount=0;

  if (sig) {
    printf ("%d\n",  count-oldcount);
    oldcount = count;
  }
  signal (SIGALRM, alrm);
  alarm (1);
}

int main (int argc, char **argv)
{
  alrm (0);

  while (1)
    count ++;
}




-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots. 
* There are also old, bald pilots. 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux