From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62863 invoked by alias); 3 Oct 2016 11:16:34 -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 62847 invoked by uid 89); 3 Oct 2016 11:16:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=noel, Noel, grandin, speeding X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Oct 2016 11:16:33 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 245544ACA1; Mon, 3 Oct 2016 11:16:32 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-55.ams2.redhat.com [10.36.116.55]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u93BGTex021408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 3 Oct 2016 07:16:31 -0400 Date: Mon, 03 Oct 2016 11:16:00 -0000 From: Jan Kratochvil To: Noel Grandin Cc: gdb@sourceware.org Subject: Re: speeding up time to hit first breakpoint Message-ID: <20161003111628.GA21817@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.0 (2016-08-17) X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00003.txt.bz2 On Mon, 03 Oct 2016 12:04:27 +0200, Noel Grandin wrote: > I took a trace with 'perf record -g', which I'm enclosing. It looks like the > bulk of the time is spent in xrealloc. GDB unspecific but you can significantly improve the times by linking GDB with: -ltcmalloc Jan