From owner-freebsd-performance@FreeBSD.ORG Thu Jan 15 20:23:35 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AACAD1065674 for ; Thu, 15 Jan 2009 20:23:35 +0000 (UTC) (envelope-from carl@cs.mcgill.ca) Received: from mail.cs.mcgill.ca (mail.CS.McGill.CA [132.206.51.234]) by mx1.freebsd.org (Postfix) with ESMTP id 84E5F8FC12 for ; Thu, 15 Jan 2009 20:23:35 +0000 (UTC) (envelope-from carl@cs.mcgill.ca) Received: from mail.cs.mcgill.ca (localhost.localdomain [127.0.0.1]) by mail.cs.mcgill.ca (Postfix) with ESMTP id AE59ABF903F for ; Thu, 15 Jan 2009 15:23:34 -0500 (EST) Received: from 72.228.102.77 (SquirrelMail authenticated user carl) by mail.cs.mcgill.ca with HTTP; Thu, 15 Jan 2009 15:23:34 -0500 (EST) Message-ID: <55291.72.228.102.77.1232051014.squirrel@mail.cs.mcgill.ca> Date: Thu, 15 Jan 2009 15:23:34 -0500 (EST) From: "carl tropper" To: freebsd-performance@freebsd.org User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: (no subject) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: carl@cs.mcgill.ca List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 20:23:36 -0000 What are the performance counters for multicore (unix based) machines which are relevant to cache behavior? I am interested in determining the amount of performance loss due to cache misses. Carl Tropper Department of Computer Science McConnell Engineering Building McGill University Montreal, Canada, H3A 2A6 tel: (514)398-3743 fax: (514)398-3883 url:www.cs.mcgill.ca/~carl From owner-freebsd-performance@FreeBSD.ORG Fri Jan 16 03:15:48 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DE6C1065670 for ; Fri, 16 Jan 2009 03:15:48 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.245]) by mx1.freebsd.org (Postfix) with ESMTP id 0191A8FC12 for ; Fri, 16 Jan 2009 03:15:47 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0708.google.com with SMTP id k29so1662532rvb.0 for ; Thu, 15 Jan 2009 19:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=ionvXeo9oTkBkZaiMWsP/Mkd4XGfxTw6Ru+7+b3nHQE=; b=H04kCyy4VlZKiv3wLmZA6ZAyq9oAnE/PBghoj9P1LuS1J6M3FHWTwIa7bNm7//key/ jRfweuDCE9wS59hW7tKRuSW70Q+NAIq+n1nL+V+5lPBORYz9ug5rsHx/VvwhPiu3Vg9z TSHN+iTH+U5G68XNwTXrfeSsPqSjQ7HKSVef4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=vzgjR1Ml53seEQ27h5JQhccMN1XQkQ+JRynmVybsNIFF16z8tVBUCanUKHZhDX5EVo hdToOUoUP82JWeasGrP/y//iIJaFEbr9dEUNSTPlLswcMNe6/UwbkR+qrxaLJ6gWYlSS CbRjWLTptzZEK8zrCn90QUSX0aXqWfFzxX6Jg= Received: by 10.141.137.16 with SMTP id p16mr949383rvn.180.1232074061176; Thu, 15 Jan 2009 18:47:41 -0800 (PST) Received: by 10.141.180.7 with HTTP; Thu, 15 Jan 2009 18:47:40 -0800 (PST) Message-ID: <3c1674c90901151847lbb5e440lb5f45628b4746ccd@mail.gmail.com> Date: Thu, 15 Jan 2009 18:47:40 -0800 From: "Kip Macy" Sender: mat.macy@gmail.com To: carl@cs.mcgill.ca MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: ff3f5851a53cbe86 Cc: freebsd-performance@freebsd.org Subject: performance counters was Re: (no subject) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 03:15:48 -0000 The man pages have a fair amount of documentation, you can also look dev/hwpmc/pmc_events.h to find all the event names. -Kip On Thu, Jan 15, 2009 at 12:23 PM, carl tropper wrote: > > What are the performance counters for multicore (unix based) machines which > are relevant to cache behavior? I am interested in determining the amount of > performance loss due to cache misses. > > > Carl Tropper > Department of Computer Science > McConnell Engineering Building > McGill University > Montreal, Canada, H3A 2A6 > tel: (514)398-3743 > fax: (514)398-3883 > url:www.cs.mcgill.ca/~carl > > > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" > From owner-freebsd-performance@FreeBSD.ORG Fri Jan 16 10:10:28 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 200081065677 for ; Fri, 16 Jan 2009 10:10:28 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id E38D58FC1A for ; Fri, 16 Jan 2009 10:10:27 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1573015rvf.43 for ; Fri, 16 Jan 2009 02:10:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Hwd4xu18DQi9a3ddXFVHneEf0H2bG/FJHvyj+PP3p9U=; b=JpezJDUT2GLzXzJNczULh9UCSZPt/dx51GcwZfyrg+EEc7gPMpenxvyaUmaN3WRcmx IlKFcduzyE9Q7sxO8JrefZJU/6pqg0APZ1s4b1boxGaW+TxOpov2Sn+uU/iqwOdleR9T LjDfhW5FIgDQBjthHFChTQfUvPp+qHvrY8wqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=HLqB2fnHO81WxCm9DPONCc3uUEGancce/HGkJYlag+XBaWyYl3SZHTmjJ9RwjZgO6w abTeLF3lHw50ccN0mKdredi1/+B17bx9cDqb1s6KCawrT5U1O7LsjgIeYGqOo7vrlpMg EnPVdAHvRcFEm1CWfVw3sUDEgvRiRGEGE6nV0= Received: by 10.142.14.18 with SMTP id 18mr962370wfn.35.1232099040481; Fri, 16 Jan 2009 01:44:00 -0800 (PST) Received: by 10.142.239.14 with HTTP; Fri, 16 Jan 2009 01:44:00 -0800 (PST) Message-ID: Date: Fri, 16 Jan 2009 10:44:00 +0100 From: "Harald Servat" To: "Kip Macy" In-Reply-To: <3c1674c90901151847lbb5e440lb5f45628b4746ccd@mail.gmail.com> MIME-Version: 1.0 References: <3c1674c90901151847lbb5e440lb5f45628b4746ccd@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-performance@freebsd.org, carl@cs.mcgill.ca Subject: Re: performance counters was Re: (no subject) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 10:10:28 -0000 On Fri, Jan 16, 2009 at 3:47 AM, Kip Macy wrote: > The man pages have a fair amount of documentation, you can also look > dev/hwpmc/pmc_events.h to find all the event names. > > -Kip > > On Thu, Jan 15, 2009 at 12:23 PM, carl tropper wrote: > > > > What are the performance counters for multicore (unix based) machines > which > > are relevant to cache behavior? I am interested in determining the amount > of > > performance loss due to cache misses. > > > > > > Carl Tropper > > Department of Computer Science > > McConnell Engineering Building > > McGill University > > Montreal, Canada, H3A 2A6 > > tel: (514)398-3743 > > fax: (514)398-3883 > > url:www.cs.mcgill.ca/~carl > > > > > Carl, If you are worried by portability (you just talk about "unix based"), you can also consider PAPI (http://icl.cs.utk.edu/papi). It provides a layer built on top of the different available substrates related with performance counters. For example, it works on FreeBSD on top of libpmc, in Linux on top perfctr and/or perfmon and in AIX on top of PMAPI. PAPI tries to simplify some performance metrics because the CPU typically provides counters highly-related with its architecture, for example I've seen AIX/PowerPC machines that provide cache misses for level 2.5 and 2.75 which is quite peculiar. PAPI is also able to provide direct access to them, if you are interested. If you just consider FreeBSD (as you contacted this list), you may directly look for the hwpmc and pmc entry manuals. Regards,