From owner-freebsd-stable@FreeBSD.ORG Tue Jul 6 21:28:33 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93F9F106564A for ; Tue, 6 Jul 2010 21:28:33 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 249798FC1C for ; Tue, 6 Jul 2010 21:28:32 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id o66LSUJk018973; Tue, 6 Jul 2010 23:28:30 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 7EC2BBAA4; Tue, 6 Jul 2010 23:28:30 +0200 (CEST) Date: Tue, 6 Jul 2010 23:28:30 +0200 From: Roland Smith To: Jeremy Chadwick Message-ID: <20100706212830.GA63307@slackbox.erewhon.net> References: <20100705055105.GA21681@icarus.home.lan> <20100706174155.GA56410@slackbox.erewhon.net> <20100706203222.GA68830@icarus.home.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <20100706203222.GA68830@icarus.home.lan> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Max Laier , David Warren , freebsd-stable@freebsd.org Subject: Re: 8.0 network problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 21:28:33 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 06, 2010 at 01:32:22PM -0700, Jeremy Chadwick wrote: > Back to the problem at hand: >=20 > I wonder if it's lack of "quick" on some rules which is causing the > problem; hard to say,=20 That would stop evaluation of further rules, sure. But it seems most of the rules concern the external interface. _Assuming_ that the samba clients are on the internal interface, it would m= ake sense to put the few rules concerning that interface as early as possible in the list of filter rules, and indeed add the quick keyword. Alternatively, one could consider adding this interface to the list of skip= ped interfaces. This would at least be useful for testing purposes, since it wo= uld preclude pf from processing packages on this interface. If this fixes the problem, there is some problem in the ruleset. > and I'm not sure how to "benchmark" pf. Looking at the output of 'pfctl -vvs rules' would be a start, I think. If t= he rules that are matched most are at the end of the filter rules, all previous rules are evaluated, AFAIK. For more info try 'pfctl -vvs all'. In the past I found it useful to set up a point-to-point connection between two FreeBSD machines, and then do some throughput measusrements using e.g. nc(1). Start with pf disabled, then enhance the ruleset rule-by-rule a= nd see if performance is influenced. A couple of years ago I did this, and IIRC the largest influence I could find was the type of ethernet adapter used. Can't find any notes from that experiment but I could repeat it if is deemed interesting. > Furthermore, remember that the OP can move to another NIC and the > problem goes away[1]. I know there have been issues in the past > reported with em(4) and pf ALTQ, but that isn't in use here. There are lots of other crappy ethernet adapters out there. E.g. re(4) and rl(4) tend to suck in my experience. Of course if the hardware was changed = but not the relevant filter rules, it would default to "pass". :-) Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkwzn/4ACgkQEnfvsMMhpyXs8ACgrI84kATERqep69TTnd4QRYbE dMUAoI3QFzaV3zQiglfpOJuDgPk/+CDF =gizH -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--