Vectorized Read?
Posted Mar 23, 2007 21:28 UTC (Fri) by
zlynx (subscriber, #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.
(
Log in to post comments)