From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16397 invoked by alias); 24 Feb 2016 20:37:28 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 16378 invoked by uid 89); 24 Feb 2016 20:37:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*u:1.1.3, H*UA:1.1.3, H*UA:Webmail X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 24 Feb 2016 20:37:27 +0000 Received: by simark.ca (Postfix, from userid 112) id 64B291E897; Wed, 24 Feb 2016 15:37:25 -0500 (EST) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 460EB1E6A2; Wed, 24 Feb 2016 15:37:24 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 24 Feb 2016 20:37:00 -0000 From: Simon Marchi To: Jan Kratochvil Cc: Tom Tromey , Pedro Alves , gdb@sourceware.org Subject: Re: Multi-threaded dwarf parsing In-Reply-To: <20160224202519.GA10251@host1.jankratochvil.net> References: <2c38d5c574de28faa9fc94fe4ed17d45@simark.ca> <56CD8EC0.3010304@redhat.com> <87lh6a6s8s.fsf@tromey.com> <20160224202519.GA10251@host1.jankratochvil.net> Message-ID: <345f3571aa56d4e9b6f6cbf4fa552f5f@simark.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.1.3 X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00026.txt.bz2 On 2016-02-24 15:25, Jan Kratochvil wrote: > On Wed, 24 Feb 2016 17:43:03 +0100, Simon Marchi wrote: >> instead of blocking on the psymtabs creation at startup > [...] >> then the main code will have to block until the corresponding task is >> complete (dwarf2_require_psymtabs). > > If really your concern are psymtabs then use Tom's .gdb_index: > gdb/contrib/gdb-add-index.sh > > With .gdb_index GDB still has startup performance problems during full > CU > expansions, that is struct symtab and struct symbol. That happens with > C++ > inferiors which have very interlinked CUs and thus expanding one CU > means for > GDB expanding 100+ CUs due to the inter-type dependencies which cannot > be left > opaque in such cases. And as each C++ CU is usually very large... What can cause CUs to be interlinked with each other?