Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: Sergio Durigan Junior <sergiodj@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] On-demand loading of shlib's debuginfo
Date: Thu, 21 Jul 2011 20:10:00 -0000	[thread overview]
Message-ID: <20110721184311.GA10555@host1.jankratochvil.net> (raw)
In-Reply-To: <201107211936.04731.pedro@codesourcery.com>

On Thu, 21 Jul 2011 20:36:04 +0200, Pedro Alves wrote:
> Oh, well:-)  I thought the separation was good, as:
> 
>  - target sections are used for "set trust-readonly-sections on"
>    and similar fallbacks to reading memory from the exec, which
>    requires separate dso lazy load points (disassembly? printing
>    some address?).
> 
>  - its not clear to me the pc -> dso mapping from the link map is
>    faster than from the bfd in all scenarios.  E.g., on remote
>    targets, it may be faster to get at the bfd info on the host, than
>    to remote read memory from the target.

I agree the remote targets may give opposite performance benefits.

I think it would be good to have both parts at hand to play with pros and
cons.  So far this patch needs explicit enable anyway as it breaks most of the
non-backtrace commands.


>  - I was curious on how much lazing debug info alone was helping,
>    vs lazing the bfd reads.

I had some very brief benchmark:
	0m24.824s -> 0m12.885s (cold disk cache with warm cache for gdb)
	F15.x86_64, therefore with .gdb_index.

This is by a variant of this patch - that is still with mapping bfds for
target sections, on HDD (not SSD).  And sure everything with linux-nat.


Thanks,
Jan


      reply	other threads:[~2011-07-21 18:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19  5:34 Sergio Durigan Junior
2011-07-20 22:01 ` Jan Kratochvil
2011-07-21 11:13   ` Pedro Alves
2011-07-21 14:03     ` Jan Kratochvil
2011-07-21 15:19       ` Pedro Alves
2011-07-21 20:38         ` Tom Tromey
2011-07-21 18:43     ` Sergio Durigan Junior
2011-07-21 19:21       ` Pedro Alves
2011-07-21 20:10         ` Jan Kratochvil [this message]

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=20110721184311.GA10555@host1.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    --cc=sergiodj@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