Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754009Ab2FZUn1 (ORCPT ); Tue, 26 Jun 2012 16:43:27 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:33012 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753529Ab2FZUn0 (ORCPT ); Tue, 26 Jun 2012 16:43:26 -0400 Date: Tue, 26 Jun 2012 13:43:22 -0700 From: Tejun Heo To: Josh Hunt Cc: Jens Axboe , linux-kernel@vger.kernel.org, Vivek Goyal Subject: Re: multi-second application stall in open() Message-ID: <20120626204322.GV3869@google.com> References: <20120625133047.GA9394@redhat.com> <20120625211850.GC10916@redhat.com> <20120626125953.GA22557@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 29 Hello, On Tue, Jun 26, 2012 at 10:18:04AM -0500, Josh Hunt wrote: > Do you have any suggestions on how to debug this? > > I did "perf record -a -e workqueue:*" and grabbed some tracepoint > data, but it's hard to correlate when these events are occurring in > the blktrace logs. Will keep investigating. Yeah, as Vivek said, it would be better to get both traces through perf instead of using blktrace. queue_work and execute_start TPs print out the function pointer. Only printing out entries which match the unplug_work would reduce a lot of noise - you can grep cfq_kick_queue's address from /proc/kallsyms and set up /sys/kernel/debug/tracing/events/workqueue/EVENT/filter - "echo function==0xFUNCADDR > /sys/kernel/debug.../filter". Not sure how to do that with perf tho. Ooh, you posted another message. Will continue there. Thanks. -- tejun -- 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/