Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2000 00:38:39 -0800
From:      Guy Harris <gharris@flashcom.net>
To:        Guy Harris <gharris@flashcom.net>
Cc:        Matt Dillon <dillon@earth.backplane.com>, Dragos Ruiu <dr@kyx.net>, tcpdump-workers@tcpdump.org, ethereal-dev@ethereal.com, snort-devel@lists.sourceforge.net, freebsd-hackers@FreeBSD.ORG, tech@openbsd.org
Subject:   Re: [Ethereal-dev] Re: Fwd: kyxtech: freebsd outsniffed by wintendo !!?!?
Message-ID:  <20001208003839.A352@quadrajet.flashcom.com>
In-Reply-To: <20001207233958.C352@quadrajet.flashcom.com>; from gharris@flashcom.net on Thu, Dec 07, 2000 at 11:39:58PM -0800
References:  <0012072118150Q.09615@smp.kyx.net> <200012080547.eB85lKc17216@earth.backplane.com> <20001207233958.C352@quadrajet.flashcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 07, 2000 at 11:39:58PM -0800, Guy Harris wrote:
> Or, as per my other mail, perhaps using, on Windows, a version of the
> standard I/O library that does bigger writes, hence fewer system calls.

Nope.  According to "strace for NT":

	http://www.securiteam.com/tools/Strace_for_NT_-_low_level_system_calls_tracer.html

and the Windows(R) NT(R)/2000 Native API Reference:

	http://www.newriders.com/books/title.cfm?isbn=1578701996

it's doing 4K writes in the underlying NT system call "NtWriteFile()".

I suspect that running the test on FreeBSD 4.x and tweaking libpcap to
use a 512KB buffer might make a big difference here.

At this point, we might want to limit followups to one or more of:

	tcpdump-workers@tcpdump.org - for discussing changes to libpcap
	to allow the buffer size to be set from an application and/or
	changing the size it initially tries on BSD (the current version
	in CVS starts at 32768 and keeps dividing that in half until it
	finds something that works);

	freebsd-hackers@freebsd.org, tech@openbsd.org - for discussing
	changes to allow the buffer size to be changes with BIOCSBLEN
	even if the BPF device is attached to an interface.

(Both FreeBSD and OpenBSD have the maximum buffer size for BPF as 512KB
in the top of the CVS tree; NetBSD still has it as 32K.)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001208003839.A352>