Re: [PATCH] cfq-iosched: fix queue depth detection

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jens Axboe
Date: Friday, August 22, 2008 - 2:06 am

On Fri, Aug 22 2008, Aaron Carroll wrote:

I don't think it's that ugly, and I prefer this logic to the existing
one in fact. Since it's a static property of the device, why did you
change it to toggle the flag back and forth instead of just setting it
once? Defaulting to tagging on is fine, otherwise we risk running into
the problem you describe where CFQ never attempts to queue > 1 request.
Then you'd want to see if the driver ever asks more requests while one
is in the driver, if it does it's definitely TCQ. If not, then it
doesn't do queueing. So the interesting window is the one where we have
more requests pending yet the driver doesn't ask for it. I'd prefer a
patch that took that more into account, instead of just looking at the
past 50 samples and then toggle the hw_tag flag depending on the
behaviour in that time frame. You could easily have a depth of 1 there
always if it's a sync workload, even if hardware can do tagged queuing.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] cfq-iosched: fix queue depth detection, Aaron Carroll, (Thu Aug 21, 11:42 pm)
Re: [PATCH] cfq-iosched: fix queue depth detection, Jens Axboe, (Fri Aug 22, 2:06 am)
Re: [PATCH] cfq-iosched: fix queue depth detection, Aaron Carroll, (Fri Aug 22, 4:02 am)
Re: [PATCH] cfq-iosched: fix queue depth detection, Jens Axboe, (Fri Aug 22, 4:23 am)