From owner-freebsd-bugs@FreeBSD.ORG Tue May 25 02:10:44 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 928AA16A4CE for ; Tue, 25 May 2004 02:10:44 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 881CE43D4C for ; Tue, 25 May 2004 02:10:44 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i4P9ARGB084394 for ; Tue, 25 May 2004 02:10:27 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4P9ARWZ084393; Tue, 25 May 2004 02:10:27 -0700 (PDT) (envelope-from gnats) Resent-Date: Tue, 25 May 2004 02:10:27 -0700 (PDT) Resent-Message-Id: <200405250910.i4P9ARWZ084393@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, dl@leo.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBE6816A4CF for ; Tue, 25 May 2004 02:01:14 -0700 (PDT) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B43343D45 for ; Tue, 25 May 2004 02:01:12 -0700 (PDT) (envelope-from root@atleo6.leo.org) Received: (qmail 37129 invoked from network); 25 May 2004 09:00:54 -0000 Received: from unknown (HELO atleo6.leo.org) (131.159.72.45) by mail.leo.org with SMTP; 25 May 2004 09:00:54 -0000 Received: by atleo6.leo.org (Postfix, from userid 0) id A940E67818; Tue, 25 May 2004 11:00:54 +0200 (CEST) Message-Id: <20040525090054.A940E67818@atleo6.leo.org> Date: Tue, 25 May 2004 11:00:54 +0200 (CEST) From: dl@leo.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/67167: FreeBSDs ftpd has problems under -CURRENT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dl@leo.org List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 09:10:44 -0000 >Number: 67167 >Category: bin >Synopsis: FreeBSDs ftpd has problems under -CURRENT >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 25 02:10:24 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Daniel Lang >Release: FreeBSD 5.2-CURRENT i386 >Organization: LEO >Environment: System: FreeBSD atleo6.leo.org 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sun Apr 11 18:17:54 CEST 2004 langd@atleo6.leo.org:/usr/obj/usr/src/sys/ATLEO6 i386 >Description: I run a heavily loaded ftp-server under FreeBSD 5.2-CURRENT. I am using FreeBSD's own ftpd (/usr/libexec/ftpd) with the following command-line to provide anonymous ftp access: /usr/libexec/ftpd -A -D -l -W -r -S -a ftp.leo.org -p /var/run/ftpd.pid I did so under -STABLE as well. Under -STABLE this performed extraordinary well (much better than proftpd for instance). Under -CURRENT every now and then, the system has trouble to accept new connections. If a connection is established the data transfer is very fast, but sometimes it takes very long to establish the connection, such that clients do time out. I also provide access via HTTP using apache2 linked with libthr. I never have problems accepting connections over http. The throughput is similar, maybe just slighlty below ftp (I get 10MB/s via FTP and 9.3MB/s using HTTP to a machine in the LAN with a 100Mbit/s NIC, so I can saturate the NIC on the client easily, the server has a Gigabit NIC (em0)). Further in the syslog I get tons of the following messages: [..] May 25 00:28:13 atleo6 ftpd[9248]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket May 25 00:30:18 atleo6 ftpd[7836]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket May 25 00:28:03 atleo6 ftpd[9228]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket May 25 00:34:02 atleo6 ftpd[9216]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket May 25 00:36:28 atleo6 ftpd[9698]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket May 25 00:37:07 atleo6 ftpd[9745]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket [..] I know these are poor symptoms, but I am willing to dig into this issue, if I get instructions. I have excluded INVARIANTS and WITNESS from the kernel. >How-To-Repeat: Run a heavy loaded public ftp server under -current with FreeBSD's ftpd. >Fix: unknown >Release-Note: >Audit-Trail: >Unformatted: