pro64-support
[Top] [All Lists]

Re: The long loading time of .so of Pro64 under GDB

To: "Andi Kleen" <ak@xxxxxxx>
Subject: Re: The long loading time of .so of Pro64 under GDB
From: Daniel Berlin <dberlin@xxxxxxxxxx>
Date: 20 Sep 2000 09:31:14 -0400
Cc: "Wu Chengyong" <cwu@xxxxxxxxx>, <pro64-support@xxxxxxxxxxx>, "Zhang Zhaoqing" <zqzhang@xxxxxxxxx>, "Ju, Roy" <roy.ju@xxxxxxxxx>, "Liu Yang" <ly@xxxxxxxxx>, "Lian Ruiqi" <lrq@xxxxxxxxx>, "Gan Ge" <gange@xxxxxxxxx>, "Fu Chen" <cfu@xxxxxxxxx>, "Feng Xiaobing" <fxb@xxxxxxxxx>, "Dong Xiqian" <dxq@xxxxxxxxx>, "Gao Lin" <gl@xxxxxxxxx>
In-reply-to: "Andi Kleen"'s message of "Wed, 20 Sep 2000 11:37:48 +0200"
References: <00fe01c022c6$6310faa0$b628e29f@ACTMISC> <20000920113748.A4521@gruyere.muc.suse.de>
Sender: owner-pro64-support@xxxxxxxxxxx
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (GTK)
"Andi Kleen" <ak@xxxxxxx> writes:

> 
> Your machine is probably heavily swapping/trashing because gdb needs so much
> memory. You can check its memory use with running top during the load.
> gdb also deals very poorly with very big symbol tables (and worse with big 
> C++ programs which have very long symbol names too). An useful resource is 
> http://www.mozilla.org/unix/debugging-faq.html , it explains some techniques
> that may help.

Err, not anymore.
I've fixed the memory usage as of a few weeks ago, at least for DWARF2.
The patches haven't been commited yet (I'll do it in about a week),
but they are on gdb-patches C++ symbol searches also used to be
linear, and are now binary searches (It was a mangling issue).

You want the most recent dwarf2 patch i submitted, and the C++ patch
from a few weeks ago.

This should bring your load time down to something much more
reasonable, as well as your memory usage.
I also fixed name completion so quoting is not necessary anymore.

It's cute when people don't submit bug reports on this stuff, so that
I can't make a case to anyone to schedule me to fix it.

I've also only been working on fixing C++ in GDB since february, and
it was amazingly broken, so give me time.

The mozilla guys already love me.

--Dan
C++ support maintainer - GDB.


<Prev in Thread] Current Thread [Next in Thread>