Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2007 12:09:44 +0000
From:      "Joseph Koshy" <joseph.koshy@gmail.com>
To:        "Kris Kennaway" <kris@freebsd.org>
Cc:        Attilio Rao <attilio@freebsd.org>, freebsd-stable@freebsd.org, Alexey Popov <lol@chistydom.ru>
Subject:   Re: 2 x quad-core system is slower that 2 x dual core on FreeBSD
Message-ID:  <84dead720711230409u112b0a01k97e58d0ff0c61f8b@mail.gmail.com>
In-Reply-To: <4746B21F.7050906@FreeBSD.org>
References:  <4741905E.8050300@chistydom.ru> <4742ADFE.40902@FreeBSD.org> <4742C46A.1060701@chistydom.ru> <47432F77.3030606@FreeBSD.org> <474339E9.4080301@FreeBSD.org> <4743629B.9090408@FreeBSD.org> <47456B71.5040205@chistydom.ru> <4745E5B3.6060200@FreeBSD.org> <47468165.5010906@chistydom.ru> <4746B21F.7050906@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Also I tried to find what else is slow in FreeBSD, I tried hwpmc as
> > module and in kernel, but it fails with error:
> > pmc: Unknown Intel CPU.
> > module_register_init: MOD_LOAD (hwpmc, 0xffffffff804833e0,
> > 0xffffffff809338a0) error 78

> There are patches you need to enable it on woodcrest.  They are in my p4
> branch (kris-contention) but I don't have time right now to extract them.

These patches make hwpmc treat these CPUs are possessing Pentium-Pro class
PMCs.

Unfortunately, this is easy to do, but incorrect:
- There are differences in the legal bit values that may be loaded into
  PMC registers for many hardware events.
- hwpmc needs to be taught to support measurements on CPUs with
  multiple cores per package.

And then there is additional work to support these CPUS
at the same level as the current set:
- The hardware events supported are named differently; documentation,
   libpmc's event selector parsing code need to be changed to suit.
- The hardware supports a new class of "fixed function" PMCs that
   hwpmc needs to support.

-- 
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720711230409u112b0a01k97e58d0ff0c61f8b>