mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: "Bryan O'Sullivan" <bos@serpentine.com>
Cc: Mikael.Pettersson@csd.uu.se, linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: perfctr questions
Date: Fri, 2 Jul 2004 01:26:46 +0200	[thread overview]
Message-ID: <20040701232646.GA21868@outpost.ds9a.nl> (raw)
In-Reply-To: <1088720394.32000.26.camel@serpentine.internal.keyresearch.com>

On Thu, Jul 01, 2004 at 03:19:54PM -0700, Bryan O'Sullivan wrote:

> > I'm trying to test your performance counters stuff, but I can't get it to do
> > anything remotely useful! Probably just me.

Ok, it is working. This is a plot of the number of L2 Address Strobes
counted while scanning a buffer of x bytes: http://ds9a.nl/tmp/strobes.png 

>From dmesg:
CPU: L1 I cache: 32K, L1 D cache: 32K

Note the sharp rise at 32768 bytes!

int main(int argc, char **argv)
{
        char *memory;
        int len=atoi(argv[1]);
        memory=malloc(len);
        int n, count;
        for(count=0;count<10000;++count) 
                for(n=1;n<len;++n) {    
                        memory[n]++;
                }
}

Script:

for a in $(seq 30000 10 35000) ; do perfex -o log -e 0x00410021 ./null $a ;
echo -n "$a " ; tail -1 log | awk '{print $3}'; done > line

The '21' stands for P6_L2_ADS.

Cool stuff!

Regards,

bert

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

  parent reply	other threads:[~2004-07-01 23:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 22:04 bert hubert
2004-07-01 22:19 ` Bryan O'Sullivan
2004-07-01 22:56   ` bert hubert
2004-07-01 23:26   ` bert hubert [this message]
2004-07-02 10:21 Mikael Pettersson
2004-07-02 11:04 ` bert hubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040701232646.GA21868@outpost.ds9a.nl \
    --to=ahu@ds9a.nl \
    --cc=Mikael.Pettersson@csd.uu.se \
    --cc=akpm@osdl.org \
    --cc=bos@serpentine.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®