From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680Ab0ENEZS (ORCPT ); Fri, 14 May 2010 00:25:18 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:42717 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750823Ab0ENEZP convert rfc822-to-8bit (ORCPT ); Fri, 14 May 2010 00:25:15 -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=XFPff/19Us8XEVqmPOtPrLu3UZaSisusZTnaiJRfIXvA5tamSHH04nrR46DL1lDkFL IXRz8ZxNuhHl/2UornxRiza+JM8gagh49HtX237cxqtTIB19nbAzeoBSQOlMdaLVgqIM SYF94isVJdoy64PD3KhrIvTOryZffMIc9af3o= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 14 May 2010 09:55:12 +0530 Message-ID: Subject: Re: Performance Events hangs with Intel P4 system From: Jaswinder Singh Rajput To: Cyrill Gorcunov Cc: Ingo Molnar , Linux Kernel Mailing List 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 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:[ 314.908612] EIP: [] x86_perf_event_set_period+0x19d/0x1b2 SS:ESP 0068:edac3d70 If you need more information, please let me know. Thanks, -- Jaswinder Singh.