From owner-freebsd-stable@FreeBSD.ORG Fri Nov 23 12:09:47 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 EA33316A46E for ; Fri, 23 Nov 2007 12:09:47 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id A585713C448 for ; Fri, 23 Nov 2007 12:09:47 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so2674888rvb for ; Fri, 23 Nov 2007 04:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ni2rDDZPO8jjpfr3T4jGOTbYq/m+8Us21u6ER+23vkI=; b=V/NJxxGSK703b4WkiMOoEwNo0k+1xurKoTjv7LhryWy171lWgVlSlqGjAiJc25qwqYHIs8XsZ+UKSQ+ng5+NTXoeXOjal32eUR3XqIg8rgcI6WP3ZCXDNW6moCKnazSyT7x6njYK7Uj+IEsoI+z54s7A90owBk/Aeh3m2C5UmcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RoY+CDawN4MBcHHlZy00NyunjCocNCs7uLtN/oJlAq27S6eFlkJxDf37R7N4In1Cd+6RUp8nDZ0+eLyicksLp3afWz+DzVjy/lF9A3QKPvPFtQ9TsMFC34lnwJa9Kdl9xIkx15kFduXqn7AgJXJFaY5RRC4+4Xqs+Y6vHL8/sWg= Received: by 10.141.164.10 with SMTP id r10mr3907907rvo.1195819784672; Fri, 23 Nov 2007 04:09:44 -0800 (PST) Received: by 10.141.206.11 with HTTP; Fri, 23 Nov 2007 04:09:44 -0800 (PST) Message-ID: <84dead720711230409u112b0a01k97e58d0ff0c61f8b@mail.gmail.com> Date: Fri, 23 Nov 2007 12:09:44 +0000 From: "Joseph Koshy" To: "Kris Kennaway" In-Reply-To: <4746B21F.7050906@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> 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 12:09:48 -0000 > > 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