From owner-freebsd-pf@freebsd.org Wed Aug 10 09:12:00 2016 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5A34BB0FB7 for ; Wed, 10 Aug 2016 09:12:00 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 935971519 for ; Wed, 10 Aug 2016 09:12:00 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [150.158.232.205] (vega.codepro.be [IPv6:2a01:4f8:162:1127::3]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 5C1F39ED8; Wed, 10 Aug 2016 11:11:57 +0200 (CEST) From: "Kristof Provost" To: "Radek =?utf-8?q?Krej=C4=8Da?=" Cc: "freebsd-pf@freebsd.org" Subject: Re: Max altq bandwidth 4.26 Gbit Date: Wed, 10 Aug 2016 11:11:53 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6044) X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 10 Aug 2016 09:12:00 -0000 On 10 Aug 2016, at 9:28, Radek KrejĨa wrote: > I need to shape 10G traffic, but I cant make bandwidth higher than > 4.26 Gbit: > > pfctl shows: > > altq on int0 cbq bandwidth 4.26Gb tbrsize 36000 queue { > default_nat.............. > > but in pf.conf is: > > altq on $int_if cbq bandwidth 8550Mb queue { default_nat.......... > > or > > altq on $int_if cbq bandwidth 10Gb queue { default_nat........ > That looks like you might be hitting the maximum of an unsigned integer. Try using relative specifications (i.e. as a percentage) instead. Regards, Kristof