Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751404AbbFKPVQ (ORCPT ); Thu, 11 Jun 2015 11:21:16 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:36084 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbbFKPVM (ORCPT ); Thu, 11 Jun 2015 11:21:12 -0400 Message-ID: <5579A766.4010504@gmail.com> Date: Thu, 11 Jun 2015 09:21:10 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Arnaldo Carvalho de Melo , kan.liang@intel.com CC: linux-kernel@vger.kernel.org, ying.huang@intel.com, andi@firstfloor.org Subject: Re: [PATCH 1/1] perf,tools: add time out to force stop endless mmap processing References: <1433922364-22580-1-git-send-email-kan.liang@intel.com> <20150611140614.GC2696@kernel.org> In-Reply-To: <20150611140614.GC2696@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1224 Lines: 27 On 6/11/15 8:06 AM, Arnaldo Carvalho de Melo wrote: > Em Wed, Jun 10, 2015 at 03:46:04AM -0400, kan.liang@intel.com escreveu: >> perf top reads all threads' /proc/xxx/maps. If there is any threads >> which generating a keeping growing huge /proc/xxx/maps, perf will do >> infinite loop in perf_event__synthesize_mmap_events. >> This patch fixes this issue by adding a time out to force stop this kind >> of endless mmap processing. >> >> Reported-by: Huang, Ying >> Signed-off-by: Kan Liang > > So we will silently stop processing those events? > > We will make progress, no doubt, but I think the user needs to be warned > about this situation, so that later on when/if samples for those maps > appear and don't get resolved at least we will know that this is the > reason. Can you elaborate on an example? I don't see how this can happen reading a maps file. And it does not read maps for all threads only thread group leaders. -- 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/