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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Dag-Erling Smørgrav 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.


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

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

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