* [blktrace] unplug queue trace action is missed at some places
@ 2007-05-11 15:39 Vasily Tarasov
2007-05-11 15:50 ` Vasily Tarasov
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Vasily Tarasov @ 2007-05-11 15:39 UTC (permalink / raw)
To: linux-btrace
Hello all,
The function blk_start_queueing() calls __generic_unplug_device()
function directly without tracing BLK_TA_UNPLUG_IO action. So I have an
odd output of blktrace, when requests go through the plugged queue. I
suppose it's a BUG, or do I miss something?
Thanks,
Vasily
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [blktrace] unplug queue trace action is missed at some places
2007-05-11 15:39 [blktrace] unplug queue trace action is missed at some places Vasily Tarasov
@ 2007-05-11 15:50 ` Vasily Tarasov
2007-05-14 7:40 ` Jens Axboe
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Vasily Tarasov @ 2007-05-11 15:50 UTC (permalink / raw)
To: linux-btrace
Hmm, I see now that not only blk_start_queueing() function suffers from,
that there are a lot of other callers of
generic_unplug_device/__generic_unplug_device
On Fri, 2007-05-11 at 19:39 +0400, Vasily Tarasov wrote:
> Hello all,
>
> The function blk_start_queueing() calls __generic_unplug_device()
> function directly without tracing BLK_TA_UNPLUG_IO action. So I have an
> odd output of blktrace, when requests go through the plugged queue. I
> suppose it's a BUG, or do I miss something?
>
> Thanks,
> Vasily
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [blktrace] unplug queue trace action is missed at some places
2007-05-11 15:39 [blktrace] unplug queue trace action is missed at some places Vasily Tarasov
2007-05-11 15:50 ` Vasily Tarasov
@ 2007-05-14 7:40 ` Jens Axboe
2007-05-14 8:03 ` Vasily Tarasov
2007-05-14 8:08 ` Jens Axboe
3 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2007-05-14 7:40 UTC (permalink / raw)
To: linux-btrace
On Fri, May 11 2007, Vasily Tarasov wrote:
> Hello all,
>
> The function blk_start_queueing() calls __generic_unplug_device()
> function directly without tracing BLK_TA_UNPLUG_IO action. So I have an
> odd output of blktrace, when requests go through the plugged queue. I
> suppose it's a BUG, or do I miss something?
The unplug trace is meant to log upper layers doing an unplug to start
IO, not internal use that wants to kick the queue for whatever reasons.
We could log those as well, but it would be preferential to seperate
them.
blk_start_queuing() is one such call, for instance.
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [blktrace] unplug queue trace action is missed at some places
2007-05-11 15:39 [blktrace] unplug queue trace action is missed at some places Vasily Tarasov
2007-05-11 15:50 ` Vasily Tarasov
2007-05-14 7:40 ` Jens Axboe
@ 2007-05-14 8:03 ` Vasily Tarasov
2007-05-14 8:08 ` Jens Axboe
3 siblings, 0 replies; 5+ messages in thread
From: Vasily Tarasov @ 2007-05-14 8:03 UTC (permalink / raw)
To: linux-btrace
On Mon, 2007-05-14 at 09:40 +0200, Jens Axboe wrote:
> On Fri, May 11 2007, Vasily Tarasov wrote:
> > Hello all,
> >
> > The function blk_start_queueing() calls __generic_unplug_device()
> > function directly without tracing BLK_TA_UNPLUG_IO action. So I have an
> > odd output of blktrace, when requests go through the plugged queue. I
> > suppose it's a BUG, or do I miss something?
>
> The unplug trace is meant to log upper layers doing an unplug to start
> IO, not internal use that wants to kick the queue for whatever reasons.
> We could log those as well, but it would be preferential to seperate
> them.
>
> blk_start_queuing() is one such call, for instance.
>
Thank you, now I understand it. I believe it is very necessary to trace
internal unplugging (as a separate case), because such trace:
3,64 1 46 5.227907883 10539 P R [randreader]
3,64 1 47 5.227908103 10539 I R 2068072 + 8
[randreader]
3,64 1 48 5.227909288 10539 D R 2068072 + 8
[randreader]
3,64 1 49 5.227931205 10539 Q R 2068088 + 112
[randreader]
3,64 1 50 5.227932222 10539 G R 2068088 + 112
[randreader]
3,64 1 51 5.227932827 10539 I R 2068088 + 112
[randreader]
3,64 1 52 5.227985593 10539 C R 2068072 + 8 [0]
looks a bit confusing.
Thank you,
Vasily
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [blktrace] unplug queue trace action is missed at some places
2007-05-11 15:39 [blktrace] unplug queue trace action is missed at some places Vasily Tarasov
` (2 preceding siblings ...)
2007-05-14 8:03 ` Vasily Tarasov
@ 2007-05-14 8:08 ` Jens Axboe
3 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2007-05-14 8:08 UTC (permalink / raw)
To: linux-btrace
On Mon, May 14 2007, Vasily Tarasov wrote:
> On Mon, 2007-05-14 at 09:40 +0200, Jens Axboe wrote:
> > On Fri, May 11 2007, Vasily Tarasov wrote:
> > > Hello all,
> > >
> > > The function blk_start_queueing() calls __generic_unplug_device()
> > > function directly without tracing BLK_TA_UNPLUG_IO action. So I have an
> > > odd output of blktrace, when requests go through the plugged queue. I
> > > suppose it's a BUG, or do I miss something?
> >
> > The unplug trace is meant to log upper layers doing an unplug to start
> > IO, not internal use that wants to kick the queue for whatever reasons.
> > We could log those as well, but it would be preferential to seperate
> > them.
> >
> > blk_start_queuing() is one such call, for instance.
> >
>
> Thank you, now I understand it. I believe it is very necessary to trace
> internal unplugging (as a separate case), because such trace:
>
> 3,64 1 46 5.227907883 10539 P R [randreader]
> 3,64 1 47 5.227908103 10539 I R 2068072 + 8
> [randreader]
> 3,64 1 48 5.227909288 10539 D R 2068072 + 8
> [randreader]
> 3,64 1 49 5.227931205 10539 Q R 2068088 + 112
> [randreader]
> 3,64 1 50 5.227932222 10539 G R 2068088 + 112
> [randreader]
> 3,64 1 51 5.227932827 10539 I R 2068088 + 112
> [randreader]
> 3,64 1 52 5.227985593 10539 C R 2068072 + 8 [0]
>
> looks a bit confusing.
I agree, it should definitely be added. I'll make sure it does!
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-14 8:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 15:39 [blktrace] unplug queue trace action is missed at some places Vasily Tarasov
2007-05-11 15:50 ` Vasily Tarasov
2007-05-14 7:40 ` Jens Axboe
2007-05-14 8:03 ` Vasily Tarasov
2007-05-14 8:08 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).