scatter-gather I/O

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Its so quite in hear (maybe because of Ash wednesday?) so I thought
I'd break the silence with a few questions. :)

I've been reading about the block layer and the scatter gather
mechanism which uses an array of bio_vecs in a single bio.

My questions are:
1. Can a particular bio vector (segment) span across a page boundary?
Or will multiple contiguous pages have their own bio_vecs?
So if I have 2 pages in a bio operation, can the i/o request for those
2 pages be represented by a single bio_vec structure?
The elements in a bio_vec are page,offset and len, can len be > PAGE_SIZE?

2. The book "Linux Kernel Development" discusses that the representing
the bio operation as an array of bio vecs is useful for RAID drivers
as the bio can be split. I don't understand how splitting of a bio can
help in RAID behavior? the "scatter" in scatter-gather means data
scatter across memory. What has this got to do with splitting of data
across disks?

Thanks!
-Joel

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux