lkml.org 
[lkml]   [2002]   [Mar]   [13]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
FromDaniel Phillips <>
SubjectRe: [PATCH][RFT] simple deadline I/O scheduler
DateWed, 13 Mar 2002 14:33:10 +0100
On January 4, 2002 09:43 am, Jens Axboe wrote:
> I've played around with implementing an I/O scheduler that _tries_ to
> start request within a given time limit. Note that it makes no
> guarentees of any sort, it's simply a "how does this work in real life"
> sort of thing. It's main use is actually to properly extend the i/o
> scheduler / elevator api to be able to implement more advanced
> schedulers (eg cello).
> 
> The construction of this new i/o scheduler is similar to how cello is
> build -- you have several "low level" schedulers and a class independent
> one on top of those that decides which one to start processing.
> 
> Each request is sorted into two lists -- one is purely sector sorted,
> the other is sorted [1] by expire time. We always serve request from the
> sector sorted list, until one of the front requests on the expire list
> has its deadline violated. Then we start following the sorted list from
> the point of the deadline violated request. This is always done in
> batches of eg 8 or 16 requests, to avoid seeking like mad if we can't
> keep up with the deadlines.

This post never seemed to get the attention it deserves.  Do you have 
performance measurements now?

As part of my experimental hack to get rid of buffer_heads I was casting 
around for a structure to replace the dirty buffer list.  I find myself 
heading towards the conclusion I want a structure that's remarkably similar 
to what you've cooked up here, but that lives at a higher level in the 
system.  The idea is that a page goes into the queue as soon as it's dirtied 
and the elevator takes care of scheduling and merging from there.  Admittedly 
these ideas are half-formed at the moment, but what I see developing is a 
situation where we have attempts at IO scheduling going on at two levels in 
the system, the VM and bio, and the more I think about it the less sense it 
makes.  It's trying to be one subsystem.

Andrew Morton is also working in here, with a collection of ideas that I hope 
are complementary if looked at the right way.  See his '[patch] delayed disk 
block allocation' post.

-- 
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:24    [W:0.594 / U:0.150 seconds]
©2003-2008 Jasper Spaans