Posted: Sat Sep 16, 2006 7:10 am
I meant specificly for writes, not reads. I was really just looking for a low priority example, to counter my high priority example, and trying to wrap a disk cache into that.gaf wrote: Keeping the disk spinning is probably much more important than saving a couple of cpu cycles. As HDs are a million times slower than the processor it already takes long enough to get the data, so that you don't want to waste any time scheduling the request. By giving the disk driver a high priority you make sure that the I/O operations are distributed more equally, allowing the maximum band-width to be used.
As far as disk writes, though, I agree, you have to utilize the hardware appropriately, as it will always be a massive bottleneck. However, to give it priority over other tasks such as screen updates may not be desireable, imo (at least for a floppy driver). I wouldn't want to wait for a 800kb file to be written to a floppy before my mouse pointer would move.
Essentially, I'm just trying to avoid windows' form of disk multitasking, which appears to block the whole system while the disk is written to -- nasty!
--Jeff