Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:55039 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757584Ab1IAOPa (ORCPT ); Thu, 1 Sep 2011 10:15:30 -0400 Date: Thu, 1 Sep 2011 10:13:05 -0400 From: "John W. Linville" To: "Luis R. Rodriguez" Cc: Jim Gettys , Andrew McGregor , Adrian Chadd , Tom Herbert , Dave Taht , linux-wireless , Matt Smith , Kevin Hayes , Derek Smithies , netdev@vger.kernel.org Subject: Re: BQL crap and wireless Message-ID: <20110901141304.GA2580@tuxdriver.com> (sfid-20110901_161539_372830_ABF430C6) References: <4E5C3B47.1050809@freedesktop.org> <4E5CEC79.3090802@freedesktop.org> <9BB251C1-A211-486D-A717-59149AC3A709@gmail.com> <4E5E36EE.8080501@freedesktop.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Aug 31, 2011 at 01:50:48PM -0700, Luis R. Rodriguez wrote: > On Wed, Aug 31, 2011 at 6:28 AM, Jim Gettys wrote: > > such as wireless, or even possibly modern broadband with > > PowerBoost, classic RED or similar algorithms that do not take the > > buffer drain rate cannot possibly hack it properly. > > Understood, just curious if anyone has tried a Minstrel approach. FWIW, eBDP and the related algorithms from Tianji Li's paper are philosophically similar to minstrel. They depend on measuring recent conditions and modifying the current queue length accordingly. http://www.hamilton.ie/tianji_li/buffersizing.pdf The hack I added in debloat-testing is based on my understanding of eBDP. It timestamps the SKBs when they are handed to the driver for Tx and then checks the timestamp when the SKB is orphaned. It is a bit crude and is an abuse of the skb_orphan API. Also while it accounts for the 802.11e queues separately, it doesn't account for 802.11n aggregation. Still, it seems to improve latency w/o hugely impacting throughput in at least some environments -- YMMV! John -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.