From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-01-ewr.dyndns.com (mxout-127-ewr.mailhop.org [216.146.33.127]) by lists.bufferbloat.net (Postfix) with ESMTP id D5AF92E0149 for ; Fri, 18 Feb 2011 19:52:22 -0800 (PST) Received: from scan-01-ewr.mailhop.org (scanner [10.0.141.223]) by mail-01-ewr.dyndns.com (Postfix) with ESMTP id 68C041F5F0A for ; Sat, 19 Feb 2011 03:44:40 +0000 (UTC) X-Spam-Score: -1.0 (-) X-Mail-Handler: MailHop by DynDNS X-Originating-IP: 209.85.214.43 Received: from mail-bw0-f43.google.com (mail-bw0-f43.google.com [209.85.214.43]) by mail-01-ewr.dyndns.com (Postfix) with ESMTP id 3768C1F4B98 for ; Sat, 19 Feb 2011 03:44:31 +0000 (UTC) Received: by bwz14 with SMTP id 14so4337810bwz.16 for ; Fri, 18 Feb 2011 19:44:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.121.143 with SMTP id h15mr1384108bkr.42.1298087070287; Fri, 18 Feb 2011 19:44:30 -0800 (PST) Sender: njs@vorpus.org Received: by 10.204.54.4 with HTTP; Fri, 18 Feb 2011 19:44:30 -0800 (PST) In-Reply-To: <1298064074-8108-1-git-send-email-linville@tuxdriver.com> References: <1297907356-3214-1-git-send-email-linville@tuxdriver.com> <1298064074-8108-1-git-send-email-linville@tuxdriver.com> Date: Fri, 18 Feb 2011 19:44:30 -0800 X-Google-Sender-Auth: IHsyJcXSwRQZuKbm6Xp2bePCa5U Message-ID: Subject: Re: [RFC v2] mac80211: implement eBDP algorithm to fight bufferbloat From: Nathaniel Smith To: "John W. Linville" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: bloat-devel@lists.bufferbloat.net, johannes@sipsolutions.net, linux-wireless@vger.kernel.org X-BeenThere: bloat-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Developers working on AQM, device drivers, and networking stacks" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 03:52:23 -0000 On Fri, Feb 18, 2011 at 1:21 PM, John W. Linville wrote: > + =C2=A0 =C2=A0 =C2=A0 /* grab timestamp info for buffer control estimate= s */ > + =C2=A0 =C2=A0 =C2=A0 tserv =3D ktime_sub(ktime_get(), skb->tstamp); [...] > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ewma_add(&sta->sdata->= qdata[q].tserv_ns_avg, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0ktime_to_ns(tserv)); I think you're still measuring how long it takes one packet to get from the end of the queue to the beginning, rather than measuring how long it takes each packet to go out? -- Nathaniel