From owner-freebsd-current@FreeBSD.ORG Fri Oct 1 19:01:44 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE3F916A4CE; Fri, 1 Oct 2004 19:01:44 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A83B43D1D; Fri, 1 Oct 2004 19:01:44 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CDSf0-0000si-00; Fri, 01 Oct 2004 21:01:42 +0200 Received: from [217.227.144.56] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CDSf0-0001iS-00; Fri, 01 Oct 2004 21:01:42 +0200 From: Max Laier To: freebsd-current@freebsd.org Date: Fri, 1 Oct 2004 21:00:52 +0200 User-Agent: KMail/1.7 References: <200409272240.00356.A.S.Usov@kvi.nl> <20041001132843.GG997@green.homeunix.org> <200410011555.00828.A.S.Usov@kvi.nl> In-Reply-To: <200410011555.00828.A.S.Usov@kvi.nl> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2476214.A0e0HtshI5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200410012101.01067.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: "Alexander S. Usov" Subject: Re: ALTQ/pf troubles X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 19:01:45 -0000 --nextPart2476214.A0e0HtshI5 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 01 October 2004 15:55, Alexander S. Usov wrote: > On Friday 01 October 2004 15:28, Brian Fundakowski Feldman wrote: > > On Mon, Sep 27, 2004 at 10:40:00PM +0200, Alexander S. Usov wrote: > > > Hello !! > > > Just enabling the queueing on the interface with bandwidth =3D=3D DSL > > > bandwidth results in the appox. factor of 2 drop in the speed of the > > > outgoing transfers. > > > > > > >From my experiments I got an impression that to make this slow-down > > > > > > away I have to specify the bandwith around 700Kb, which is twice bigg= er > > > than real. > > > > Are you telling ALTQ to process _incoming_ packets? > > According to the pf manuals it should process only outgoing packets. > And I believe it's the case as the incoming rate doesn't depends on > queieing state. > > Just did an experiment adding only this 2 lines: > =3D=3D=3D > altq on $ext priq bandwidth 350Kb queue {q} > queue q priority 1 priq(default) > =3D=3D=3D > and no queue statements in the filtering rules. > > If I understand the logick of the pf right, it means to create an outbound > queue on $ext with bandwith 350Kb and put all outgoing traffic into it (d= ue > to the (default) statement). > > This results in the outgoing transfer speed of appox. 18KB/s, and incoming > is unaffected and is approx. 117KB/s. > > Increasing bandwith in the altq rule to 700Kb, results in the upload speed > of approx. 30-34 KB/s. Hmmm ... you realize that ALTQ takes *BIT* per second? > Is it a good idea to check the behavior of the ruleset with OpenBSD? =46irst of all a look at your queue statistics would be helpful: $ pfctl -vvsq how many packets are being dropped? Which queues do the packets end up in? If you can easily check OpenBSD behavior, that'd be a good check as well. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2476214.A0e0HtshI5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBXaltXyyEoT62BG0RAmiZAJ0ZpShAa8bQnkurY34mLYbQjxwc1ACaAjzW Sg4NmcvqHYsSb466/+fDDbg= =5n9C -----END PGP SIGNATURE----- --nextPart2476214.A0e0HtshI5--