Skip to contentSkip to conversation

Are we missing the big picture?

SHED Ian Kumlien 2 participants 5 messages Aug 1, 2003 – Aug 2, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,

I have been following the sheduler and interactivity discussions closely but via the marc.theaimsgroup.com archive, So i might be behind etc... =P

[Note: sorry if i sound like mr.know-it-all etc, just trying to get a point across]

Anyways, i think that the AS discussions that i have seen has missed some points. Getting the processes priority in AS is one thing, but fist of all i think there should be a stand off layer. Let me explain:

I liked Jens Axobe's 'CBQ' alike implementation (based on the idea of Andrea A. (afair i have the names right) since it does the most important thing... which is *nothing* when there is no load (ie, pass trough).

AS might be/is the best damn io sheduler for loaded machines but when there is no load, it's overhead. So in my opinion there should be something that first warrants the usage of AS before it's actually engaged.

And, if it's only engaged during high load, additions like basing the requests priority on the process/tasks priority would make total sense, adding the 'wakeup on wait' or what it was would also make total sense... But how many of your machines uses the disk 100% of the time? (in the real world... )

I don't know how 'CBQ' was implemented but any 'we are under load now' trigger would do it for me.

Please see to it that my CC is included in any discussions =)

PS. Or was it a version of SFQ? in that case s/CBQ/SFQ/g DS.

Signature · 1 line
Ian Kumlien <[email protected]>
#1 lore raw
Quoted 29 lines · Ian Kumlien

Hi all,

I have been following the sheduler and interactivity discussions closely but via the marc.theaimsgroup.com archive, So i might be behind etc... =P

[Note: sorry if i sound like mr.know-it-all etc, just trying to get a point across]

Anyways, i think that the AS discussions that i have seen has missed some points. Getting the processes priority in AS is one thing, but fist of all i think there should be a stand off layer. Let me explain:

I liked Jens Axobe's 'CBQ' alike implementation (based on the idea of Andrea A. (afair i have the names right) since it does the most important thing... which is *nothing* when there is no load (ie, pass trough).

AS might be/is the best damn io sheduler for loaded machines but when there is no load, it's overhead. So in my opinion there should be something that first warrants the usage of AS before it's actually engaged.

And, if it's only engaged during high load, additions like basing the requests priority on the process/tasks priority would make total sense, adding the 'wakeup on wait' or what it was would also make total sense... But how many of your machines uses the disk 100% of the time? (in the real world... )

Quoted 7 lines

I don't know how 'CBQ' was implemented but any 'we are under load now' trigger would do it for me.

Please see to it that my CC is included in any discussions =)

PS. Or was it a version of SFQ? in that case s/CBQ/SFQ/g

To start with its CFQ. Also could you clarify what you mean by load and what you mean by CFQ doing nothing, and why AS is overhead in the no load case. I can't really follow what you are saying.

#2 lore raw
Quoted 34 lines · Nick Piggin
Quoted 32 lines · Ian Kumlien

Hi all,

I have been following the sheduler and interactivity discussions closely but via the marc.theaimsgroup.com archive, So i might be behind etc... =P

[Note: sorry if i sound like mr.know-it-all etc, just trying to get a point across]

Anyways, i think that the AS discussions that i have seen has missed some points. Getting the processes priority in AS is one thing, but fist of all i think there should be a stand off layer. Let me explain:

I liked Jens Axobe's 'CBQ' alike implementation (based on the idea of Andrea A. (afair i have the names right) since it does the most important thing... which is *nothing* when there is no load (ie, pass trough).

AS might be/is the best damn io sheduler for loaded machines but when there is no load, it's overhead. So in my opinion there should be something that first warrants the usage of AS before it's actually engaged.

And, if it's only engaged during high load, additions like basing the requests priority on the process/tasks priority would make total sense, adding the 'wakeup on wait' or what it was would also make total sense... But how many of your machines uses the disk 100% of the time? (in the real world... )

I don't know how 'CBQ' was implemented but any 'we are under load now' trigger would do it for me.

Quoted 8 lines
Quoted 4 lines

Please see to it that my CC is included in any discussions =)

PS. Or was it a version of SFQ? in that case s/CBQ/SFQ/g

To start with its CFQ. Also could you clarify what you mean by load and what you mean by CFQ doing nothing, and why AS is overhead in the no load case. I can't really follow what you are saying.

CFQ passes the req's on directly until there is enough load... In the load case it builds queues. Just like SFQ (but sfq can drop packets afair).

This way, we wouldn't have the initial 'can-we-merge-this-with-other-data-coming' delay when not needed.

If as could be attached to the 'queue build up' then AS would only be doing what it's good at, throughput and minimizing head movements.

Also patches that move prioritized data (data for processes with high pri) would fit right in there since you'd only be doing it during actual load.

(note: load as in disk load)

Signature · 1 line
Ian Kumlien <[email protected]>
#3 lore raw
Quoted 42 lines · Ian Kumlien
Quoted 40 lines · Nick Piggin
Quoted 37 lines · Ian Kumlien

Hi all,

I have been following the sheduler and interactivity discussions closely but via the marc.theaimsgroup.com archive, So i might be behind etc... =P

[Note: sorry if i sound like mr.know-it-all etc, just trying to get a point across]

Anyways, i think that the AS discussions that i have seen has missed some points. Getting the processes priority in AS is one thing, but fist of all i think there should be a stand off layer. Let me explain:

I liked Jens Axobe's 'CBQ' alike implementation (based on the idea of Andrea A. (afair i have the names right) since it does the most important thing... which is *nothing* when there is no load (ie, pass trough).

AS might be/is the best damn io sheduler for loaded machines but when there is no load, it's overhead. So in my opinion there should be something that first warrants the usage of AS before it's actually engaged.

And, if it's only engaged during high load, additions like basing the requests priority on the process/tasks priority would make total sense, adding the 'wakeup on wait' or what it was would also make total sense... But how many of your machines uses the disk 100% of the time? (in the real world... )

I don't know how 'CBQ' was implemented but any 'we are under load now' trigger would do it for me.

Please see to it that my CC is included in any discussions =)

PS. Or was it a version of SFQ? in that case s/CBQ/SFQ/g

Quoted 9 lines
Quoted 4 lines

To start with its CFQ. Also could you clarify what you mean by load and what you mean by CFQ doing nothing, and why AS is overhead in the no load case. I can't really follow what you are saying.

CFQ passes the req's on directly until there is enough load... In the load case it builds queues. Just like SFQ (but sfq can drop packets afair).

What do you mean? CFQ merges and sorts requests, and it services each process in a round robin manner. I don't have the CFQ code at hand, but I don't think it does anything different in the "load" case.

Quoted 4 lines

This way, we wouldn't have the initial 'can-we-merge-this-with-other-data-coming' delay when not needed.

No that is what queue plugging can be used for.

Quoted 4 lines

If as could be attached to the 'queue build up' then AS would only be doing what it's good at, throughput and minimizing head movements.

No, AS does only try to do what it is good at. As complex as it is, its meant to be almost as simple as possible.

Quoted 7 lines

Also patches that move prioritized data (data for processes with high pri) would fit right in there since you'd only be doing it during actual load.

(note: load as in disk load)

I'm sorry but I'm having trouble working out what you are trying to say. The disk gets its work in the form of a request. Linux keeps a queue of outstanding requests for each disk. The IO schedulers are a layer between the disk (driver) and the request queue. They get to choose the next request that goes to the disk. AS is only set apart because it sometimes chooses not to send a request at all even if there are some available.

Now what do you mean by disk load? And actual load? I can imagine that if there are no requests you would say there is no load on the disk. If there is 1 request there must be some actual load? Maybe you mean more than 1 process with outstanding requests?

#4 lore raw
Quoted 13 lines · Nick Piggin
Quoted 10 lines · Ian Kumlien
Quoted 3 lines · Nick Piggin

To start with its CFQ. Also could you clarify what you mean by load and what you mean by CFQ doing nothing, and why AS is overhead in the no load case. I can't really follow what you are saying.

CFQ passes the req's on directly until there is enough load... In the load case it builds queues. Just like SFQ (but sfq can drop packets afair).

Quoted 4 lines

What do you mean? CFQ merges and sorts requests, and it services each process in a round robin manner. I don't have the CFQ code at hand, but I don't think it does anything different in the "load" case.

Yes, i thought it worked in a different manner, as Jens Axboe pointed out. I was under the impression that it worked differently.

Quoted 4 lines
Quoted 2 lines

This way, we wouldn't have the initial 'can-we-merge-this-with-other-data-coming' delay when not needed.

No that is what queue plugging can be used for.

Queue plugging?

Quoted 5 lines
Quoted 2 lines

If as could be attached to the 'queue build up' then AS would only be doing what it's good at, throughput and minimizing head movements.

No, AS does only try to do what it is good at. As complex as it is, its meant to be almost as simple as possible.

Oh? from what i've gathered from my somewhat on and off readings of lkml i thought that 1, AS added a delay to gather additional requests prior to sending the request to the disk. 2, (as i found out now) it also waits before moving the head.

Thats what i wanted to by pass in the "hey, i'm just loading my 10 bytes config file, and nothing else is happening" scenario.

Quoted 10 lines
Quoted 3 lines

Also patches that move prioritized data (data for processes with high pri) would fit right in there since you'd only be doing it during actual load.

I'm sorry but I'm having trouble working out what you are trying to say. The disk gets its work in the form of a request. Linux keeps a queue of outstanding requests for each disk. The IO schedulers are a layer between the disk (driver) and the request queue. They get to choose the next request that goes to the disk. AS is only set apart because it sometimes chooses not to send a request at all even if there are some available.

Which sounds odd...

Quoted 4 lines

Now what do you mean by disk load? And actual load? I can imagine that if there are no requests you would say there is no load on the disk. If there is 1 request there must be some actual load? Maybe you mean more than 1 process with outstanding requests?

Lets say that when the request queue has reached a certain length, the disk is loaded.

I also have to say that i have no clue of the kernels real inner workings esp not the io layer. I have only played with QoS, and i started when it was undocumented.. =).

Lets say that we could use a CBQ queue with the right bw limits. Now, lets say that when 70% of that bw is filled, we use a diff approach to treating the data... We might drop new syns since we might be paranoid about getting DoSed (stupid example, i know).

Now, Translate this in to the IO part. When we have a request backlog for X entries during Y 'timeunits' we use a diff way to access the disk. And since we know that when this mode is triggered, we have a backlog of requests that we can just feed AS and thus make as do it's best. Lower latency on small things and better throughput, what could be wrong about that?

[Side note: In my understanding of SFQ it does 'nothing' to data that can be sent directly, but queues when it can't (due to load)]

[Also: load is just a very fuzzy term for something that might be highly complex. ie, the right value for the job in determining how the request should be handled.]

Signature · 1 line
Ian Kumlien <[email protected]>