[lkml]   [2002]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: One more bio for for floppy users in 2.5.33..
Linus Torvalds wrote:
> On Thu, 5 Sep 2002, Andrew Morton wrote:
> >
> > OK. But still, I don't see why we need partial BIO completions. If
> > we say that the basic unit of completion is a whole BIO, then readahead
> > can then manage latency via the outgoing bio size.
> But that's horrible. The floppy driver can take huge bio's no problem, and
> limiting bio sizes to track sizes would be a huge pain in the driver for
> no good reason. In fact, it would be pretty much impossible, since the
> tracks aren't even page-aligned.

erp. Yes, a BIO can span several tracks. I see the point.

> ...
> > In the testing I did a few weeks back, everything checked out. An
> > application which was reading the raw device at 95% of media bandwidth
> > never blocked. An application which was capable of processing data at
> > 120% of media bandwidth achieved 100%.
> And an application that only wanted one sector? To notice that the
> filesystem is of the wrong type, for example?

OK. That's the initial-64k thing. If you read 512 bytes from /dev/fd0,
readahead will go and issue a 64k request, and your 512-byte request takes

> Throughput is _secondary_ to many latency concerns. And you cannot fix the
> latency with full bio's (see the track issue).

The `nr_of_sectors_completed' would be tricky to handle - we don't know how
to bring the pagecache pages uptodate in response to a 512-byte completion.
We'd have to teach the pagecache read functions to permit userspace to read
from non-uptodate pages by looking at the buffer_head state. And then
look at buffer_req to distinguish "this part of the page hasn't been read yet"
from "this part of the page had an IO error". Ick.

It would be simpler if it was nr_of_pages_completed.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.192 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site