From owner-freebsd-net@FreeBSD.ORG Thu Oct 13 23:55:03 2005 Return-Path: X-Original-To: net@FreeBSD.ORG Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05D9F16A41F for ; Thu, 13 Oct 2005 23:55:02 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D60C43D55 for ; Thu, 13 Oct 2005 23:55:02 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.13.4/8.13.4) with ESMTP id j9DNt1PO002359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Oct 2005 19:55:01 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id j9DNsuqK009364; Thu, 13 Oct 2005 19:54:56 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17230.62415.991707.840932@grasshopper.cs.duke.edu> Date: Thu, 13 Oct 2005 19:54:55 -0400 (EDT) To: Garrett Wollman In-Reply-To: <17230.56994.552228.385003@khavrinen.csail.mit.edu> References: <20051008143854.B84936@fledge.watson.org> <17229.29164.891534.200216@grasshopper.cs.duke.edu> <20051012212915.E66014@fledge.watson.org> <17229.32088.696346.868182@grasshopper.cs.duke.edu> <17230.56994.552228.385003@khavrinen.csail.mit.edu> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Cc: net@FreeBSD.ORG Subject: Re: Call for performance evaluation: net.isr.direct (fwd) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 23:55:03 -0000 Garrett Wollman writes: > < said: > > > Right now, at least, it seems to work OK. I haven't tried witness, > > but a non-debug kernel shows a big speedup from enabling it. Do > > you think there is a chance that it could be made to work in FreeBSD? > > I did this ten years ago for a previous job and was able to blow out > the stack very easily. I haven't blown it out yet, but for that and other reasons, it seems to be a bigger can of worms than it would be worth. The interesting thing is that using the TSC timecounter rather than ACPI-fast reduces the context switch latency enough so as to make the TCP latency 25us when using a netisr thread. 25us is identical to what I saw with the direct dispatch loopback hack. Linux already takes care of syncing the TSC between SMP cpus, so we know it is possible. This seems like a much more doable optimization. And it is likely to have other benefits.. Drew