Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756928Ab3H3R0L (ORCPT ); Fri, 30 Aug 2013 13:26:11 -0400 Received: from mail-vc0-f176.google.com ([209.85.220.176]:40449 "EHLO mail-vc0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756720Ab3H3R0J (ORCPT ); Fri, 30 Aug 2013 13:26:09 -0400 MIME-Version: 1.0 In-Reply-To: References: <1375758759-29629-1-git-send-email-Waiman.Long@hp.com> <1375758759-29629-2-git-send-email-Waiman.Long@hp.com> <1377751465.4028.20.camel@pasglop> <20130829070012.GC27322@gmail.com> <52200DAE.2020303@hp.com> Date: Fri, 30 Aug 2013 10:26:07 -0700 X-Google-Sender-Auth: 3wE6KFWn0Whf1eUC02QqTmObWA8 Message-ID: Subject: Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount From: Linus Torvalds To: Sedat Dilek Cc: Waiman Long , Ingo Molnar , Benjamin Herrenschmidt , Alexander Viro , Jeff Layton , Miklos Szeredi , Ingo Molnar , Thomas Gleixner , linux-fsdevel , Linux Kernel Mailing List , Peter Zijlstra , Steven Rostedt , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1553 Lines: 36 On Fri, Aug 30, 2013 at 10:11 AM, Sedat Dilek wrote: > > There is no -f option for record but for report, so I swapped them: That's odd. "perf record -f" very much works for me, and I use it all the time to make sure that I don't mix perf data from older runs.. [ Time passes. I check current 'perf'. Dammit. This has changed. I seldom rebuild "perf", so I never noticed. It was removed in commit 4a4d371a4dfb, apparently because the old "append" mode no longer even exists ] But never mind, that doesn't matter for your numbers: > $ sudo ~/src/linux-kernel/linux/tools/perf/perf report -f > > Samples: 159K of event 'cycles:pp', Event count (approx.): 76535356682 > 84,10% t_lockref_from- [kernel.kallsyms] [k] check_poison_obj > 5,22% t_lockref_from- [kernel.kallsyms] [k] memset > 1,15% t_lockref_from- [kernel.kallsyms] [k] irq_return > 0,45% t_lockref_from- [kernel.kallsyms] [k] kmem_cache_alloc > 0,44% t_lockref_from- [kernel.kallsyms] [k] kmem_cache_free You're wasting all the time in slab debugging, probably due to the object debug option. None of the rest is even remotely interesting, and the spinlock hits you do have are more likely to come from the same object debug code than from pathname lookup. Linus -- 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/