From owner-freebsd-pf@FreeBSD.ORG Thu Feb 8 09:27:05 2007 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D209B16A417 for ; Thu, 8 Feb 2007 09:27:02 +0000 (UTC) (envelope-from marko.lerota@claresco.hr) Received: from zid.claresco.hr (zid.claresco.hr [85.114.42.226]) by mx1.freebsd.org (Postfix) with ESMTP id 17B1313C481 for ; Thu, 8 Feb 2007 09:27:01 +0000 (UTC) (envelope-from marko.lerota@claresco.hr) Received: (qmail 74028 invoked by uid 1001); 8 Feb 2007 09:25:48 -0000 To: marceloc@espoltel.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWgnbRLVpRNVY9jMRPh s21jSlEyNVX45Mv4zI+sbUclFAtMVpT8V0lFAAACZ0lEQVR4nG3Tv2vbQBQHcFMogWyeNeVK BLXGl5j6xnABOaNTuXFGmWpwtw519yj4soW6AatT4GKD3+aDZrl/rt/Tr9qlGiz7Pn7v3bsf HVc/NrIiSfElqH53GgijcCqzk/+AmBF5cN0DsFlIRGMh/oHuqxkTM6VlzB4EoZEs2aSZOASb EQJYZpweQshE697GTDndBXtgp9LIT9+OpDGHEfb9knk+nx+jfN1JCVZMCl6XwFm0a2EXztZD 3s4fj47ZbKI2VeBmJImeEfGLJ+M9sDPilX7IB5rN6sdfcGhuoHU+LC4nxfnI7YOJtdb95Gb+ fbgJ2uJ2ZgaA++f5ZzBqNCCYfMTd5q0BfBVNqm7I8gUjQ+YtXotRW6PH9AEj+dKs/KuNQAl5 o/NY+QkonW8aQAl0oXMYPvRiXIM4pRJifbXytnhTA8alBx/jefG2ar3DBlt34/PXz9M+nMVN iNaPUdCApJc2ItejOmLGoK1qQLV9pJmXBnL10DYoBA5aHNfj8ZNwZa5O4CzgTJeilKJmrQJs IHIt1/7/Sg2p3iq/Hz0/5W05rq4M9aN2B5FLohUP4ylVyfxhEIjAs8J4PhIJ9U+CEroogib5 BXAf7bB4vkfAzgPFt1tM9sJZAOH+lCexhwswuNtim4QTZdokqo4o89LkH7V6iFxICeqfp+Wh fmUuGPunLj2Meti6Cn4DjJ/UReROqR+aqawAi/JkfgKE64rrfkhjU8MtT8ivR4S5n6Yo08A7 HvgAlHDWRSGlNSDxwK9HtXy4FS2I60EdUIJM+Ut9OZNJG4CpbEQW1VBQoQoPuBw2EVa4P0u0 TgzQF+VoAAAAAElFTkSuQmCC In-Reply-To: <1170892051.4715.32.camel@localhost.localdomain> (Marcelo Celleri's message of "Wed, 07 Feb 2007 18:47:31 -0500") References: <1170892051.4715.32.camel@localhost.localdomain> Organization: *BSD Users - Fanatics Dept. From: Marko Lerota Date: Thu, 08 Feb 2007 10:25:48 +0100 Message-ID: <86ireddmqr.fsf@sparrow.local> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-pf@freebsd.org Subject: Re: Borrow in CBQ doesn't work 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, 08 Feb 2007 09:27:06 -0000 Marcelo Celleri writes: > Hi everyone, > > I'm working with ALTQ, but I realize that the borrow option in cbq > queues doesn't work at least like the manual says "A child class can > borrow bandwidth from its parent class as long as excess bandwidth is > available" You are not the only one who find that problem. It must be a bug. I switched to hfsc and borrowing works fine. altq on $int_if hfsc bandwidth 4800Kb queue { def adm usr ser} queue def bandwidth 30Kb hfsc (default realtime 30Kb) queue usr bandwidth 600Kb hfsc (red realtime 600Kb) queue adm bandwidth 2000Kb hfsc (red realtime 2000Kb) queue ser bandwidth 1000Kb hfsc (red realtime 1000Kb) pass inet proto { tcp, udp } from $admins to any keep state queue adm pass inet proto { tcp, udp } from $users to any keep state queue usr pass inet proto { tcp, udp } from $servers to any keep state queue ser I have this in kernel options ALTQ options ALTQ_CBQ # Class Bases Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) options ALTQ_NOPCC # Required for SMP build options ALTQ_DEBUG options ALTQ_PRIQ # Priority Queueing -- One cannot sell the earth upon which the people walk Tacunka Witco