-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alfred Perlstein
Sent: Monday, April 30, 2001 9:31 PM
To: �L�^�W
Cc: Freebsd-Hackers
Subject: Re: write() vs aio_write()


* �L�^�W <[EMAIL PROTECTED]> [010430 06:17] wrote:
> Dear all:
>
>    Because  write() use buffer cache,  I want to know whether aio_write()
is
> better than write() in FreeBSD 4.1 . Is aio_write()
>
>  outperform write() ? Or any related performance comparison between the
two
> system call ????

aio_write is for doing async aio.  meaning you can ask the kernel to
move data for you from a memory location to a file descriptor while
you proceed on with doing other work.  if you don't have any other
work to do then aio is probably just going to slow you down.


Now I am trying to implement a  Proxy Server. I want to use asynchrounos I/O
so that
the Proxy Server can do other things than blocking on I/O operation. Is it a
good idea to
use aio_write or aio_read on Proxy Server ???

Thanks a lot
                                                Richard_Lin



--
-Alfred Perlstein - [[EMAIL PROTECTED]]
Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to