From owner-freebsd-questions@FreeBSD.ORG Tue Dec 1 11:08:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 818C2106568F for ; Tue, 1 Dec 2009 11:08:33 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 11C9D8FC08 for ; Tue, 1 Dec 2009 11:08:32 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NFQap-0006I3-I9 for freebsd-questions@freebsd.org; Tue, 01 Dec 2009 12:08:27 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2009 12:08:27 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2009 12:08:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Tue, 01 Dec 2009 12:07:52 +0100 Lines: 41 Message-ID: References: <63450BC7-7E22-4448-B030-63F34AD00749@corp.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.23 (X11/20090928) In-Reply-To: <63450BC7-7E22-4448-B030-63F34AD00749@corp.sonic.net> Sender: news Subject: Re: tcp delays in jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 11:08:33 -0000 William Taylor wrote: > I recently started having a problem with tcp connections in one of my jails. > Im running 4.9-stable I guess it will not do any good to tell you to upgrade to 8.0? :) > both sendmail and perdition experience the same problem. I even tried stopping > everything on the box and the problem still persists. Just to verify - the problem is on the side of the servers (TCP listeners)? > Connections to other jails on different ip's on the same box are fine. > There seems to be about a 5 second delay. > > From this snippet of a ktrace I did you can see what looks to be a delay of about 5 seconds after the CALL kevent I'm not sure what you are tracing but this trace looks like something having to do with DNS. Does DNS resolve properly on the box? Reverse DNS also? Some servers, ssh and probably sendmail also, do a reverse DNS lookup on the connecting client. > 86872 perdition 1259617190.144575 GIO fd 6 wrote 43 bytes > "n\M^]\^A\0\0\^A\0\0\0\0\0\0\^B18\^B96\^B81\^C206\ain-addr\^Darpa\0\0\f\0\^A" > 86872 perdition 1259617190.144584 RET sendto 43/0x2b > 86872 perdition 1259617190.144592 CALL gettimeofday(0xbfbfde9c,0) > 86872 perdition 1259617190.144604 RET gettimeofday 0 > 86872 perdition 1259617190.144619 CALL kevent(0x4,0xbfbfdec0,0x1,0xbfbfdec0,0x1,0xbfbfdea4) > 86872 perdition 1259617195.147032 RET kevent 0 > 86872 perdition 1259617195.147085 CALL close(0x6) > 86872 perdition 1259617195.147120 RET close 0 > 86872 perdition 1259617195.147138 CALL socket(0x2,0x2,0) > 86872 perdition 1259617195.147150 RET socket 6 > 86872 perdition 1259617195.147159 CALL sendto(0x6,0xbfbfe100,0x2b,0,0x28269b60,0x10) > 86872 perdition 1259617195.147186 GIO fd 6 wrote 43 bytes > > > Any ideas of what I can do to figure this out? Just the generic ones... try seeing if DNS and reverse DNS work first.