From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 7 06:33:58 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FA1C1065679 for ; Fri, 7 Aug 2009 06:33:58 +0000 (UTC) (envelope-from fabrizio.invernizzi@telecomitalia.it) Received: from GRFEDG702BA020.telecomitalia.it (grfedg702ba020.telecomitalia.it [156.54.233.201]) by mx1.freebsd.org (Postfix) with ESMTP id C048C8FC0A for ; Fri, 7 Aug 2009 06:33:57 +0000 (UTC) Received: from GRFHUB701BA020.griffon.local (10.188.101.111) by GRFEDG702BA020.telecomitalia.it (10.188.45.101) with Microsoft SMTP Server (TLS) id 8.1.340.0; Fri, 7 Aug 2009 08:33:56 +0200 Received: from GRFMBX702BA020.griffon.local ([10.188.101.12]) by grfhub701ba020.griffon.local ([10.188.101.111]) with mapi; Fri, 7 Aug 2009 08:33:56 +0200 From: Invernizzi Fabrizio To: Joseph Koshy Date: Fri, 7 Aug 2009 08:33:54 +0200 Thread-Topic: Problem with pmcstat Thread-Index: AcoWtiwwYN56DlOpSfGMy9MecCmEMQAcmGNA Message-ID: <36A93B31228D3B49B691AD31652BCAE9A456967666@GRFMBX702BA020.griffon.local> References: <36A93B31228D3B49B691AD31652BCAE9A4569675DE@GRFMBX702BA020.griffon.local> <84dead720908060951j605338e3vb48cd41f13810f29@mail.gmail.com> In-Reply-To: <84dead720908060951j605338e3vb48cd41f13810f29@mail.gmail.com> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: it-IT, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-amd64@freebsd.org" Subject: RE: Problem with pmcstat X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 06:33:58 -0000 This Is my dmesg: CPU: Intel(R) Xeon(R) CPU E5420 @ 2.50GHz (2503.74-MHz K8-class = CPU) Origin =3D "GenuineIntel" Id =3D 0x10676 Stepping =3D 6 Features=3D0xbfebfbff Features2=3D0xce3bd> AMD Features=3D0x20100800 AMD Features2=3D0x1 Cores per package: 4 usable memory =3D 8575586304 (8178 MB) avail memory =3D 8281559040 (7897 MB) When I try to load the hwpmc module I obtain this error: #kldload hwpmc.ko kldload: can't load hwpmc.ko: Exec format error Fabrizio > -----Original Message----- > From: Joseph Koshy [mailto:joseph.koshy@gmail.com] > Sent: gioved=EC 6 agosto 2009 18.52 > To: Invernizzi Fabrizio > Cc: freebsd-amd64@freebsd.org > Subject: Re: Problem with pmcstat > > > i am doing some performance testing with FreeBSD (64 bit) > and i would like to use pmcstat. > > I recompiled the kernel with > > options HWPMC_HOOKS > > device hwpmc > > > > When i restart the system looks like being ok > > > > #sysctl -a | grep hwpmc > > kern.hwpmc.nbuffers: 16 > > kern.hwpmc.logbuffersize: 4 > > kern.hwpmc.mtxpoolsize: 32 > > kern.hwpmc.nsamples: 32 > > kern.hwpmc.hashsize: 16 > > > > but the pmcstat gives me this error: > > > > # pmcstat -s p6-hw-int-rx -w 1 > > pmcstat: ERROR: Initialization of the pmc(3) library > failed: No such > > file or directory > > > > I googled a lot, but nothing about this problem. Consider > that on the same hardware with 7.2-RELEASE 32 bit everything > was working. > > Anyone can help me? > > > > This are some details: > > > > uname -a > > FreeBSD INTRUDER-64.ipv6.tilab.com 7.2-RELEASE FreeBSD > 7.2-RELEASE #3: Thu Aug 6 11:36:53 CEST 2009 amd64 > > > > Server: HP DL 180G5 > > i386 vs amd64 should not make a difference here. > > What CPU are you running on and what does hwpmc(4) print out > at module initialization time? > > Koshy > Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle per= sone indicate. La diffusione, copia o qualsiasi altra azione derivante dall= a conoscenza di queste informazioni sono rigorosamente vietate. Qualora abb= iate ricevuto questo documento per errore siete cortesemente pregati di dar= ne immediata comunicazione al mittente e di provvedere alla sua distruzione= , Grazie. This e-mail and any attachments is confidential and may contain privileged = information intended for the addressee(s) only. Dissemination, copying, pri= nting or use by anybody else is unauthorised. If you are not the intended r= ecipient, please delete this message and any attachments and advise the sen= der by return e-mail, Thanks.