From: Andrew Cagney <ac131313@redhat.com>
To: Robert Vazan <robertvazan@privateweb.sk>
Cc: gdb@sources.redhat.com
Subject: Re: Terminally slow (75 seconds) on some steps
Date: Tue, 05 Aug 2003 05:20:00 -0000 [thread overview]
Message-ID: <3F2F3E9A.6050403@redhat.com> (raw)
In-Reply-To: <Mahogany-0.65.0-1729-20030721-190229.00@pcw2k69.energoinfo.sk>
> On Mon, 21 Jul 2003 10:21:08 -0400 Andrew Cagney <ac131313@redhat.com> wrote:
>
>
>> So 11 seconds after you typed `run'.
>> (The word startup can either be appled to that time after "run", or the
>> time for gdb to reach the first "(gdb)" prompt :-().
>
>
> Sorry, 11 seconds after "run" command. Gdb startup takes about one
> second.
good (but the time is bad).
>> Lots of shared libraries?
Ok, during library load, GDB has to constantly start/stop the target -
and that slows things down. Would you be able to oprofile your entire
system so its possible to see exactly where that 11 seconds goes?
A simple gprof isn't sufficient: it is the combination of GDB <->
libthread-db? <-> kernel <-> program, that slows things down.
The speed improvement in moving from 5.2 -> 5.2 came from identifying a
situtation where GDB was performing millions of system calls. There
will likely be other cases.
I suspect, because of what you'r using, GDB is loading up libthread-db
and that may also add to the load.
Andrew
next prev parent reply other threads:[~2003-08-05 5:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1057999221.6815.ezmlm@sources.redhat.com>
2003-07-12 9:03 ` Robert Vazan
2003-07-17 16:34 ` Andrew Cagney
2003-07-18 13:06 ` Robert Vazan
2003-07-18 21:56 ` Andrew Cagney
2003-07-19 11:29 ` Robert Vazan
2003-07-21 14:21 ` Andrew Cagney
2003-07-21 17:38 ` Robert Vazan
2003-08-05 5:20 ` Andrew Cagney [this message]
2003-08-05 18:04 ` Robert Vazan
2003-08-05 18:35 ` Andrew Cagney
2003-08-14 12:05 ` Robert Vazan
2003-08-15 22:59 ` Andrew Cagney
2003-08-16 15:11 ` Daniel Jacobowitz
2003-08-16 16:36 ` Andrew Cagney
2003-08-16 16:41 ` Daniel Jacobowitz
2003-08-17 3:29 ` Daniel Berlin
2003-08-18 15:05 ` Andrew Cagney
2003-08-18 16:15 ` Daniel Berlin
2003-08-16 16:38 ` Robert Vazan
2003-08-20 16:12 ` Robert Vazan
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=3F2F3E9A.6050403@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=robertvazan@privateweb.sk \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).