Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* performance of multithreading gets gradually worse under gdb
@ 2011-02-02 20:16 Markus Alber
  2011-02-02 20:28 ` Michael Snyder
  0 siblings, 1 reply; 18+ messages in thread
From: Markus Alber @ 2011-02-02 20:16 UTC (permalink / raw)
  To: gdb

 Hello,

 I have experienced the following problem:

 I'm debugging a number-crunching application which spawns a lot (36) 
 little
 worker threads per iteration. The system does typically OoM 200 
 iterations.
 Although each of them should take about the same amount of time, the 
 performance
 gets worse with every iteration and becomes excruciatingly slow.

 A system monitor reveals that gdb allocates more memory with every 
 iteration,
 i.e. with every 36 threads started and finished. The CPU load of GDB 
 goes up, too.
 The CPU usage of the application goes down. Compared to the solo 
 performance, it
 gets slower by a factor 20 and more, if run long enough.

 The application behaves perfectly when run by itself. The 
 multi-threaded part is not
 debugging compiled when this behaviour occurs.

 The distribution is SuSE 11.3 / gdb 7.1.

 Is there anything I can change about this behaviour, any options of gdb 
 that need to
 be set in these circumstances?

 Thank you very much for your help in advance,

 Markus





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

end of thread, other threads:[~2011-02-07 14:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 20:16 performance of multithreading gets gradually worse under gdb Markus Alber
2011-02-02 20:28 ` Michael Snyder
     [not found]   ` <76bccf1875854ebc69b6a892fb84a976@hyperion-imrt.org>
2011-02-02 21:43     ` Michael Snyder
2011-02-03  7:03       ` Markus Alber
2011-02-03 20:26         ` Michael Snyder
2011-02-03 20:52           ` Markus Alber
2011-02-03 20:57         ` Tom Tromey
2011-02-03 21:00           ` Tom Tromey
2011-02-03 21:40           ` Ulrich Weigand
2011-02-03 22:04             ` Tom Tromey
2011-02-04 13:49               ` Ulrich Weigand
2011-02-04 14:55             ` Pedro Alves
2011-02-04 15:13               ` Ulrich Weigand
2011-02-04 15:26               ` Tom Tromey
2011-02-04 15:56                 ` Pedro Alves
     [not found]                 ` <201102041555.52179.pedro__21913.9744448059$1296834976$gmane$org@codesourcery.com>
2011-02-04 17:02                   ` Tom Tromey
2011-02-05  9:34                     ` Markus Alber
2011-02-07 14:05                     ` Markus Alber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox