From owner-svn-src-head@freebsd.org Mon Apr 18 20:14:52 2016 Return-Path: Delivered-To: svn-src-head@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 D790CB1368E; Mon, 18 Apr 2016 20:14:52 +0000 (UTC) (envelope-from loos.br@gmail.com) Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7AA141F18; Mon, 18 Apr 2016 20:14:52 +0000 (UTC) (envelope-from loos.br@gmail.com) Received: by mail-lf0-x22e.google.com with SMTP id j11so230270789lfb.1; Mon, 18 Apr 2016 13:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=vShLhx/+SrOx9kz6mNKKWsYkBqCRDukuko7ldHhi3S4=; b=E8bT8VZ0G2A5iQALnN45G6x5fVcpnwZztHwE3sipCHXZr1s5J1WockK2/4QK44BuSu MmrblFnDMSHHe5vISXUEDGqRguj9TNHN74TAxggUA/xH6z4Hwh/FdHJKosLS0dU7yh2b ybej6navkk4jb6WyHRkdP7vY8wOxZ73C6Yb1lJmQtaa5HlzC1LKSp9TZWC68IO266mnr G5I6IOp0yR7be3z5fszfopfZDa4zQHqcaQpvRMXOMLx1QF2oWeHb5gGSmgL29LE9GY46 /hQFQ+nq4G5KGL2vAffdSMNL9Dxy7i4GiUiiwUKmf8xuAf3EG+bKmQ/ORz+SQxwmrh88 wrEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=vShLhx/+SrOx9kz6mNKKWsYkBqCRDukuko7ldHhi3S4=; b=SP/QnvIRbCf74fD0ADkeD85UM7dJeNP6GeJsQ/d69ogCcWTHYDVBPwjq9KTvJbYA1k fcvgpQGULmOuCYHBfV5isjp9g4tbyiYRyHyl8WAR2HR7oHcGmk7MVNt2fbc3gK53N69t AgkHtzbwPh/TpnfIjZNIYeSazwssRxZGof/nM7V5UPvCPdorvdMTNLu3LVYUilecwB4G Ety0P/q/OKDRr7px45l2/PqS4O+/JlPWMMDh6DghsZtWnpzP4zAjAIsoktKm1tiXpVlE yzXBC1Yvf4Px0HSr5gsHQZddAI1Y6LTNqKEavWLfblI0kL3hQNtZwtvPaoJUIkufpuD2 uU7A== X-Gm-Message-State: AOPr4FXV5CYZN6AElJFmWPX4zp64lLLMxinhX0reEfiJj7PUBkFmXQDaB8PR8Mnqe21eB7RCWtIeKCwucULQFg== MIME-Version: 1.0 X-Received: by 10.112.184.79 with SMTP id es15mr1466062lbc.30.1461010490679; Mon, 18 Apr 2016 13:14:50 -0700 (PDT) Received: by 10.112.130.2 with HTTP; Mon, 18 Apr 2016 13:14:50 -0700 (PDT) In-Reply-To: <20160418061958.GB31516@strugglingcoder.info> References: <201604162054.u3GKstrV027478@repo.freebsd.org> <20160417122012.Horde.-YvMZ5BJuIbDmwm13FS6r4f@webmail.leidinger.net> <20160418061958.GB31516@strugglingcoder.info> Date: Mon, 18 Apr 2016 17:14:50 -0300 Message-ID: Subject: Re: svn commit: r298131 - head/sys/conf From: Luiz Otavio O Souza To: hiren panchasara Cc: Alexander Leidinger , Luiz Otavio O Souza , src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 20:14:52 -0000 On Mon, Apr 18, 2016 at 3:19 AM, hiren panchasara wrote: > On 04/17/16 at 12:20P, Alexander Leidinger wrote: >> >> Quoting Luiz Otavio O Souza (from Sat, 16 Apr 2016 >> 20:54:55 +0000 (UTC)): >> >> > Author: loos >> > Date: Sat Apr 16 20:54:55 2016 >> > New Revision: 298131 >> > URL: https://svnweb.freebsd.org/changeset/base/298131 >> > >> > Log: >> > Add Codel to NOTES. >> >> I haven't found much documentation about this. It looks like it is >> only available in PF, but not in dummynet. Is this correct? Are there >> somewhere examples for the use of codel (options/parameters/HOWTO)? I >> would expect in places where e.g. "red" could be used, but I don't >> find any mention of codel in e.g. the FreeBSD handbook. Yes, this code relies on pf and ALTQ, dummynet support isn't available (yet). Dummynet support is being worked by Rasool Al-Saadi (see 'Dummynet AQM v0.2- CoDel, FQ-CoDel, PIE and FQ-PIE for FreeBSD's ipfw/dummynet' in freebsd-ipfw@) I agree with the lack of documentation, but I couldn't fix the docs myself, the ALTQ section hasn't received any update since the pf import. Examples bellow. > > I'd also appreciate if more details on 1) how to use it 2) under what > scenarios/workloads would this be most beneficial. And more importantly > 3) how was this addition validated. As a parameterless[1] queue algorithm, the usage is very simple: altq on igb0 codelq queue This enables codel queueing on output packets for igb0. Codel can also work together with the other schedulers: altq on igb5 hfsc bandwidth 100Mb queue { q1 } queue q1 on igb5 hfsc ( codel, default ) Codel is expected to help with xDSL links where the link quality can vary with the time. Its use should not produce any negative effect. I'm not aware of any formal validation other than the tests done by pfSense developers (code was written by eri@ at the time) and the beneficial results reported by pfSense users over the years. Luiz [1]: http://www.bufferbloat.net/projects/codel/wiki