From: Doug Evans <dje@google.com>
To: psmith@gnu.org
Cc: Tom Tromey <tromey@redhat.com>, Pedro Alves <palves@redhat.com>,
gdb <gdb@sourceware.org>
Subject: Re: [GDB 7.6/GCC 4.8.0] Slowdown in GDB macro processing for cores?
Date: Tue, 28 May 2013 17:11:00 -0000 [thread overview]
Message-ID: <CADPb22TbD-N6Rcw33NpNc2m-rdzWU19Hg8rLG6Thy6JPGU7B1Q@mail.gmail.com> (raw)
In-Reply-To: <1369284101.7209.197.camel@homebase>
On Wed, May 22, 2013 at 9:41 PM, Paul Smith <psmith@gnu.org> wrote:
> On Wed, 2013-05-22 at 19:44 -0700, Doug Evans wrote:
>> On Wed, May 22, 2013 at 4:14 PM, Paul Smith <psmith@gnu.org> wrote:
>> > On Wed, 2013-05-22 at 14:12 -0600, Tom Tromey wrote:
>> > And the top 10 users in the slow instance:
>> >
>> > Each sample counts as 0.01 seconds.
>> > % cumulative self self total
>> > time seconds seconds calls ms/call ms/call name
>> > 23.99 14.26 14.26 69374700 0.00 0.00 lookup_partial_symbol
>> > 23.77 28.39 14.13 784950557 0.00 0.00 strcmp_iw
>> > 11.74 35.37 6.98 763482775 0.00 0.00 symbol_get_demangled_name
>> > 7.23 39.67 4.30 819480663 0.00 0.00 symbol_natural_name
>> > 7.22 43.96 4.29 373483 0.01 0.01 lookup_symbol_aux_psymtabs
>> > 5.60 47.29 3.33 777569558 0.00 0.00 symbol_matches_domain
>> > 4.98 50.25 2.96 819477261 0.00 0.00 symbol_search_name
>> > 2.46 51.71 1.46 34366788 0.00 0.00 strcmp_iw_ordered
>> > 1.51 52.61 0.90 4 225.00 225.00 fprintf_symbol_filtered
>> > 1.46 53.48 0.87 15316453 0.00 0.00 xstrdup
>>
>> Looks rather familiar. :-)
>
> Hi Doug; I'm not sure what that means; is there already a bug filed
> about this? Is it a known issue?
>
> I tested with the latest code on master in the Git repo earlier today
> and saw the same slow behavior, so it's not been fixed since 7.6 was
> released.
Hi.
That was more an off-the-cuff comment as I've done a ton of profiling
and reading of gdb's symbol table code (one can only do it in stages -
it can get quite depressing).
And I can't offhand explain why you *only* see the slowdown with a
core file and not with a live executable.
I wasn't aware of the problems with the 12/11/16 patch you found.
I've submitted a minor improvement - IMO the real fix will involve a
lot more effort - gdb's symbol handling is obtuse enough that it's
easy to introduce performance regressions or even overlook basic
performance problems.
next prev parent reply other threads:[~2013-05-28 17:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 19:42 Paul Smith
2013-05-17 10:15 ` Pedro Alves
2013-05-22 18:50 ` Paul Smith
2013-05-22 19:20 ` Paul Smith
2013-05-22 20:12 ` Tom Tromey
2013-05-22 20:52 ` Paul Smith
2013-05-22 21:02 ` Paul Smith
2013-05-22 23:14 ` Paul Smith
2013-05-23 2:44 ` Doug Evans
2013-05-23 4:41 ` Paul Smith
2013-05-28 17:11 ` Doug Evans [this message]
2013-05-28 17:33 ` Paul Smith
2013-05-28 17:40 ` Doug Evans
2013-05-28 17:53 ` Paul Smith
2013-05-28 18:03 ` Doug Evans
2013-05-28 15:25 ` Paul Smith
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=CADPb22TbD-N6Rcw33NpNc2m-rdzWU19Hg8rLG6Thy6JPGU7B1Q@mail.gmail.com \
--to=dje@google.com \
--cc=gdb@sourceware.org \
--cc=palves@redhat.com \
--cc=psmith@gnu.org \
--cc=tromey@redhat.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