GDB 10.1 release: branching early July?
Joel Brobecker
brobecker@adacore.com
Tue Jun 16 18:13:13 GMT 2020
> I've now found where those are coming from: the thread name "gdb worker"
> visible in ps -L provided the necessary clue. They are due to worker
> threads now being enabled by default. On my desktop with 4 cores and
> hyperthreading, that's relatively harmless. However, when I run gdb on
> an 8-socket server with 160 cores total, the messages about thread
> creation when debugging gdb are killing you ;-) I traced this to
> maint.c (update_thread_pool_size) where the count defaults to
> std::thread::hardware_concurrency (). Maybe a bit over-eager...
Oh my....
I remember that this version of GDB makes parallel minimal reading
the default. I think you can throttle down the number of threads
using:
maint set worker-threads N
--
Joel
More information about the Gdb-patches
mailing list