From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2879 invoked by alias); 20 Apr 2009 22:40:28 -0000 Received: (qmail 2868 invoked by uid 22791); 20 Apr 2009 22:40:27 -0000 X-SWARE-Spam-Status: No, hits=1.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web52001.mail.re2.yahoo.com (HELO web52001.mail.re2.yahoo.com) (206.190.49.248) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 20 Apr 2009 22:40:19 +0000 Received: (qmail 56060 invoked by uid 60001); 20 Apr 2009 22:40:17 -0000 Message-ID: <592922.54823.qm@web52001.mail.re2.yahoo.com> Received: from [66.17.65.83] by web52001.mail.re2.yahoo.com via HTTP; Mon, 20 Apr 2009 15:40:17 PDT Date: Mon, 20 Apr 2009 23:40:00 -0000 From: Nick Savoiu Subject: GDB using a lot of CPU time and writing a lot to disk on startup To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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 X-SW-Source: 2009-04/txt/msg00161.txt.bz2 I'm using GDB 6.8 (x86_64-unknown-linux-gnu) from within KDevelop 3.5.4. I've noticed that for some projects GDB uses 1 minute of CPU time and seems to do a lot of disk writing during this time. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3439 nsavoiu 16 0 600m 589m 2536 S 0 15.2 1:13.64 gdb I can't really figure out why this is happening and could use some help tracking it down. I used pstack every second until the debugging actually starts and here are all the unique #0 locations in the pstack output. #0 0x0000000000446d16 in msymbol_hash_iw () #0 0x0000000000446f97 in lookup_minimal_symbol () #0 0x00000000004bfda0 in symbol_natural_name () #0 0x00000000004bffe4 in find_pc_sect_psymtab () #0 0x00000000004c0118 in find_pc_sect_psymbol () #0 0x00000000004fd755 in bcache_data () #0 0x000000000050d11a in dwarf2_lookup_abbrev () #0 0x0000000000610c67 in d_print_comp () #0 0x00000035aae28250 in __ctype_b_loc () from /lib64/tls/libc.so.6 #0 0x00000035aae68ced in _int_free () from /lib64/tls/libc.so.6 #0 0x00000035aaeb94a5 in _xstat () from /lib64/tls/libc.so.6 #0 0x00000035aaeb9545 in _lxstat () from /lib64/tls/libc.so.6 #0 0x00000035aaeb9832 in __open_nocancel () from /lib64/tls/libc.so.6 #0 0x00000035aaebe18f in poll () from /lib64/tls/libc.so.6 Of 461 calls 418 are: #0 0x00000035aaeb94a5 in _xstat () from /lib64/tls/libc.so.6 Thanks, Nick