From owner-cvs-all@FreeBSD.ORG Fri Jan 9 06:01:56 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C3A416A4CE for ; Fri, 9 Jan 2004 06:01:56 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D8A43D53 for ; Fri, 9 Jan 2004 06:01:49 -0800 (PST) (envelope-from andre@freebsd.org) Received: (qmail 95289 invoked from network); 9 Jan 2004 14:01:48 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 9 Jan 2004 14:01:48 -0000 Message-ID: <3FFEB449.1C32B5FD@freebsd.org> Date: Fri, 09 Jan 2004 15:01:45 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: David Xu References: <200401081740.i08He8J9063202@repoman.freebsd.org> <3FFEAFC2.8070303@freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/netinet ip_icmp.c tcp.h tcp_input.c tcp_subr.ctcp_usrreq.c tcp_var.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2004 14:01:56 -0000 David Xu wrote: > > I got following messages when I am running mysql stress test suite, > and the test can not be completed. > > "too many small tcp packets from 128.0.0.1:20672, av. 91byte/packet, > dropping connection" You can set net.inet.tcp.minmssoverload to a higher value than the default of 1,000. I suggest trying with 2,000 as next step and see if it still overloads. Appearently my default of 1,000 pps is fine for normal use but too low for some edge cases. Could you check the MySQL source code if it has a setsockopt() setting the TCP_NODELAY option? That would help to explain a lot. -- Andre > David Xu > > Andre Oppermann wrote: > > andre 2004/01/08 09:40:07 PST > > > > FreeBSD src repository > > > > Modified files: > > sys/netinet ip_icmp.c tcp.h tcp_input.c tcp_subr.c > > tcp_usrreq.c tcp_var.h > > Log: > > Limiters and sanity checks for TCP MSS (maximum segement size) > > resource exhaustion attacks. > > > > For network link optimization TCP can adjust its MSS and thus > > packet size according to the observed path MTU. This is done > > dynamically based on feedback from the remote host and network > > components along the packet path. This information can be > > abused to pretend an extremely low path MTU.