From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 15 15:17:28 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D50881C; Mon, 15 Oct 2012 15:17:28 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id E4DE18FC12; Mon, 15 Oct 2012 15:17:27 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3DB1BB924; Mon, 15 Oct 2012 11:17:27 -0400 (EDT) From: John Baldwin To: Rick Macklem Subject: Re: NFS server bottlenecks Date: Mon, 15 Oct 2012 11:08:09 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p20; KDE/4.5.5; amd64; ; ) References: <611092759.2189637.1350133402953.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <611092759.2189637.1350133402953.JavaMail.root@erie.cs.uoguelph.ca> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201210151108.09113.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 15 Oct 2012 11:17:27 -0400 (EDT) Cc: Nikolay Denev , Garrett Wollman , FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 15:17:28 -0000 On Saturday, October 13, 2012 9:03:22 am Rick Macklem wrote: > rick > ps: I hope John doesn't mind being added to the cc list yet again. It's > just that I suspect he knows a fair bit about mutex implementation > and possible hardware cache line effects. Currently mtx_pool just uses a simple array (I have patches to force the array members to be cache-aligned, but they haven't been shown to help in any benchmarks to date). I do think though that I would prefer embedding the mutexes in the hash table entries directly. This is what we do for the turnstile and sleep queue hash tables. -- John Baldwin