From: Keshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
To: Robin Holt <holt@sgi.com>
Cc: Keith Owens <kaos@americas.sgi.com>,
Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>,
prasanna@in.ibm.com, ananth@in.ibm.com, davem@davemloft.net,
tony.luck@intel.com, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@osdl.org>
Subject: Re: ia64_do_page_fault shows 19.4% slowdown from notify_die.
Date: Tue, 18 Apr 2006 16:03:31 -0700 [thread overview]
Message-ID: <20060418160331.A29518@unix-os.sc.intel.com> (raw)
In-Reply-To: <20060418221623.GB22514@lnx-holt.americas.sgi.com>; from holt@sgi.com on Tue, Apr 18, 2006 at 05:16:23PM -0500
On Tue, Apr 18, 2006 at 05:16:23PM -0500, Robin Holt wrote:
> On Tue, Apr 18, 2006 at 10:23:52AM +1000, Keith Owens wrote:
> > I thought that is what I said in my original response, "kprobes should
>
> I was a little dense and had forgotten that KDB would still need to
> register as a debugger.
>
>
> Some micro-benchmarking has shown this to be very painful. The average
> of 128 iterations with 4194304 faults per iteration using the attached
> micro-benchmark showed the following:
>
> 499 nSec/fault ia64_do_page_fault notify_die commented out.
> 501 nSec/fault ia64_do_page_fault with nobody registered.
> 533 nSec/fault notify_die in and just kprobes.
> 596 nSec/fault notify_die in and kdb, kprobes, mca, and xpc loaded.
>
> The 596 nSec/fault is a 19.4% slowdown. This is an upcoming OSD beta
> kernel. It will be representative of what our typical customer will
> have loaded.
>
> Is this enough justification for breaking notify_die into
> notify_page_fault for the fault path?
Yes sir, I am convinced 100%.
>
>
> > that chain should be optimized away when CONFIG_KPROBES=n or there are
> > no active probes".
>
> Having the notify_page_fault() without anybody registered was only a
> 0.4% slowdown. I am not sure that justifies the optimize away, but I
> would certainly not object.
>
> I think the second and third numbers also indicate strongly that kprobes
> should only be registering the notify_page_fault when it actually is
> monitoring for a memory access. I know so little about how kprobes works,
> I will stop right there. Is there anybody who is willing to take that
> task or explain why it is impossible?
I will take it up and submit a path soon.
Thanks for your analysis.
-Anil
next prev parent reply other threads:[~2006-04-18 23:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 19:46 Is notify_die being overloaded? Robin Holt
2006-04-15 6:19 ` Keith Owens
2006-04-15 10:43 ` Robin Holt
2006-04-17 7:52 ` Keith Owens
2006-04-17 10:51 ` Robin Holt
2006-04-17 11:25 ` Robin Holt
2006-04-18 0:23 ` Keith Owens
2006-04-18 22:16 ` ia64_do_page_fault shows 19.4% slowdown from notify_die Robin Holt
2006-04-18 23:03 ` Keshavamurthy Anil S [this message]
2006-04-19 0:30 ` Andi Kleen
2006-04-19 11:11 ` Robin Holt
2006-04-17 16:50 ` Is notify_die being overloaded? Keshavamurthy Anil S
2006-04-17 16:45 ` Keshavamurthy Anil S
-- strict thread matches above, loose matches on Subject: below --
2006-04-18 23:40 ia64_do_page_fault shows 19.4% slowdown from notify_die Luck, Tony
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=20060418160331.A29518@unix-os.sc.intel.com \
--to=anil.s.keshavamurthy@intel.com \
--cc=akpm@osdl.org \
--cc=ananth@in.ibm.com \
--cc=davem@davemloft.net \
--cc=holt@sgi.com \
--cc=kaos@americas.sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=prasanna@in.ibm.com \
--cc=tony.luck@intel.com \
/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