lkml.org 
[lkml]   [2012]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IOPS based scheduler (Was: Re: [PATCH 18/21] blkcg: move blkio_group_conf->weight to cfq)
On Thu, Apr 05, 2012 at 01:18:05AM +0800, Tao Ma wrote:

[..]
> > You can just put a few lines of code to expire queue after 1-2 requests
> > dispatched from the queue. Than run your workload with slice_idle=0
> > and group_idle=0 and see what happens.
> oh, yes I can do this to see whether the latency helps, but it is
> hacking and doesn't work with the cgroup proportion...

"Hacking"?. I think effectively that's what effectively iops scheduler
should be doing to achieve faster switching.

Also, if your workload is keeping groups continuously busy, you should
get proportional behavior at group level.

Do try the patch I sent you in a separate mail with your workload.

[..]
> > I think a large chunk of that iops scheduler code will be borrowed from
> > CFQ code. All the cgroup logic, queue creation logic, group scheduling
> > logic etc. And that's the reason I was still exploring the possibility
> > of having common code base.
> Yeah, actually I was thinking of abstracting a generic logic, but it
> seems a lot bit hard. Maybe we can try to unify the code later?

Once you write and merge a new scheduler, that code merge is never going
to happen. They will happily part ways with lot of code/logic shared.

Once the hierarchical support comes to CFQ, same hierarchical cgroup
support needs to be written to this new scheduler also.


Thanks
Vivek


\
 
 \ /
  Last update: 2012-04-04 19:29    [W:0.128 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site