From owner-freebsd-current@FreeBSD.ORG Tue Feb 3 11:08:14 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 D4D5B16A4CE; Tue, 3 Feb 2004 11:08:14 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01A2543D31; Tue, 3 Feb 2004 11:08:14 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i13J8B82003709; Tue, 3 Feb 2004 11:08:11 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i13J8BAP003708; Tue, 3 Feb 2004 11:08:11 -0800 (PST) (envelope-from dillon) Date: Tue, 3 Feb 2004 11:08:11 -0800 (PST) From: Matthew Dillon Message-Id: <200402031908.i13J8BAP003708@apollo.backplane.com> To: Robert Watson References: cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= cc: current@freebsd.org Subject: Re: Coalescing pipe allocation 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: Tue, 03 Feb 2004 19:08:15 -0000 :... :Robert N M Watson FreeBSD Core Team, TrustedBSD Projects :robert@fledge.watson.org Senior Research Scientist, McAfee Research It seems to me that realizing the lion's share of the benefit requires only that you cache the KVM reservation for a pipe buffer, and that you perhaps separately cache pipe meta data structures. I think you would only get a smidgen more performance by caching the entire pipe pair, so it seems a bit overkill to do that. By my quick read it looks like it would be trivial to create a small per-cpu (UMA based for you guys, globaldata based for me) cache. A hysteresis of 4 ought to be sufficient. -Matt Matthew Dillon