From owner-freebsd-pf@FreeBSD.ORG Thu Dec 4 16:49:51 2008 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDE01106564A for ; Thu, 4 Dec 2008 16:49:50 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: from mail-qy0-f18.google.com (mail-qy0-f18.google.com [209.85.221.18]) by mx1.freebsd.org (Postfix) with ESMTP id 805918FC12 for ; Thu, 4 Dec 2008 16:49:50 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: by qyk11 with SMTP id 11so5074548qyk.19 for ; Thu, 04 Dec 2008 08:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:message-id :date:subject:from:to:user-agent:mime-version:content-type :content-transfer-encoding:x-priority:importance:sender; bh=orwDvRXY/mDtXhV6bZIJLLCx+Gt7vXrFPhcqE4Ej/9M=; b=C3kqdbFLDW164Lv6gtW6ImINrWNqzK3mCa4W0Rkb7/DFMeZlPEF7/huiT86O6FBK+n e9NkBA/Fu83RGNij2mmoLY364DJ8oFVOh/KCWCypOV+5pDj+QT4v9KLKIfgdxeR+ILlw Ax6KIZBGg0r0x1mXh9JU4JTb9CRCZPwFkhUh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:subject:from:to:user-agent:mime-version :content-type:content-transfer-encoding:x-priority:importance:sender; b=sG+kNkvVZ2dUeD7Bik46gH5wzYBOgWYFaoSqntAbY8sx/VMudO4vMqryw1A0IumjtF bJNbsdaaYuoO4JNByN1cxa0anY/qrtlPBlpYeVYdbiJcSJ1xjdtOEbm7UkKbieo7gtzp WceomxAmNHKhCbAHRIaIcToKV3WdiIIEYXg+0= Received: by 10.214.12.8 with SMTP id 8mr15023789qal.65.1228407504941; Thu, 04 Dec 2008 08:18:24 -0800 (PST) Received: from cygnus.homeunix.com ([189.71.18.211]) by mx.google.com with ESMTPS id 6sm7164309ywn.0.2008.12.04.08.18.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Dec 2008 08:18:24 -0800 (PST) Received: by cygnus.homeunix.com (Postfix, from userid 80) id 7D747B8070; Thu, 4 Dec 2008 13:18:16 -0300 (BRT) Received: from 200.186.60.37 (proxying for 10.12.1.211, 10.12.1.3) (SquirrelMail authenticated user matheus) by cygnus.homeunix.com with HTTP; Thu, 4 Dec 2008 14:18:16 -0200 (BRST) Message-ID: <1faecc59f0d150fd76b4c92c6043aaf8.squirrel@cygnus.homeunix.com> Date: Thu, 4 Dec 2008 14:18:16 -0200 (BRST) From: "Nenhum_de_Nos" To: freebsd-pf@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Sender: Nenhum_de_Nos Subject: issue with hfsc X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 16:49:51 -0000 hail, I have 7-STABLE running as a router, and now I found to have this issue: altq on $ext_if bandwidth 310Kb hfsc queue { ack_dns, ack_ssh, ack_msn, ack_http, ack_http2, ack_bolo, ack_jogos } queue ack_dns bandwidth 7% priority 7 qlimit 500 hfsc (realtime 5%) queue ack_ssh bandwidth 10% priority 6 qlimit 500 hfsc (realtime 20%) {ssh_bulk, ssh_login} queue ack_jogos bandwidth 20% priority 5 qlimit 500 hfsc (realtime 20%) queue ack_msn bandwidth 10% priority 4 qlimit 500 hfsc (realtime 5%) queue ack_http bandwidth 35% priority 3 qlimit 500 hfsc (realtime 15%) queue ack_http2 bandwidth 13% priority 6 qlimit 500 hfsc (realtime 10%) # queue ack_bolo bandwidth 1% priority 1 qlimit 500 hfsc (upperlimit 10% default) queue ack_bolo bandwidth 1% priority 1 qlimit 500 hfsc (realtime 1% default) altq on $int_if bandwidth 100Mb hfsc queue { http, ssh, dns, msn, bolo, jogos, lan } queue dns bandwidth 70Kb priority 7 qlimit 500 hfsc (realtime 50Kb) queue ssh bandwidth 100Kb priority 6 qlimit 500 hfsc (realtime 100Kb ) queue msn bandwidth 50Kb priority 5 qlimit 500 hfsc (realtime 50Kb) queue jogos bandwidth 100Kb priority 4 qlimit 500 hfsc (realtime 100Kb) queue http bandwidth 500Kb priority 3 qlimit 500 hfsc (realtime 350Kb) queue bolo bandwidth 180Kb priority 2 qlimit 500 hfsc (realtime 50Kb default) my problem is that http2 (and I assume the others also) just use all upload when ack_bolo has upperlimit XX, not with realtime YY. this "bolo" rule is the bulk (as for calomel's pf howto) and this should be the least packets to go. http2 is for Folding@Home uploads, to be more than ack_bolo (p2p) and less than http. if I use uperlimit 10%, it works ok, but when not uploading from F@H, I loose bandwidth for p2p. if I put realtime 1%, it takes almost all bandwidth :( if anyone has anything to help, thanks in advance, matheus -- We will call you cygnus, The God of balance you shall be