From owner-freebsd-net@FreeBSD.ORG Thu Jan 29 15:07:23 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 28D66CD6 for ; Thu, 29 Jan 2015 15:07:23 +0000 (UTC) Received: from udns.ultimatedns.net (ultimatedns.net [209.180.214.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F076C7DB for ; Thu, 29 Jan 2015 15:07:22 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t0TF7AeY036698 for ; Thu, 29 Jan 2015 07:07:10 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: References: From: "Chris H" Subject: Re: Zerocopy bpf Date: Thu, 29 Jan 2015 07:07:10 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <8c11690ac977550b52e3494351a44c78@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2015 15:07:23 -0000 On Thu, 29 Jan 2015 12:25:25 +0100 (CET) elof2@sentor.se wrote > Hi! > > q1) > I assume that libpcap has builtin support for checking if sysctl > net.bpf.zerocopy_enable is set to 1, and if so uses zerocopy. > Correct? > > q2) > This should mean that all normal sniffing tools like tcpdump, tshark, > ngrep, argus, etc do NOT need any specific options in order to use > zerocopy. > Correct? > > q3) > How do I see if zerocopy is used or not? 'netstat -B' don't tell me > much, and the tool 'bpfstat' don't seem to exist any more. I can't speak from personal experience to the rest. But as to bpfstat(8); it was merged into netstat(1) ~RELENG_7. --Chris > > q4) > When activating zerocopy, should I immediately see a performance boost on > the machine? (like less drops on a heavily loaded sniffer NIC (running in > monitor mode)) > > /Elof > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"