From owner-freebsd-stable@FreeBSD.ORG Tue Jan 19 23:18:58 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6DFD1065670; Tue, 19 Jan 2010 23:18:58 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from mail2.timeinc.net (mail2.timeinc.net [64.236.74.30]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1F38FC18; Tue, 19 Jan 2010 23:18:57 +0000 (UTC) Received: from mail.timeinc.net (mail.timeinc.net [64.12.55.166]) by mail2.timeinc.net (8.13.8/8.13.8) with ESMTP id o0JNIns6014769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Jan 2010 18:18:50 -0500 Received: from ws-mteterin.dev.pathfinder.com (ws-mteterin.dev.pathfinder.com [209.251.223.173]) by mail.timeinc.net (8.13.8/8.13.8) with SMTP id o0JNIm62007863; Tue, 19 Jan 2010 18:18:49 -0500 Message-ID: <4B563DD8.9050303@aldan.algebra.com> Date: Tue, 19 Jan 2010 18:18:48 -0500 From: "Mikhail T." Organization: Virtual Estates, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; uk; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 To: Matthew Dillon References: <200603232352.k2NNqPS8018729@gate.bitblocks.com> <200603241518.01027.mi+mx@aldan.algebra.com> <20060325103927.GE703@turion.vk2pj.dyndns.org> <200603250920.14208@aldan> <20060325190333.GD7001@funkthat.com> <4B4F7CF5.4040307@aldan.algebra.com> <201001150256.o0F2ucOx080837@apollo.backplane.com> In-Reply-To: <201001150256.o0F2ucOx080837@apollo.backplane.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: alc@freebsd.org, Peter Jeremy , stable@freebsd.org Subject: Re: An old gripe: Reading via mmap stinks X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 23:18:59 -0000 01/14/10 21:56, Matthew Dillon ΞΑΠΙΣΑΧ(ΜΑ): > This would explain why the performance is not as bad as linux but > is not as good as a properly pipelined case. For what it may be worth, here are the stats for Solaris as well: * Solaris 8, native, 32-bit binary (using -lcrypto instead of -lmd): mmap: 103.54u 27.18s 2:56.46 74.0% read: 99.12u 40.37s 2:53.06 80.6% * Solaris 10, native, 32-bit binary (using -lcrypto instead of -lmd): mmap: 159.36u 83.23s 5:28.25 73.9% read: 173.50u 104.16s 4:48.30 96.3% * Solaris 10, using the 32-bit binary built on Solaris-8: mmap: 217.74u 101.20s 5:58.89 88.8% All of the "read" results on Solaris (and earlier on Linux) were obtained from using ``openssl md5 < largefile''. Seems like BSD is not the only OS, where the mmap's theoretical promise lags behind the actual offering -- read wins on Solaris overall too, despite being quite a bit more expensive in sys-time. Would still be nice to be the first to deliver... -mi