From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Daniel Berlin <dan@cgsoftware.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: PATCH: fail to improve psymtab memory consumption
Date: Sat, 21 Jul 2001 08:50:00 -0000 [thread overview]
Message-ID: <nplmlis2ju.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <87d76uerh8.fsf@cgsoftware.com>
Daniel Berlin <dan@cgsoftware.com> writes:
> >> I actually use mmap when possible, but that's for speed, rather than
> >> memory savings.
> >
> > Is it really faster?
> Yes, because it saves buffer copying (I think, it's 2am, which is
> about the time i usually say something stupid, so feel free to smack
> me around if i'm wrong)
> (You don't have to dandy about copying buffers into the right
> place. With an mmap'd area, it's already *in* the right place.)
Right --- your process shares pages with the kernel's buffer cache.
You don't have any numbers handy, do you?
> >> It doesn't buy us anything if we still mmap the entire section, and
> >> then touch every part. :)
> >
> > Which we do when in building the partial symbol table.
> Right.
>
> However, since we lazily read in full symbols, we don't have this
> behavior unless you force readin of all the symbols. You can do this
> with maint check symtabs, or using the pathological unchecked for case
> of find_pc_sect_symtab with a pc of 0. We should immediately return
> NULL in that case, since nothing contains the symbol table for pc 0,
> but instead, we convert every psymtab to symtab looking for the symtab
> for a plainly invalid memory address. We of course, never find it, and
> return NULL anyway, but not before wasting a ton of time and memory.
> Whoops.
Heh. That's what I thought, too. _start is at zero on some embedded
systems. :(
2001-05-05 Jim Blandy <jimb@redhat.com>
* breakpoint.c (check_duplicates): Use the breakpoint's type, not
its address, to decide whether it's a watchpoint or not. Zero
is a valid code address.
(update_breakpoints_after_exec): Admonishing comments.
* breakpoint.h (struct breakpoint): Doc fixes.
next prev parent reply other threads:[~2001-07-21 8:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010720212013.7DA695E9D8@zwingli.cygnus.com>
2001-07-20 15:17 ` Daniel Berlin
2001-07-20 22:22 ` Jim Blandy
2001-07-20 23:17 ` Daniel Berlin
2001-07-21 8:50 ` Jim Blandy [this message]
2001-07-23 20:36 ` Andrew Cagney
2001-07-23 22:15 ` Daniel Berlin
2001-07-24 7:49 ` Andrew Cagney
2001-07-24 9:47 ` Daniel Berlin
2001-07-24 9:16 ` Kevin Buettner
2001-07-24 9:35 ` Christopher Faylor
2001-07-24 10:13 ` Frank Ch. Eigler
2001-07-24 10:57 ` Christopher Faylor
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=nplmlis2ju.fsf@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=dan@cgsoftware.com \
--cc=gdb-patches@sources.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