From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 19:47:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA4B61065687 for ; Wed, 11 Jun 2008 19:47:21 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [206.29.77.83]) by mx1.freebsd.org (Postfix) with ESMTP id 7E56F8FC0A for ; Wed, 11 Jun 2008 19:47:21 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id E22285DCD64 for ; Wed, 11 Jun 2008 14:46:50 -0500 (CDT) X-Virus-Scanned: amavisd-new at honeypot.net Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HpcfDPtevvbT for ; Wed, 11 Jun 2008 14:46:47 -0500 (CDT) Received: from janus.daycos.com (janus.daycos.com [10.45.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTPSA id 61A0D5DE3A6 for ; Wed, 11 Jun 2008 14:46:47 -0500 (CDT) From: Kirk Strauser To: freebsd-questions@freebsd.org Date: Wed, 11 Jun 2008 14:46:44 -0500 User-Agent: KMail/1.9.9 References: <200806051508.29424.kirk@strauser.com> <200806111442.50935.kirk@strauser.com> In-Reply-To: <200806111442.50935.kirk@strauser.com> X-Face: T+/_{qmjgbosI0J/e83I~w[&VF'w)!((xEpj///^bA/6?jHHS?nq+T8_+`nh"WnEWCWG, \}]Y2$)) =?utf-8?q?vLVz4ACChrEcb=7DCO=5EtYmMG=5C=0A=09ts=2Em=3F=5B7=5B6OwE*dAJ*9f+m?= =?utf-8?q?X=2E7R32qeN=5EDJ=5C?=(k@evW?IRQCy.^ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806111446.45234.kirk@strauser.com> Subject: Re: Poor read() performance, and I can't profile it X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 19:47:21 -0000 On Wednesday 11 June 2008, Kirk Strauser wrote: > On Linux: > > $ time ./cdbf /tmp/invoice.dbf >/dev/null > ./cdbf /tmp/invoice.dbf > /dev/null 42.65s user 20.09s system 71% cpu > 1:28.15 total > > On FreeBSD: Oops! I left that out: $ time /tmp/cdbf /var/tmp/invoice.dbf >/dev/null /tmp/cdbf /var/tmp/invoice.dbf > /dev/null 59.15s user 11.93s system 36% cpu 3:14.53 total Again, Linux is on a boring Dell workstation, FreeBSD is on a far faster Dell server 15K RPM SCSI drives (even if they don't come into play once the data files are buffered). -- Kirk Strauser