From owner-freebsd-current@FreeBSD.ORG Wed Aug 20 09:32:55 2003 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 7575816A4BF for ; Wed, 20 Aug 2003 09:32:55 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FAD443F93 for ; Wed, 20 Aug 2003 09:32:51 -0700 (PDT) (envelope-from freebsd-current@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19pVuA-0000Mi-00 for ; Wed, 20 Aug 2003 18:33:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19pVu9-0000Ma-00 for ; Wed, 20 Aug 2003 18:33:49 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19pVtA-0001j4-00 for ; Wed, 20 Aug 2003 18:32:48 +0200 From: Jesse Guardiani Date: Wed, 20 Aug 2003 12:32:35 -0400 Organization: WingNET Lines: 153 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: dhclient/route buggy under 5.1-RELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 16:32:55 -0000 Just an FYI: I've noticed some bugginess in dhclient or route under 5.1-RELEASE. It seems to be tied to route handling somehow. For example, last night I shut down my wi0 interface and brought up my fxp0 interface using dhclient. For some reason, ANYTHING that had to access the network would just "spin" (for lack of a better word). CPU was at or near 98% _idle_, but any programs that used the network were incredibly slow to start (like, 30 minutes for LinNeighborhood, etc...). I also ran netstat, and it "hung" after writing the field descriptions to the terminal. Bringing my fxp0 interface down would always solve the problem and all programs would speed up again (but obviously they no longer had network connectivity). I solved the problem by killing dhclient, flushing my routes, and adding my default route back in using 'route add'. I ran ktrace on my mozilla process while all of this was happening (the window hadn't appeared yet, but mozilla-bin was running), and here is a sample of the kdump output: ------ BEGIN kdump OUTPUT ------ 946 mozilla-bin RET sendto 28/0x1c 946 mozilla-bin CALL gettimeofday(0xbfbfde90,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL poll(0x8088000,0x1,0) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL poll(0x8088000,0x2,0x1388) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL gettimeofday(0x28875178,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL fstat(0xd,0xbfbfdda0) 946 mozilla-bin RET fstat 0 946 mozilla-bin CALL close(0xd) 946 mozilla-bin RET close 0 946 mozilla-bin CALL socket(0x2,0x2,0) 946 mozilla-bin RET socket 13/0xd 946 mozilla-bin CALL fcntl(0xd,0x3,0) 946 mozilla-bin RET fcntl 2 946 mozilla-bin CALL fcntl(0xd,0x4,0x6) 946 mozilla-bin RET fcntl 0 946 mozilla-bin CALL sendto(0xd,0xbfbfe130,0x1c,0,0x28956730,0x10) 946 mozilla-bin GIO fd 13 wrote 28 bytes "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0 trevarthan\0\0\^A\0\^A" 946 mozilla-bin RET sendto 28/0x1c 946 mozilla-bin CALL gettimeofday(0xbfbfde90,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL poll(0x8088000,0x1,0) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL poll(0x8088000,0x2,0x1388) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL gettimeofday(0x28875178,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL fstat(0xd,0xbfbfdda0) 946 mozilla-bin RET fstat 0 946 mozilla-bin CALL close(0xd) 946 mozilla-bin RET close 0 946 mozilla-bin CALL socket(0x2,0x2,0) 946 mozilla-bin RET socket 13/0xd 946 mozilla-bin CALL fcntl(0xd,0x3,0) 946 mozilla-bin RET fcntl 2 946 mozilla-bin CALL fcntl(0xd,0x4,0x6) 946 mozilla-bin RET fcntl 0 946 mozilla-bin CALL sendto(0xd,0xbfbfe130,0x1c,0,0x28956740,0x10) 946 mozilla-bin GIO fd 13 wrote 28 bytes "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0 trevarthan\0\0\^A\0\^A" 946 mozilla-bin RET sendto 28/0x1c 946 mozilla-bin CALL gettimeofday(0xbfbfde90,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL poll(0x8088000,0x1,0) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL poll(0x8088000,0x2,0x1388) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL gettimeofday(0x28875178,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL fstat(0xd,0xbfbfdda0) 946 mozilla-bin RET fstat 0 946 mozilla-bin CALL close(0xd) 946 mozilla-bin RET close 0 946 mozilla-bin CALL socket(0x2,0x2,0) 946 mozilla-bin RET socket 13/0xd 946 mozilla-bin CALL fcntl(0xd,0x3,0) 946 mozilla-bin RET fcntl 2 946 mozilla-bin CALL fcntl(0xd,0x4,0x6) 946 mozilla-bin RET fcntl 0 946 mozilla-bin CALL sendto(0xd,0xbfbfe130,0x1c,0,0x28956730,0x10) 946 mozilla-bin GIO fd 13 wrote 28 bytes "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0 trevarthan\0\0\^A\0\^A" 946 mozilla-bin RET sendto 28/0x1c 946 mozilla-bin CALL gettimeofday(0xbfbfde90,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL poll(0x8088000,0x1,0) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL poll(0x8088000,0x2,0x2710) 946 mozilla-bin RET poll 0 946 mozilla-bin CALL gettimeofday(0x28875178,0) 946 mozilla-bin RET gettimeofday 0 946 mozilla-bin CALL kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00) 946 mozilla-bin RET kevent 0 946 mozilla-bin CALL fstat(0xd,0xbfbfdda0) 946 mozilla-bin RET fstat 0 946 mozilla-bin CALL close(0xd) 946 mozilla-bin RET close 0 946 mozilla-bin CALL socket(0x2,0x2,0) 946 mozilla-bin RET socket 13/0xd 946 mozilla-bin CALL fcntl(0xd,0x3,0) 946 mozilla-bin RET fcntl 2 946 mozilla-bin CALL fcntl(0xd,0x4,0x6) 946 mozilla-bin RET fcntl 0 946 mozilla-bin CALL sendto(0xd,0xbfbfe130,0x1c,0,0x28956740,0x10) 946 mozilla-bin GIO fd 13 wrote 28 bytes "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0 trevarthan\0\0\^A\0\^A" ------ END kdump OUTPUT ------ I seem to remember someone else having trouble with this same (or similar) thing a month or so ago. Again, just an FYI. I'm not sure what caused it. Thanks! -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net