Re: calcru: runtime went backwards

From: Daniel Lang <dl_at_leo.org>
Date: Wed, 14 Jul 2004 21:34:16 +0200
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_at_leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
Received on Wed Jul 14 2004 - 17:34:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:01 UTC