Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Dec 2007 14:22:22 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: readv: parallel or sequential?
Message-ID:  <fjbh4h$f5s$1@ger.gmane.org>
In-Reply-To: <868x46u0lz.fsf@ds4.des.no>
References:  <fjbb3v$n60$1@ger.gmane.org>	<ad79ad6b0712070347s4a5d5bb2rc7adfdc54b107dac@mail.gmail.com> <868x46u0lz.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig09F7468F9E992596CC57A5F2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dag-Erling Sm=C3=B8rgrav wrote:

> But to return to what Ivan was asking, I think what the man page is
> trying to say is that you can't use readv() to e.g. read individual
> network packets into separate buffers (unless each packet just happens
> to fit exactly within each buffer).

What about streaming protocols like TCP? If, for example, I know I have
a N-byte header, N2-byte body, couldn't readv handle it with two iovecs?

But that's not why I started the discussion. I'm looking for a way to do
"scattered" async IO on files (the intention: feed an array of offsets,
lengths and buffers into the kernel, let it perform the requests in
parallel, if it can) and started with this man page.


--------------enig09F7468F9E992596CC57A5F2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHWUkkldnAQVacBcgRAii1AKCZZHwHUcbv0Ofl55O3TTmmJFG4zQCg1fNb
becsoQeragiV7qhZn2M/dfk=
=xFh/
-----END PGP SIGNATURE-----

--------------enig09F7468F9E992596CC57A5F2--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fjbh4h$f5s$1>