kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: peter.senna@gmail.com (Peter Senna Tschudin)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to measure performance inside Kernel?
Date: Sat, 11 Feb 2012 11:14:59 -0200	[thread overview]
Message-ID: <CA+MoWDpHhaAxkQYHcEVjPVjAand6wQEpe2sEp9V3WJczZQ6JWQ@mail.gmail.com> (raw)
In-Reply-To: <4F35E432.6060002@gmail.com>

Hi Graeme,

I'm doing tests on Fedora 15 and using it's provided
/lib/modules/2.6.41.10-3.fc15.x86_64/build/Makefile for compiling the
module.

> For starters, I would not be surprised if the compiler produces identical
> code, and if not, code that has the same performance...

I've measured huge differences. Geometrical Mean of 512 values on Core i7:
Original_code:		98.2421756187
Proposed_code:		17.9710892854

> That sounds like a perfectly good methodology - It would be interesting to
> see how many reps are required before the mean settles down to a constant
> value - Maybe you don't need to run it so many times, or maybe you need to
> ?run more...

During the run, measuring the original code reports some values that
are much higher than the average.
The graph is at: http://imgur.com/2WXAq

The full source of the module I'm using is at: http://goo.gl/cCMIa

What's wrong?

[]'s

Peter

-- 
Peter Senna Tschudin
peter.senna at gmail.com
gpg id: 48274C36

  reply	other threads:[~2012-02-11 13:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09 12:58 How to measure performance inside Kernel? Peter Senna Tschudin
2012-02-09 18:12 ` michi1 at michaelblizek.twilightparadox.com
2012-02-10 21:47 ` Peter Senna Tschudin
2012-02-10 22:06   ` Jeff Haran
2012-02-11  0:22     ` Peter Senna Tschudin
2012-02-11  3:44       ` Graeme Russ
2012-02-11 13:14         ` Peter Senna Tschudin [this message]
2012-02-11 13:57           ` Peter Senna Tschudin
2012-02-12 11:46             ` Mulyadi Santosa
2012-02-13 23:13               ` Peter Senna Tschudin
2012-02-14  3:43                 ` Mulyadi Santosa
2012-02-11  7:34       ` michi1 at michaelblizek.twilightparadox.com
2012-02-11  7:22   ` michi1 at michaelblizek.twilightparadox.com
2012-02-11 13:29     ` Peter Senna Tschudin

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=CA+MoWDpHhaAxkQYHcEVjPVjAand6wQEpe2sEp9V3WJczZQ6JWQ@mail.gmail.com \
    --to=peter.senna@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).