Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Memchecker cause performance degradation to my application?

0
10 Posted

Does Memchecker cause performance degradation to my application?

0
10

The configure option –enable-memchecker (together with –enable-debug) does cause performance degradation, even if not running under Valgrind. The following explains the mechanism and may help in making the decision whether to provide a cluster-wide installation with –enable-memchecker. There are two cases: • If run without Valgrind, the Valgrind ClientRequests (assembler instructions added to the normal execution path for checking) do not affect overall MPI performance. Valgrind ClientRequests are explained in detail in Valgrind’s documentation. In the case of x86-64 ClientRequests boil down to the following four rotate-left (ROL) and one xchange (XCHG) assembler instructions (from valgrind.h): #define __SPECIAL_INSTRUCTION_PREAMBLE \ “rolq $3, %%rdi; rolq $13, %%rdi\n\t” \ “rolq $61, %%rdi; rolq $51, %%rdi\n\t” and __asm__ volatile(__SPECIAL_INSTRUCTION_PREAMBLE \ /* %RDX = client_request ( %RAX ) */ \ “xchgq %%rbx,%%rbx” \ : “=d” (_zzq_result) \ : “a” (& _zzq_args[0]), “0” (_zzq_d

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123