From owner-freebsd-current@FreeBSD.ORG Tue Jan 29 11:03:40 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8F246BE9; Tue, 29 Jan 2013 11:03:40 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com [209.85.215.173]) by mx1.freebsd.org (Postfix) with ESMTP id AD821FC8; Tue, 29 Jan 2013 11:03:39 +0000 (UTC) Received: by mail-ea0-f173.google.com with SMTP id i1so131960eaa.4 for ; Tue, 29 Jan 2013 03:03:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/B6IlEEpz2k9ntjj1NzE95BgjEEB+KfSsgZ8xJrOW30=; b=gQNH7134YZIqNOmNphGe69KEEIV/FC6JAAgnVowkzel78Fr8RdzgbWdrcSuGTbaAOa 4SuYzMsHYVJKV1HInQlrJhRcYtyIWuowTRih7nymrlVlcjIaNlg8Ty68xlDnfbv4Lwyf yQevmHVqXzyY9Vpwa/Jovhh6HeF0ZUINMsDl62+d4JpBeF5GuMHlid2fyPGxiBqbO/DT CFYIt4NgP/TpaK+HBl5K+/o2b4B7w7jmMpI7xxt54vMbUVk9P/QQ9QVuUyFykb71Uua5 P3asyHMmu9sInf8p0j5oZotdqyCgtR2Ry7+6nSWNNu8Mr/nJ2TYNZaP8j8xpagDAJzUm f0qQ== MIME-Version: 1.0 X-Received: by 10.14.220.1 with SMTP id n1mr2352220eep.16.1359457412706; Tue, 29 Jan 2013 03:03:32 -0800 (PST) Received: by 10.14.29.78 with HTTP; Tue, 29 Jan 2013 03:03:32 -0800 (PST) In-Reply-To: References: Date: Tue, 29 Jan 2013 03:03:32 -0800 Message-ID: Subject: Re: hwpmc support for Ivy Bridge Xeon From: hiren panchasara To: Davide Italiano Content-Type: text/plain; charset=UTF-8 Cc: Fabien Thomas , freebsd-current , Jim Harris , pho@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 11:03:40 -0000 On Tue, Jan 29, 2013 at 2:05 AM, Davide Italiano wrote: > On Tue, Jan 29, 2013 at 12:29 AM, hiren panchasara > wrote: >> On Mon, Jan 28, 2013 at 7:27 PM, hiren panchasara >> wrote: >>> On Sat, Jan 26, 2013 at 1:58 AM, hiren panchasara >>> wrote: >>>> I've tried to update hwpmc by adding support for xeon class of Ivy >>>> bridge processors. >>>> >>>> Thanks Jim for pointing me to the correct document. (325462-045US Jan 2013) >>>> >>>> I do not have a reference machine to test with. Any help in that >>>> regard would be appreciated. >>> >>> Got a machine with ivy bridge xeon. Will test my changes and update here soon. >>> >>> Hiren >> >> It seems to be working fine: >> >> Here is o/p of "pmccontrol -L" listing all the event counters: >> http://www.strugglingcoder.info/patches/hwpmc_ibx_pmccontrol.txt >> > > I don't see anything wrong there. > >> And below is the o/p of pmctest.py script: >> http://www.strugglingcoder.info/patches/hwpmc_ibx_pmctest.txt >> > > With 'pmctest.py' are you talking about the gnn@ script available in tools/ ? Yes. > What are you profiling (ls, find, the kernel) ? I was testing simple commands like ls. > I've recently discovered an excellent tool from Peter in stress2 suite > to test pmc. Maybe you can try it. > http://svnweb.freebsd.org/base/user/pho/stress2/misc/pmc.sh?revision=237222&view=markup Interesting tool. I will spend more time in looking into it. Though I quickly did run pmc.sh run: run time 0+00:05:00, incarnations 1, load 100, verbose 1 10:48:37 Loop #1 rw: run time 0+00:02:00, incarnations 8, load 70, verbose 1 swap: run time 0+00:02:00, incarnations 38, load 80, verbose 1 creat: run time 0+00:02:00, incarnations 3, load 80, verbose 1 10:52:05 Loop #2 rw: run time 0+00:02:00, incarnations 17, load 70, verbose 1 creat: run time 0+00:02:00, incarnations 18, load 80, verbose 1 mkdir: run time 0+00:02:00, incarnations 9, load 80, verbose 1 Again, I appreciate you helping here, Thanks, Hiren > >> cheers, >> Hiren >>>> >>>> Here are the diffs against head (245927): >>>> http://www.strugglingcoder.info/patches/hwpmc_ibx.txt >>>> >>>> Thanks, >>>> Hiren >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > Thanks > > -- > Davide