From owner-freebsd-stable@FreeBSD.ORG Fri Nov 23 21:43:58 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 194B416A421; Fri, 23 Nov 2007 21:43:58 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (pointyhat.freebsd.org [IPv6:2001:4f8:fff6::2b]) by mx1.freebsd.org (Postfix) with ESMTP id C57BA13C478; Fri, 23 Nov 2007 21:43:56 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <474749A4.7010806@FreeBSD.org> Date: Fri, 23 Nov 2007 22:44:04 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Joseph Koshy 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> <84dead720711230409u112b0a01k97e58d0ff0c61f8b@mail.gmail.com> In-Reply-To: <84dead720711230409u112b0a01k97e58d0ff0c61f8b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Attilio Rao , freebsd-stable@freebsd.org, Alexey Popov Subject: Re: 2 x quad-core system is slower that 2 x dual core on FreeBSD X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2007 21:43:58 -0000 Joseph Koshy wrote: >>> 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. > Well, this is all true, but overlooks the point that it does minimally work, which is of critical importance to people with one of these CPUs who want to actually use your tool ;) Kris