From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755483Ab0ENGXa (ORCPT ); Fri, 14 May 2010 02:23:30 -0400 Received: from mail-pz0-f204.google.com ([209.85.222.204]:48656 "EHLO mail-pz0-f204.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755368Ab0ENGX2 convert rfc822-to-8bit (ORCPT ); Fri, 14 May 2010 02:23:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lx974eAimV2pnvpQx1URby3SHHdixF/U2Q/qQtrS5c/m4S6T+1II4DhU8WhiecyMKK 6ZN1O34CLopqE6WCBPH0AOrykoxqSWt7UYThuPXEAZIOOdXnlkTY5e+PNBRMVFfVIrJY /d8LtmUQ6LxA1ytpb/CiRb7jspatLJ0dJjRYo= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 14 May 2010 10:23:27 +0400 Message-ID: Subject: Re: Performance Events hangs with Intel P4 system From: Cyrill Gorcunov To: Jaswinder Singh Rajput Cc: Ingo Molnar , Linux Kernel Mailing List , Lin Ming Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, May 14, 2010, Cyrill Gorcunov wrote: > On Friday, May 14, 2010, Jaswinder Singh Rajput > wrote: >> Hello Cyrill, >> >> On Fri, May 14, 2010 at 8:49 AM, Cyrill Gorcunov wrote: >>> On Friday, May 14, 2010, Jaswinder Singh Rajput >>> wrote: >>>> Hello, >>>> >>>> I am testing Performance Events on P4 with HT: >>>> >>>> [    0.002243] Performance Events: Netburst events, Netburst P4/Xeon PMU driver. >>>> [    0.002432] ... version:                0 >>>> [    0.002545] ... bit width:              40 >>>> [    0.002659] ... generic registers:      18 >>>> [    0.002772] ... value mask:             000000ffffffffff >>>> [    0.002887] ... max period:             0000007fffffffff >>>> [    0.003004] ... fixed-purpose events:   0 >>>> [    0.003118] ... event mask:             000000000003ffff >>>> >>>> dmesg : http://userweb.kernel.org/~jaswinder/P4_HT/dmesg-2634-rc7-tip.txt >>>> config : http://userweb.kernel.org/~jaswinder/P4_HT/config-2634-rc7-tip.txt >>>> >>>> [jaswinder@ht perf]$ ./perf stat -e cycles ls > /dev/null >>>> >>>>  Performance counter stats for 'ls': >>>> >>>>     cycles >>>> >>>>     0.003447053  seconds time elapsed >>>> >>>> [jaswinder@ht perf]$ ./perf stat -e cycles,instructions ls > /dev/null >>>> >>>>  Performance counter stats for 'ls': >>>> >>>>     cycles >>>>         1862188  instructions             #      0.000 IPC    (scaled >>>> from 54.91%) >>>> >>>>     0.003419230  seconds time elapsed >>>> >>>> [jaswinder@ht perf]$ ./perf stat -e >>>> cycles,instructions,cache-references ls > /dev/null >>>> >>>> <> >>>> >>>> How can I fix this problem. >>>> >>>> Thanks, >>>> -- >>>> Jaswinder Singh. >>>> >>> >>> thanks for testing. Is there any issue in dmesg for first two perf >>> calls before it hangs? >> >> There is no issue in dmesg for first two perf calls. >> >>> And is there a chance for screen dump (photo or >>> netconsole)? >>> >> >> Here is netconsole : >> >> [jaswinder@ht perf]$ ./perf stat -e >> cycles,instructions,cache-references ls > /dev/null >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  314.908284] general protection fault: 0000 [#1] PREEMPT SMP >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  314.908296] last sysfs file: >> /sys/class/net/eth1/statistics/collisions >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  314.908346] Process ls (pid: 2726, ti=edac2000 >> task=ed9eb240 task.ti=edac2000) >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  314.908349] Stack: >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  314.908387] Call Trace: >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  314.908549] Code: cb 89 d1 e8 89 c7 13 00 8b 75 dc 8b 45 e4 >> 8b 55 d0 23 15 68 37 58 c1 8b b6 c4 00 00 00 01 75 f0 f7 d8 8b 4d f0 >> 23 05 64 37 58 c1 <0f> 30 8b 45 dc e8 a4 63 06 00 8b 45 ec 83 c4 30 5b >> 5e 5f 5d c3 >> >> Message from syslogd@ht at May 14 09:39:32 ... >>  kernel:[  thanks Jaswinder, i'll take a look, meanwhile if you get a chance to > test latest -tip/master it would be great > it's found that we have problem in cache events, we're working on that, thanks for report!