Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Slawa Olhovchenkov                   2:5030/500     20 Nov 2006  14:46:30
 To : All
 Subject : Вести с полей
 -------------------------------------------------------------------------------- 
 
 
 From: Andre Oppermann <andre@freebsd.org>
 Subject: Automatic TCP send socker buffer sizing
 
 This is a patch adding automatic TCP send socket buffer sizing.  Normally
 the socket buffers are static (either derived from global defaults or set
 with setsockopt) and do not adapt to real network conditions.  Two things
 happen: a) your socket buffers are too small and you can't reach the full
 potential of the network between both hosts; b) your socket buffers are
 too big and you waste a lot of kernel memory for data just sitting around.
 
 With automatic TCP send socket buffers we can start with a small buffer
 and quickly grow it in parallel with the TCP congestion window to match
 real network conditions.
 
 FreeBSD has a default 32K send socket buffer.  This supports a maximal
 transfer rate of only slightly more than 2Mbit/s on a 100ms RTT trans-
 continental link.  Or at 200ms just above 1Mbit/s.  With TCP send buffer
 auto scaling and the default values below it supports 20Mbit/s at 100ms
 and 10Mbit/s at 200ms.  That's an improvement of factor 10, or 1000%.
 
 New sysctl's are:
 
  net.inet.tcp.sndbuf_auto=1     (enabled)
  net.inet.tcp.sndbuf_inc=8192   (8K, step size)
  net.inet.tcp.sndbuf_max=262144 (256K, growth limit)
 
 The patch is available here:
 
  http://people.freebsd.org/~andre/tcp_auto_sndbuf-20061116.diff
 
 Any testers, especially with busy FTP servers, are very welcome.
 
 A RELENG_6 version (for FreeBSD 6.x) of the patch is here:
 
  http://people.freebsd.org/~andre/tcp_auto_sndbuf-20061116-RELENG_6.diff
 
 Just apply this patch and recompile your kernel.  It is activated by default.
 Be aware that all socket buffer sizing events get logged to syslog under
 LOG_DEBUG.  This may affect overall system performance and you may want to
 disable logging to disk of this in syslogd.conf.
 ... Ангелы от дьвола недалеко падают
 --- GoldED+/BSD 1.1.5
  * Origin:  (2:5030/500)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Вести с полей   Slawa Olhovchenkov   20 Nov 2006 14:46:30 
 Вести с полей   Alex Semenyaka   20 Nov 2006 19:20:42 
 Вести с полей   Slawa Olhovchenkov   21 Nov 2006 03:26:02 
 Вести с полей   Alex Semenyaka   21 Nov 2006 04:25:12 
 Вести с полей   Slawa Olhovchenkov   21 Nov 2006 12:34:12 
 Вести с полей   Alex Semenyaka   21 Nov 2006 14:50:50 
 Вести с полей   Boris Kovalenko   23 Nov 2006 09:54:43 
 Вести с полей   Alex Semenyaka   23 Nov 2006 15:37:00 
 Вести с полей   Boris Kovalenko   23 Nov 2006 10:16:12 
 Вести с полей   Alex Semenyaka   23 Nov 2006 15:59:58 
 Re: Вести с полей   Vadim Goncharov   24 Nov 2006 01:29:13 
 Вести с полей   Alex Semenyaka   24 Nov 2006 08:55:30 
Архивное /ru.unix.bsd/2221456187e7.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional