From owner-freebsd-net@FreeBSD.ORG Fri Nov 23 13:26:28 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C96E16A417; Fri, 23 Nov 2007 13:26:28 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id EEB2513C4EB; Fri, 23 Nov 2007 13:26:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 04FD046CD4; Fri, 23 Nov 2007 08:29:29 -0500 (EST) Date: Fri, 23 Nov 2007 13:26:16 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Max Laier In-Reply-To: <200711231232.04447.max@love2party.net> Message-ID: <20071123132453.W98338@fledge.watson.org> References: <200711231232.04447.max@love2party.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: Switch pfil(9) to rmlocks 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: Fri, 23 Nov 2007 13:26:28 -0000 On Fri, 23 Nov 2007, Max Laier wrote: > attached is a diff to switch the pfil(9) subsystem to rmlocks, which are > more suited for the task. I'd like some exposure before doing the switch, > but I don't expect any fallout. This email is going through the patched > pfil already - twice. Max, Have you done performance measurements that show rmlocks to be a win in this scenario? I did some patchs for UNIX domain sockets to replace the rwlock there but it appeared not to have a measurable impact on SQL benchmarks, presumbaly because the read/write blend wasn't right and/or that wasnt a significant source of overhead in the benchmark. I'd anticipate a much more measurable improvement for pfil, but would be interested in learning how much is seen? Robert N M Watson Computer Laboratory University of Cambridge