From owner-freebsd-current@FreeBSD.ORG Fri Oct 1 13:55:20 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 5237516A4CE; Fri, 1 Oct 2004 13:55:20 +0000 (GMT) Received: from KVIW12.KVI.nl (KVIW12.KVI.nl [129.125.15.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55E9343D48; Fri, 1 Oct 2004 13:55:19 +0000 (GMT) (envelope-from A.S.Usov@KVI.nl) Received: from KVIS10.KVI.nl ("port 39619"@KVIS10.KVI.nl [129.125.27.60]) by KVI.nl (PMDF V6.2-X17 #30869) with ESMTP id <01LFITULLW4CD40ZNB@KVI.nl>; Fri, 01 Oct 2004 15:55:13 +0200 (MET DST) Received: from KVIW14.KVI.nl by KVIS10.KVI.nl (AvMailGate-2.0.2-8) id 30203-69FFA8BC; Fri, 01 Oct 2004 15:55:13 +0200 Received: from kvip88 ("port 56081"@KVIP88.KVI.nl [129.125.15.152]) by KVI.nl (PMDF V6.2-X17 #30869) with ESMTP id <01LFITUCPGG6D40ZNB@KVI.nl>; Fri, 01 Oct 2004 15:55:01 +0200 (MET DST) Date: Fri, 01 Oct 2004 15:55:00 +0200 From: "Alexander S. Usov" In-reply-to: <20041001132843.GG997@green.homeunix.org> To: Brian Fundakowski Feldman Message-id: <200410011555.00828.A.S.Usov@kvi.nl> Organization: KVI MIME-version: 1.0 Content-type: text/plain; charset=koi8-u Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.7 X-AntiVirus: checked by AntiVir MailGate (version: 2.0.2-8; AVE: 6.27.0.12; VDF: 6.27.0.83; host: kvi.nl) References: <200409272240.00356.A.S.Usov@kvi.nl> <20041001132843.GG997@green.homeunix.org> cc: current@freebsd.org 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 13:55:20 -0000 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 == 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 bigger > > 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: === altq on $ext priq bandwidth 350Kb queue {q} queue q priority 1 priq(default) === 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 (due 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. Is it a good idea to check the behavior of the ruleset with OpenBSD? -- Best regards, Alexander.