From: Keith Seitz <keiths@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA 2/4] dwarf2_physname
Date: Mon, 14 Dec 2009 19:33:00 -0000 [thread overview]
Message-ID: <4B2692EE.5090807@redhat.com> (raw)
In-Reply-To: <4B1EAD5C.6060708@redhat.com>
On 12/08/2009 11:47 AM, Keith Seitz wrote:
> Yeah, this is *really* bad. Really, really bad. But this was just a an
> attempt at "making it work." Now comes the "make it faster" part. I have
> a few ideas about redundant calls and whatnot, but it will undoubtedly
> take some real effort and refactoring to really make the best of this.
>
> I'm working on some performance numbers now with OpenOffice.org Writer
> as Tom suggested. I'll follow up on this later in this thread when I
> have some more data collected.
Okay, so I have some performance numbers for my box using CVS HEAD
patched and unpatched with my dwarf2_physname patches.
Yes, --readnow and things like "info func" and "info types" will take a
big performance hit (really big right now).
So, without further ado...
I did three tests, all with OpenOffice.org Writer, as Tom suggested. So
when you see $PID, you'll know what PID that's for.
1. time ./gdb -nx -q --batch-silent --pid $PID 2> /dev/null
HEAD:
real 1m14.906s 0m14.517s 0m12.229s 0m12.669s 0m12.638s
user 0m19.050s 0m11.985s 0m11.770s 0m11.738s 0m11.754s
sys 0m1.998s 0m0.484s 0m0.448s 0m0.437s 0m0.431s
dwarf2_physname:
real 1m6.761s 0m12.143s 0m12.070s 0m12.098s 0m12.128s
user 0m18.863s 0m11.710s 0m11.652s 0m11.695s 0m11.683s
sys 0m1.954s 0m0.420s 0m0.390s 0m0.390s 0m0.413s
2. time ./gdb -nx -q --batch-silent --pid $PID -ex "thread apply all bt
full" 2> /dev/null
HEAD:
real 1m9.236s 0m12.739s 0m12.619s 0m12.613s 0m12.565s
user 0m19.059s 0m12.178s 0m12.170s 0m12.166s 0m12.102s
sys 0m1.883s 0m0.433s 0m0.440s 0m0.434s 0m0.456s
dwarf2_physname:
real 1m8.355s 0m13.276s 0m13.211s 0m13.208s 0m13.138s
user 0m19.863s 0m12.679s 0m12.750s 0m12.708s 0m12.708s
sys 0m0.978s 0m0.465s 0m0.436s 0m0.422s 0m0.425s
3. time ./gdb -nx -q --batch-silent --readnow --pid $PID 2> /dev/null
HEAD:
real 10m42.371s 6m57.499s 6m2.538s 7m50.482s 6m46.206s
user 1m43.927s 1m40.768s 1m40.768s 1m40.673s 1m41.129s
sys 0m9.349s 0m7.875s 0m7.038s 0m8.751s 0m7.552s
dwarf2_realname:
real 774m37.623s
user 3m48.010s
sys 0m14.745s
As you can see, --readnow (and by extrapolation "info func" and "info
type") take an enormous performance hit. The dwarf2_physname patch as it
currently exists, though, appears to have a pretty minimal impact on
performance for more "normal" or "mundane" usage.
In other news, I've tested linux native using STABS, and there are two
test files that show a total of five regressions, which I am digging
into. [I've eliminated another five failures because they also exist as
"failures" in the DWARF case (the library is still using DWARF!).]
As I'm sure we all know, STABS and C++ are such horrible bedfellows to
begin with...
Keith
next prev parent reply other threads:[~2009-12-14 19:33 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-20 21:20 Keith Seitz
2009-11-20 22:10 ` Daniel Jacobowitz
2009-11-21 0:04 ` Tom Tromey
2009-11-21 3:46 ` Frank Ch. Eigler
2009-11-23 18:06 ` Tom Tromey
2009-11-23 19:00 ` Daniel Jacobowitz
2009-11-23 16:52 ` Keith Seitz
2009-11-23 17:08 ` Daniel Jacobowitz
2009-11-24 19:20 ` Sami Wagiaalla
2010-01-27 17:10 ` Sami Wagiaalla
2009-12-08 19:47 ` Keith Seitz
2009-12-14 19:33 ` Keith Seitz [this message]
2009-12-17 20:19 ` Tom Tromey
2009-12-17 20:28 ` Daniel Jacobowitz
2009-12-17 22:39 ` Paul Pluzhnikov
2009-12-22 18:35 ` Tom Tromey
2009-12-22 19:24 ` Daniel Jacobowitz
2010-01-20 20:37 ` Keith Seitz
2010-01-26 21:17 ` Daniel Jacobowitz
2010-01-27 19:12 ` Keith Seitz
2010-01-28 20:22 ` Keith Seitz
2010-01-28 20:24 ` Daniel Jacobowitz
2010-01-28 23:41 ` Keith Seitz
2010-02-01 16:48 ` Daniel Jacobowitz
2010-02-01 19:32 ` Keith Seitz
2010-02-01 19:39 ` Daniel Jacobowitz
2010-02-01 21:52 ` Keith Seitz
2010-02-01 22:19 ` Daniel Jacobowitz
2010-02-02 23:23 ` Keith Seitz
2010-02-02 23:31 ` Keith Seitz
2010-02-03 2:46 ` Daniel Jacobowitz
2010-02-04 17:48 ` Tom Tromey
2010-02-04 18:14 ` Daniel Jacobowitz
2010-02-05 17:13 ` Keith Seitz
2010-02-05 17:29 ` Daniel Jacobowitz
2010-02-05 20:24 ` Keith Seitz
2010-02-05 20:57 ` Daniel Jacobowitz
2010-02-05 23:10 ` Keith Seitz
2010-02-05 23:46 ` Daniel Jacobowitz
2010-02-04 17:21 ` Tom Tromey
2010-02-04 17:25 ` Daniel Jacobowitz
2009-11-23 7:31 ` André Pönitz
2009-11-23 16:57 ` Keith Seitz
2009-11-23 17:20 ` Tom Tromey
2009-11-24 7:22 ` André Pönitz
2009-11-24 22:54 ` Tom Tromey
2009-11-25 9:16 ` André Pönitz
2009-11-25 18:14 ` Tom Tromey
2009-11-23 17:15 ` Tom Tromey
2009-11-24 22:11 ` Joel Brobecker
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=4B2692EE.5090807@redhat.com \
--to=keiths@redhat.com \
--cc=gdb-patches@sourceware.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