From owner-freebsd-current@FreeBSD.ORG Wed Jul 14 19:34:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B700816A4CE for ; Wed, 14 Jul 2004 19:34:17 +0000 (GMT) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25B5C43D5E for ; Wed, 14 Jul 2004 19:34:17 +0000 (GMT) (envelope-from langd@informatik.tu-muenchen.de) Date: Wed, 14 Jul 2004 21:34:16 +0200 From: Daniel Lang To: Doug White Message-ID: <20040714193415.GA4481@atrbg11.informatik.tu-muenchen.de> Mail-Followup-To: Doug White , current@freebsd.org References: <20040714170519.GA4100@atrbg11.informatik.tu-muenchen.de> <20040714102226.B7621@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040714102226.B7621@carver.gumbysoft.com> X-Geek: GCS/CC d-- s: a- C++$ UBS++++$ P+++$ L- E-(---) W+++(--) N++ o K w--- O? M? V? PS+(++) PE--(+) Y+ PGP+ t++ 5+++ X R+(-) tv+ b+ DI++ D++ G++ e+++ h---(-) r+++ y+ User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: current@freebsd.org Subject: Re: calcru: runtime went backwards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 19:34:17 -0000 Hi Doug, Doug White wrote on Wed, Jul 14, 2004 at 10:24:54AM -0700: [..] > > 1. I get tons of messages like this on the console: > > > > calcru: runtime went backwards from 31915600 usec to 31915590 usec for pid 1265 (httpd) > > FreeBSD version or source update time would be nice. sys/param.h: #define __FreeBSD_version 502120 kern.osreldate: 502120 source updated I guess July 6th, with some manually applied patches: ./dev/sio/sio.c.patch (fix by Bruce Evans) ./kern/subr_witness.c.patch (fix by John Baldwin) ./netinet/tcp_output.c.patch (only diagnostics) > Do you have WITNESS and/or INVARIANTS enabled? Yes both. > > It always seems to be a httpd process. httpd is apache2 linked with > > "libthr". It especially happens if I use the 'ps' and the 'top' > > command. If this happens, the controlling terminal where the > > command (e.g. ps) was issued, hangs for a while. Everything else > > seems to be fine, though. > > > > I recall that there was a thread in -current about this matter, > > but I couldn't find any solution right now... > > There aren't a lot of libthr uses... thought of trying libpthread? Yes sure. But I thought Apache is the showcase application for libthr and the corresponding threading model. Also, I guess a more widespread use should help ironing out any issues with that. [..] > > Jul 14 18:04:23 atleo6 ftpd[82055]: getsockname (/usr/libexec/ftpd): Socket operation on non-socket > > [..] > > > > What could be wrong with ftpd here? I thought about ktracing ftpd, but > > there are 200-300 concurrent ftpd processes active and the messages > > appear very irregulary. If I could ktrace the parent ftpd and all > > its childen, I'm afraid the trace-log would fill up all disk-space > > before the problem even appears... Suggestions are appreciated > > though. > > Is this the stock ftpd? Yes, indeed (should be obvious from the path /usr/libexec/ftpd). I start ftpd standalone with the following options: /usr/libexec/ftpd -A -D -l -W -r -S -a ftp.leo.org -p /var/run/ftpd.pid Cheers, Daniel -- IRCnet: Mr-Spock - Eddie would go! - Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/