From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 10 13:03:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BD6C16A468 for ; Sat, 10 Nov 2007 13:03:06 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9F99D13C4B5 for ; Sat, 10 Nov 2007 13:03:05 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id lAAD2hOJ001699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Nov 2007 00:02:44 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id lAAD2hen072534; Sun, 11 Nov 2007 00:02:43 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id lAAD2h5p072533; Sun, 11 Nov 2007 00:02:43 +1100 (EST) (envelope-from peter) Date: Sun, 11 Nov 2007 00:02:43 +1100 From: Peter Jeremy To: Randall Hyde Message-ID: <20071110130243.GU82929@server.vk2pj.dyndns.org> References: <000701c82253$b3a8c030$6302a8c0@pentiv> <20071108225238.GB22005@dan.emsphone.com> <4734061D.9000606@freebsd.org> <002f01c822ee$b04ac4b0$6302a8c0@pentiv> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PyMzGVE0NRonI6bs" Content-Disposition: inline In-Reply-To: <002f01c822ee$b04ac4b0$6302a8c0@pentiv> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2007 13:03:06 -0000 --PyMzGVE0NRonI6bs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 09, 2007 at 08:36:32AM -0800, Randall Hyde wrote: >To answer a different question in the thread, I'm pretty sure I'm making >only one FreeBSD call per byte, at least in one of the cases I posted. How about using ktrace or similar to confirm this. >I wonder if I'm only getting one character output per time slice, or >something like that? Maybe, though I don't understand why this would occur. If you time(1) your program, what are the real/user/system time breakdown? That will help clarify where the slowdown is located. Have you tried the dd(1) command suggested. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an RFC2821-compliant MTA. --PyMzGVE0NRonI6bs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHNavz/opHv/APuIcRAs/uAJ9fYLHzIXo/aqMBodk5qRBqWVFi7gCfbzjn P5eKhofT0J3VNiuHgs9z0Ws= =R6nQ -----END PGP SIGNATURE----- --PyMzGVE0NRonI6bs--