From owner-freebsd-current@FreeBSD.ORG Thu Aug 5 03:48:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FA3B16A4CE; Thu, 5 Aug 2004 03:48:47 +0000 (GMT) Received: from pd4mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7E7643D5F; Thu, 5 Aug 2004 03:48:46 +0000 (GMT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from pd4mr7so.prod.shaw.ca (pd4mr7so-qfe3.prod.shaw.ca [10.0.141.84])2003)) with ESMTP id <0I1Y00LE0FF3YN@l-daemon>; Wed, 04 Aug 2004 21:37:51 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd4mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I1Y00AGUFF3VM60@pd4mr7so.prod.shaw.ca>; Wed, 04 Aug 2004 21:37:51 -0600 (MDT) Received: from piii600.wadham.ox.ac.uk (S0106006067227a4a.vc.shawcable.net [24.87.233.42])2003)) with ESMTP id <0I1Y0044NFF2MU@l-daemon>; Wed, 04 Aug 2004 21:37:51 -0600 (MDT) Date: Wed, 04 Aug 2004 20:36:42 -0700 From: Colin Percival In-reply-to: X-Sender: cperciva@popserver.sfu.ca (Unverified) To: current@freebsd.org Message-id: <6.1.0.6.1.20040804203601.03ed4bc0@popserver.sfu.ca> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Content-type: text/plain; charset=us-ascii References: cc: Robert Watson Subject: Re: Optimization opportunity: don't recurse callout mutex in timeout_reset() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 05 Aug 2004 03:48:47 -0000 At 20:28 04/08/2004, Robert Watson wrote: >timeout_reset() is called from the TCP code pretty frequently. I observed >that the callout code path is recursing the callout mutex. Here's the KTR >trace: >... >Eliminating the recursion would be beneficial, if we could. I'll take care of this. Colin Percival