Vectorized Read?
Vectorized Read?
Posted Mar 23, 2007 21:28 UTC (Fri) by zlynx (guest, #2285)In reply to: Vectorized Read? by vmole
Parent article: The 2007 Linux Storage and File Systems Workshop
I am going on the man page for readv.
ssize_t readv(int fd, const struct iovec *vector, int count);
struct iovec {
void *iov_base; /* Starting address */
size_t iov_len; /* Number of bytes */
};
iov_base and iov_len apply to RAM addresses, not disk block or character addresses. The descriptor "fd" is read linearly for "count" iovec structures.
So, readv does *not* give you the ability to read at specific offsets. As I understand it from reading the documentation.
Posted Mar 23, 2007 21:36 UTC (Fri)
by vmole (guest, #111)
[Link]
<p>Oh, duh, right. I knew that, at one time in the distant past. Sorry for the noise.Vectorized Read?