From owner-freebsd-current@FreeBSD.ORG Mon Sep 26 14:00:55 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40F6A1065670; Mon, 26 Sep 2011 14:00:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 16CF18FC0A; Mon, 26 Sep 2011 14:00:55 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id BD60C46B46; Mon, 26 Sep 2011 10:00:54 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5FC9C8A03C; Mon, 26 Sep 2011 10:00:54 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 26 Sep 2011 09:17:43 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <4E7D6700.4080302@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109260917.44236.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 26 Sep 2011 10:00:54 -0400 (EDT) Cc: Adrian Chadd , Alexander Motin Subject: Re: ath / 802.11n performance issues and timer code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 14:00:55 -0000 On Sunday, September 25, 2011 5:48:31 am Adrian Chadd wrote: > Nope, it has the opposite effect: > > * Increased latency may make aggregation better (for TX) but it limits > throughput because TCP senses a latency increase; I suspect this matters more. Have you tried comparing UDP throughput in the two cases? One behavioral difference of a periodic timer vs a deadline timer is that if you ask to delay for "1 clock tick", that can be anywhere from 0us to 1000us (with hz == 1000) when using the periodic timer (because you can set the callout at any time within a tick, but the callout will fire at the start of the next tick). However, for a deadline timer, the TCP timer will always fire 1000us after you set the timer. -- John Baldwin