From owner-freebsd-arch@FreeBSD.ORG Mon Mar 17 14:42:53 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB2A71065670; Mon, 17 Mar 2008 14:42:53 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4529F8FC31; Mon, 17 Mar 2008 14:42:53 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.1/8.13.8) with ESMTP id m2HEgq03048108; Mon, 17 Mar 2008 09:42:52 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m2HEgqh5048107; Mon, 17 Mar 2008 09:42:52 -0500 (CDT) (envelope-from brooks) Date: Mon, 17 Mar 2008 09:42:52 -0500 From: Brooks Davis To: John Baldwin Message-ID: <20080317144251.GA38485@lor.one-eyed-alien.net> References: <20080313180805.GA83406@dragon.NUXI.org> <200803141431.53846.jhb@freebsd.org> <84dead720803142243r6c8cc68dm325e7fb925189fd@mail.gmail.com> <200803170947.25205.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <200803170947.25205.jhb@freebsd.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 17 Mar 2008 09:42:52 -0500 (CDT) Cc: freebsd-arch@freebsd.org Subject: Re: [PATCH] hwpmc(4) changes to use 'mp_maxid' instead of 'mp_ncpus'. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 14:42:53 -0000 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2008 at 09:47:25AM -0400, John Baldwin wrote: > On Saturday 15 March 2008 01:43:00 am Joseph Koshy wrote: > > > FreeBSD has been trying to not be quite as i386-centric as it used to > > > be. If you look at other code in the kernel that handles per-cpu data > > > such as UMA you will see that it uses mp_maxid and CPU_ABSENT(). The= re > > > are other places in the kernel that are broken though (such as ndis(4= )). > > > > HWPMC is very x86 centric, for obvious reasons. >=20 > Considering other CPU archictectures support various performance counters= it=20 > really shouldn't be designed to be x86-centric even if it is currently on= ly=20 > implemented for x86 CPUs. We should take some care to make sure we don't over generalize. From what I've heard the people who wrote the performance counter framework for x86 in linux where very, very unhappy when told to rework everything to support at framework that went with ia64's exponentionaly more complex instrumentation. If we can make small changes to support more conventional non-x86 platforms, that's probably a good idea. If nothing else, these counters could be even more useful on CPU-poor embedded devices. -- Brooks --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFH3oNrXY6L6fI4GtQRAjbYAKC+QcDLzwdkxSwfiHwvcfSLL7iOOgCgidXe juBHKIAfKToVaSnCGmVsI4Y= =99LI -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--