Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Nov 2007 23:02:53 -0800
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-hackers@freebsd.org, Randall Hyde <randyhyde@earthlink.net>
Subject:   Re: Some FreeBSD performance Issues
Message-ID:  <4734061D.9000606@freebsd.org>
In-Reply-To: <20071108225238.GB22005@dan.emsphone.com>
References:  <000701c82253$b3a8c030$6302a8c0@pentiv> <20071108225238.GB22005@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Nelson wrote:
> In the last episode (Nov 08), Randall Hyde said:
> 
>>It appears that character-at-a-time file I/O is *exceptionally* slow.
>>...  reasonable, though not stellar, performance under
>>Windows and Linux. However, with the port to FreeBSD I'm seeing a
>>three-orders-of-magnitude performance loss. ...
> 
> What timings does 
> "dd if=/usr/include/sys/socket.h of=/dev/null ibs=1 obs=64k" report? 
> It takes about .4 sec on my non-idle dual pIII-900 system.  Try
> truss'ing your program as it runs; maybe the program is doing some
> extra syscalls you aren't aware of?

You should also carefully do an strace or similar on
Windows and Linux as well.  You may find that you're
doing a system call per byte on FreeBSD but not on
those other systems.

Tim Kientzle



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4734061D.9000606>