From owner-freebsd-questions@FreeBSD.ORG Tue Dec 13 13:15:53 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDBB0106564A for ; Tue, 13 Dec 2011 13:15:53 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 848D48FC1D for ; Tue, 13 Dec 2011 13:15:52 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so7863009vcb.13 for ; Tue, 13 Dec 2011 05:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=HSO9vHt8QTH5Fo3VRizXFIqBSP2z9J7dZhEVBZEhke8=; b=vVvnejgmq+dJmgOYerzowEMU3LVZ77IRNuDhmDs+cNYKAVCY3jWeejXln/gAF+JMan WvGrdcPlSttzlF+pBPam2qPQuEDKYkJ6xHN0dplpCgJNlGjxc/dmGNSD1cozy6hI5g+l zUTADi3ukxi4mICYST0079aQVYc7gaEocs890= Received: by 10.220.227.72 with SMTP id iz8mr1386884vcb.67.1323782152122; Tue, 13 Dec 2011 05:15:52 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id dg8sm7967164vdb.4.2011.12.13.05.15.50 (version=SSLv3 cipher=OTHER); Tue, 13 Dec 2011 05:15:51 -0800 (PST) Date: Tue, 13 Dec 2011 13:15:47 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20111213131547.27bda580@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Implementation details of altq hfsc scheduler in pf 4.5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 13:15:53 -0000 On Mon, 12 Dec 2011 21:51:39 -0500 Maxim Khitrov wrote: > I've read everything I could find on the topic of configuring hfsc > altq in pf (4.5, FreeBSD 9), but I still have no clear idea of how it > is actually implemented. I even started looking through the source > code, but that might take a while. My main questions are: > > 1. Difference between 'realtime' and 'linkshare'? It's about latency, realtime has priority over non-realtime. > 2. In service curve configuration (m1, d, m2), what is 'd' relative > to? It looks like it's a leaky-bucket algorithm. It's not really relative to anything except for special cases like a traffic step-function. > 3. Are priorities actually used for anything? Priority determines which queue is serviced next when more than one is under its limit.