From owner-freebsd-net Tue Aug 1 23: 8: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f55.law10.hotmail.com [64.4.15.55]) by hub.freebsd.org (Postfix) with SMTP id 72B2437BB55 for ; Tue, 1 Aug 2000 23:08:02 -0700 (PDT) (envelope-from dispensa@hotmail.com) Received: (qmail 38734 invoked by uid 0); 2 Aug 2000 06:07:04 -0000 Message-ID: <20000802060704.38733.qmail@hotmail.com> Received: from 209.242.124.252 by www.hotmail.com with HTTP; Tue, 01 Aug 2000 23:07:04 PDT X-Originating-IP: [209.242.124.252] From: "Steve Dispensa" To: freebsd-net@freebsd.org Subject: Followup: pthreads + bpf Date: Wed, 02 Aug 2000 01:07:04 CDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org After some additional tinkering, it seems like the combination of bpf and pthreads causes the cpu to go to 100%. I can compile tcpdump normally and it idles at 0% cpu, but if I add the -pthread switch to gcc and relink, it's a 100% cpu situation again. Just guessing here, it seems like when the interface is in promiscuous mode and ioctl'd by bpf calls, read() is returning on no packet rather than blocking as it should, which is causing a busy-loop. Am I off track here? Any advice? TIA. --Steve ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message