From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 19 13:48:38 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FA92106564A for ; Thu, 19 Feb 2009 13:48:38 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 8B05D8FC1B for ; Thu, 19 Feb 2009 13:48:37 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: by ug-out-1314.google.com with SMTP id j40so22957ugd.39 for ; Thu, 19 Feb 2009 05:48:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:cc:x-mailer; bh=unYpJALTO+X/ulKXs9jAhIo1nnF5yfNvivjAXwXx8Z0=; b=DVljTDLTAJMYTRYWkQ9u16uwo5Nnf2N1/4tr9dklnWQTHmohMJSi24G81+bLNiPXz+ wp4VsotRYQLmKUYPTOKX+5qVE5Y7voxsUukw8pygV6Q5+WQCNa0EJ0A/vvfuRDRZxzCs lFd2WQyOTdSbSgqcVPi9tetxyUHItXGdB/W5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:cc:x-mailer; b=OKooxRbKRy9c0qPQVx6+Flks4EyKaEvW+YebE7ExW6O5a+LVQgkw9NMQCLtXl1x6F3 YsDuYmwk6u2pLomd+301dfsiqoB9LWhD2r63HCqAKEmFheq96NHfQTzcYxgIT6wsvjC5 CdzHouD6f3wDoO2l2iIXJTQvdCyakHg+kbHRQ= Received: by 10.210.35.17 with SMTP id i17mr2657297ebi.165.1235051316461; Thu, 19 Feb 2009 05:48:36 -0800 (PST) Received: from ?192.168.1.11? (dyn.144-85-219-084.dsl.vtx.ch [144.85.219.84]) by mx.google.com with ESMTPS id 5sm95648eyf.42.2009.02.19.05.48.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Feb 2009 05:48:36 -0800 (PST) References: <84dead720902181846o7c1ca09fx93fa156d262cc610@mail.gmail.com> <402671A8-53C8-4F24-980B-85519146761E@gmail.com> <84dead720902190315y3dc25bfaj315409988bb5c460@mail.gmail.com> Message-Id: <26699242-E776-4920-A8AE-011BEA4DA18E@gmail.com> From: =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= To: Joseph Koshy In-Reply-To: <84dead720902190315y3dc25bfaj315409988bb5c460@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Thu, 19 Feb 2009 14:48:34 +0100 X-Mailer: Apple Mail (2.930.3) Cc: freebsd-hackers@freebsd.org Subject: Re: Obtaining l2 misses and cpu utilization in a module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2009 13:48:38 -0000 On 19 Feb 2009, at 12:15 , Joseph Koshy wrote: >> % pmccontrol -L >> pmccontrol: Initialization of the pmc(3) library failed: No such >> file or >> directory. > > Did you load hwpmc(4) into the kernel? > How can I check that? kldload pmc reports that pmc interface exists in kernel. pmc: Unknown Intel CPU. module_register_init: MOD_LOAD (hwpmc, 0xffffffff804ae160, 0xffffffff809c4c60) error 78 WARNING: WITNESS option enabled, expect reduced performance. cd3 at umass-sim3 bus 3 target 0 lun 0 cd3: Removable CD-ROM SCSI-3 device cd3: 40.000MB/s transfers cd3: Attempt to query device size failed: NOT READY, Medium not present cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-3 device cd0: 40.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at umass-sim1 bus 1 target 0 lun 0 cd1: Removable CD-ROM SCSI-3 device cd1: 40.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present cd2 at umass-sim2 bus 2 target 0 lun 0 cd2: Removable CD-ROM SCSI-3 device cd2: 40.000MB/s transfers cd2: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad4s1a ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled interface pmc.33554432 already present in the KLD 'kernel'! kldload: /boot/kernel/hwpmc.ko: Unsupported file type > Model 10676H should be supported in -current. If you are running 7.X > you can find a patch by Fabien at wiki.freebsd.org/PmcTools. I've applied only . Should I apply the other one? My system is: FreeBSD nslrack54.epfl.ch 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #12 Cheers, Nikola