From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21264 invoked by alias); 19 Jul 2003 11:29:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21256 invoked from network); 19 Jul 2003 11:29:37 -0000 Received: from unknown (HELO ns2.dialtelecom.sk) (81.0.192.3) by sources.redhat.com with SMTP; 19 Jul 2003 11:29:37 -0000 Received: (qmail 13684 invoked from network); 19 Jul 2003 11:29:19 -0000 Received: from unknown (HELO pcw2k69.energoinfo.sk) (81.0.194.199) by ns2.dialtelecom.sk with SMTP; 19 Jul 2003 11:29:19 -0000 Received: from main by pcw2k69.energoinfo.sk with local (MasqMail 0.1.16) id 19dptp-85w-00 for gdb@sources.redhat.com; Sat, 19 Jul 2003 13:29:13 +0200 Date: Sat, 19 Jul 2003 11:29:00 -0000 Subject: Re: Terminally slow (75 seconds) on some steps To: Andrew Cagney cc: gdb@sources.redhat.com Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE References: <1057999221.6815.ezmlm@sources.redhat.com> <3F16D022.30209@redhat.com> <3F186D0B.5020902@redhat.com> In-Reply-To: <3F186D0B.5020902@redhat.com> From: Robert Vazan X-Delivery-Agent: TMDA/0.51 (Python 2.1.3 on Linux/i686) X-SW-Source: 2003-07/txt/msg00265.txt.bz2 On Fri, 18 Jul 2003 17:56:27 -0400 Andrew Cagney wrote: > 11 seconds per step? Still painfully slow :-( 11 seconds for application startup. That's gdb's cpu time. Application has 0 seconds of run time. Later some steps take 2 seconds, but some steps are interactive. The unusual thing is that my application freezes for those 2 seconds and then does the rest very quickly. That's without any breakpoints, just running it in debugger. > What exactly is the system your using? Can you capture > strace/ktrace/truss output for GDB doing a stepi? I have no clue what are above three tools, but stepi is interactive. At least I didn't bother to find the point where those 2 seconds are spent. > By `locks' you mean? System native mutexes, I guess.