public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/14002] New: big cpu/mem hog on large c++ applications.
@ 2012-04-20 14:40 pluto at agmk dot net
  2012-04-20 14:42 ` [Bug symtab/14002] " pluto at agmk dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2012-04-20 14:40 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

             Bug #: 14002
           Summary: big cpu/mem hog on large c++ applications.
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: critical
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: pluto@agmk.net
    Classification: Unclassified


hi,

i have a large c++ application (2.9GB of shared objects, 600MB of static
archives used in shared objects). on isolated part of sources a single
'next' call takes ~3 minutes and increases memory usage from ~500M to ~3G
while previous gdb-7.3.1 needs only 2..3 seconds and increases memory usage
from ~400M to ~550MB.

7bd518fd9738c50a5197af2b184acd97e4d4df40 is the first bad commit

commit 7bd518fd9738c50a5197af2b184acd97e4d4df40
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Jul 11 17:17:25 2011 +0000

        * dwarf2read.c (handle_DW_AT_stmt_list): New function.
        (read_file_scope, read_type_unit_scope): Use it.


link to gdb mailinglist discussion:
http://sourceware.org/ml/gdb/2012-03/msg00096.html

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug symtab/14002] big cpu/mem hog on large c++ applications.
  2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
@ 2012-04-20 14:42 ` pluto at agmk dot net
  2012-04-24 20:00 ` pluto at agmk dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2012-04-20 14:42 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

Pawel Sikora <pluto at agmk dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-gnu-linux
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com, tromey at redhat
                   |                            |dot com
               Host|                            |x86_64-gnu-linux
              Build|                            |x86_64-gnu-linux

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug symtab/14002] big cpu/mem hog on large c++ applications.
  2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
  2012-04-20 14:42 ` [Bug symtab/14002] " pluto at agmk dot net
@ 2012-04-24 20:00 ` pluto at agmk dot net
  2012-04-28 16:51 ` pluto at agmk dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2012-04-24 20:00 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

--- Comment #1 from Pawel Sikora <pluto at agmk dot net> 2012-04-24 19:59:47 UTC ---
current git/master (2e523a5f18498a902d55ae293cb3870d060f6a6b) is also affected.

here's quick info about project:

/* buildenv: boost + other libs */
$ find buildenv -type f -name '*.h' -o -name '*.c' -o -name '*.?pp' |wc -l
9728

/* core project sources */
$ find sources -type f -name '*.h' -o -name '*.c' -o -name '*.?pp' |wc -l
7488

so, there's ~17k sources which may be recorded in dwarf-4 (-g2) debuginfo.
for the tested slow-step-place, callgrind shows ~921k start_subfile() calls
and ~520M filename_cmp() calls (from start_subfile). so, i think that linear
scanning of subfile list and multiple deduce_language_from_filename
have non-trivial performance impact.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug symtab/14002] big cpu/mem hog on large c++ applications.
  2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
  2012-04-20 14:42 ` [Bug symtab/14002] " pluto at agmk dot net
  2012-04-24 20:00 ` pluto at agmk dot net
@ 2012-04-28 16:51 ` pluto at agmk dot net
  2012-05-21  1:21 ` dje at google dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2012-04-28 16:51 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2012-04-28 16:51:28 UTC ---
i've rebuilt the whole project with -fno-debug-type-sections (gcc-4.7)
and 7.4/master works as fast as 7.3.1 now. so, it looks like a serious
performance problem with .debug_types handling.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug symtab/14002] big cpu/mem hog on large c++ applications.
  2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2012-04-28 16:51 ` pluto at agmk dot net
@ 2012-05-21  1:21 ` dje at google dot com
  2012-07-08 22:59 ` loic.yhuel at gmail dot com
  2012-11-13 22:40 ` dje at google dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dje at google dot com @ 2012-05-21  1:21 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com
         AssignedTo|unassigned at sourceware    |dje at google dot com
                   |dot org                     |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug symtab/14002] big cpu/mem hog on large c++ applications.
  2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
                   ` (3 preceding siblings ...)
  2012-05-21  1:21 ` dje at google dot com
@ 2012-07-08 22:59 ` loic.yhuel at gmail dot com
  2012-11-13 22:40 ` dje at google dot com
  5 siblings, 0 replies; 7+ messages in thread
From: loic.yhuel at gmail dot com @ 2012-07-08 22:59 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

Loïc Yhuel <loic.yhuel at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |loic.yhuel at gmail dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug symtab/14002] big cpu/mem hog on large c++ applications.
  2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
                   ` (4 preceding siblings ...)
  2012-07-08 22:59 ` loic.yhuel at gmail dot com
@ 2012-11-13 22:40 ` dje at google dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dje at google dot com @ 2012-11-13 22:40 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14002

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from dje at google dot com 2012-11-13 22:40:50 UTC ---
This should be fixed now.
Please reopen if not.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-13 22:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 14:40 [Bug symtab/14002] New: big cpu/mem hog on large c++ applications pluto at agmk dot net
2012-04-20 14:42 ` [Bug symtab/14002] " pluto at agmk dot net
2012-04-24 20:00 ` pluto at agmk dot net
2012-04-28 16:51 ` pluto at agmk dot net
2012-05-21  1:21 ` dje at google dot com
2012-07-08 22:59 ` loic.yhuel at gmail dot com
2012-11-13 22:40 ` dje at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).