Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 1997 17:03:00 -0600
From:      "Justin T. Gibbs" <gibbs@plutotech.com>
To:        Christopher Sedore <cmsedore@mailbox.syr.edu>
Cc:        "Ron G. Minnich" <rminnich@Sarnoff.COM>, FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: async socket stuff 
Message-ID:  <199705272205.QAA08460@pluto.plutotech.com>
In-Reply-To: Your message of "Tue, 27 May 1997 16:47:22 EDT." <Pine.SOL.3.95.970527163325.11761A-100000@rodan.syr.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
>Now, in the case of a 10MB file, you've essentially saved 20MB worth of
>memory bandwidth/time for transfer (since the data has to be copied into
>user space on read, and back again on write), plus 160*2=320-1=319 system
>calls avoided.

If you use an async I/O facility, there is no additional copy since you've
pre-allocated the buffer and I/O from the file goes directly into and out
of your user space buffer.  Since your main complaint seems to be memory
bandwidth and the system call overhead is really quite small (FreeBSD can
do thousands of system calls a second on a P90), I think that async I/O
would completely solve your problem.  There is already work underway to
bring async I/O to FreeBSD. 

--
Justin T. Gibbs
===========================================
  FreeBSD: Turning PCs into workstations
===========================================





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