From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24462 invoked by alias); 21 Jul 2003 14:21:12 -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 24427 invoked from network); 21 Jul 2003 14:21:10 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 21 Jul 2003 14:21:10 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D6FDA2B7F; Mon, 21 Jul 2003 10:21:08 -0400 (EDT) Message-ID: <3F1BF6D4.6090801@redhat.com> Date: Mon, 21 Jul 2003 14:21:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Vazan Cc: gdb@sources.redhat.com Subject: Re: Terminally slow (75 seconds) on some steps References: <1057999221.6815.ezmlm@sources.redhat.com> <3F16D022.30209@redhat.com> <3F186D0B.5020902@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00267.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. So 11 seconds after you typed `run'. (The word startup can either be appled to that time after "run", or the time for gdb to reach the first "(gdb)" prompt :-(). Lots of shared libraries? Is it reproducable? >> 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. Which operating system? That determines the tool you'll be using. "step" is implemented using multiple "stepi". A slowdown can either be two many "stepi"s or a slow "stepi" implementation. >> By `locks' you mean? > > > System native mutexes, I guess. Which operating system? Andrew