From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751885Ab3LJVdS (ORCPT ); Tue, 10 Dec 2013 16:33:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48597 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750976Ab3LJVdR (ORCPT ); Tue, 10 Dec 2013 16:33:17 -0500 Date: Tue, 10 Dec 2013 16:32:01 -0500 From: Dave Jones To: Linus Torvalds Cc: Darren Hart , Oleg Nesterov , Thomas Gleixner , Andrea Arcangeli , Linux Kernel Mailing List , Peter Zijlstra , Mel Gorman Subject: Re: process 'stuck' at exit. Message-ID: <20131210213201.GF27373@redhat.com> Mail-Followup-To: Dave Jones , Linus Torvalds , Darren Hart , Oleg Nesterov , Thomas Gleixner , Andrea Arcangeli , Linux Kernel Mailing List , Peter Zijlstra , Mel Gorman References: <20131210154724.GA30020@redhat.com> <20131210203559.GA1209@redhat.com> <20131210204925.GB27373@redhat.com> <1386709583.3685.78.camel@dvhart-mobl4.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2013 at 01:18:20PM -0800, Linus Torvalds wrote: > On Tue, Dec 10, 2013 at 1:06 PM, Darren Hart wrote: > > > > . Knowing exactly what syscall was made would > > be very useful, but I don't know if that information is even available > > anymore. > > Well, the loop should be visible in the profile, since it's still active. > > So doing something like > > perf record -e cycles:pp -g -a sleep 60 > > to get a good profile for a minute, and then looking at the > instruction-level profiles in futex_requeue() should be possible. > > Of course, inlining etc often makes those rather hard to see, and the > bulk of the profile is clearly all about the lock debugging overhead, > but if the loop is in futex_requeue() then that *should* be visible in > the profile, even if it may not be anywhere near the top.. > > Dave? http://www.codemonkey.org.uk/junk/perf.data.xz Dave