From owner-freebsd-current@FreeBSD.ORG Wed Nov 12 04:50:06 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 044171065676 for ; Wed, 12 Nov 2008 04:50:06 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [66.246.138.153]) by mx1.freebsd.org (Postfix) with ESMTP id D40A38FC1B for ; Wed, 12 Nov 2008 04:50:05 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 8A0591923E; Tue, 11 Nov 2008 23:50:04 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 Received: from tau.draftnet (unknown [66.45.161.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Tue, 11 Nov 2008 23:50:04 -0500 (EST) Date: Tue, 11 Nov 2008 20:49:41 -0800 From: Bruce Cran To: current@freebsd.org, jkoshy@freebsd.org Message-ID: <20081111204941.4bfdb7c4@tau.draftnet> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: hwpmc deadlock: processes hang on pmc-sx X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 04:50:06 -0000 I decided to try hwpmc today, but ran into a deadlock on the second run. I'm using a dual core laptop: CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-52 (1600.07-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x40f82 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Cores per package: 2 usable memory = 2071433216 (1975 MB) avail memory = 2001584128 (1908 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 uname: FreeBSD tau.draftnet 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Nov 9 13:12:06 PST 2008 brucec@tau.draftnet:/usr/obj/usr/src/sys/MYKERNEL_8 amd64 I ran the command pmcstat -O test.stat -n 32768 -S instructions I found that I couldn't quit pmcstat and any attempt to run new processes hung too. The 'ps' listing in ddb contained the following: State wmesg cmd Ss pmc-sx sh S piperd cron S pmc-sx cron S pmc-sx gconf-d T+ pmc-sx dmesg S+ pmc-sx top SL pmcloop [hwpmc] S+ pmcctx pmcstat Are there any commands I should run at the debugger to collect more information if I trigger it again? -- Bruce Cran