Re: Can you run two instances of valgrind on separate nodes in a multi-core NUMA environment?

Julian Seward <[email protected]> Wed, 17 Jul 2024 20:47:50 +0200
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
I don't follow the details exactly, but FWIW .. valgrind running an
application is "just another normal process".  It has no understanding
of or special-casing relating to NUMA, or particular cores/nodes in a
multiprocessor machine.

> My conjecture is that the valgrind core is one instance of the
> gdbserver, which then spawns the tools, and hence one should not force

Also, there is no gdbserver involved unless you start it with specific
flags to invoke GDB support.  But that is not the default.

It might be that if you are doing cross-process synchronisation via
accesses to shared memory, that depend on specific details of the machine's
memory coherence model, that you could wind up with problems.  Something
like that I could believe.

J