From owner-freebsd-net@FreeBSD.ORG Tue Dec 27 13:06:19 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8595B16A41F for ; Tue, 27 Dec 2005 13:06:19 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74B7243D4C for ; Tue, 27 Dec 2005 13:06:18 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn (localhost [127.0.0.1]) by thorn.pobox.com (Postfix) with ESMTP id A5E49DA; Tue, 27 Dec 2005 08:06:39 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id 7257519D9; Tue, 27 Dec 2005 08:06:38 -0500 (EST) Received: from lists by mappit.local.linnet.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1ErEWs-0000pQ-VL; Tue, 27 Dec 2005 13:06:15 +0000 Date: Tue, 27 Dec 2005 13:06:14 +0000 From: Brian Candler To: Skylar Thompson Message-ID: <20051227130614.GA3148@uk.tiscali.com> References: <43B03332.2010904@cs.earlham.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B03332.2010904@cs.earlham.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: DHCP oddity X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 13:06:19 -0000 On Mon, Dec 26, 2005 at 12:15:14PM -0600, Skylar Thompson wrote: > While doing some network stress-tests from a dual-CPU x86 FreeBSD 5.4 > server, I noticed that a "ping -f" drives dhcpd's CPU usage way up. I > put dhcpd into debug mode and didn't get any error messages. I then ran > dhcpd with strace, and saw loads of these messages when I started the > ping flood: > > select(8, [?], [?], [?], NULL) = 1 () > gettimeofday({...}, NULL) = 0 > recvfrom(4, 0xbfbfe090, 1500, 0, {...}, [?]) = 84 > select(8, [?], [?], [?], NULL) = 1 () > gettimeofday({...}, NULL) = 0 > recvfrom(4, 0xbfbfe090, 1500, 0, {...}, [?]) = 84 > > Does anyone know why this would happen? Were you running tcpdump or similar at the same time, such that the interface was put into promiscuous mode? Check using ifconfig that it is not (i.e. there is no PROMISC flag shown)