From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951Ab3LJVZk (ORCPT ); Tue, 10 Dec 2013 16:25:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:13486 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280Ab3LJVZj (ORCPT ); Tue, 10 Dec 2013 16:25:39 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,866,1378882800"; d="scan'208";a="422531063" Message-ID: <1386710734.3685.85.camel@dvhart-mobl4.amr.corp.intel.com> Subject: Re: process 'stuck' at exit. From: Darren Hart To: Dave Jones , Steven Rostedt Cc: Thomas Gleixner , Linus Torvalds , Andrea Arcangeli , Linux Kernel Mailing List , Peter Zijlstra , Mel Gorman , Oleg Nesterov Date: Tue, 10 Dec 2013 13:25:34 -0800 In-Reply-To: <20131210205523.GC27373@redhat.com> References: <20131210154724.GA30020@redhat.com> <20131210202752.GA27373@redhat.com> <20131210205523.GC27373@redhat.com> Organization: Intel Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.5 (3.8.5-2.fc19) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2013-12-10 at 15:55 -0500, Dave Jones wrote: > On Tue, Dec 10, 2013 at 09:34:24PM +0100, Thomas Gleixner wrote: > > > > > PS: Oleg - the whole thread is on lkml. Ping me if you need more context. > > > > > > btw, I've left the machine in that state, and will for as long as necesary > > > in case someone has any ideas for further tracing experiments. > > > > Can you gather a trace with the function tracer? That will tell us > > what the thing is actually doing. > > Feed me command lines, and I'll see what I can do. > > Dave > So let's see if we can determine the call chain inside futex_requeue, if there is one. We want to see if we are calling the following functions: futex.c: free_pi_state futex.c: get_futex_value_locked futex.c: futex_proxy_trylock_atomic futex.c: lookup_pi_state futex.c: fault_in_user_writeable I'm hoping we can make use of ftrace here? Consider: $ trace-cmd record -P -p function -l '*futex*' And to try outside of futex: $ trace-cmd record -P -p function Then ^C after a few seconds. The trace will be in trace.dat -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel