-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset stats at detach time when linked statically #2964
Comments
To clarify, this is for use of DR as a static library: for the shared library a detach would unload the library and not need to explicitly reset anything. #2157 is the master issue for static-DR re-attach. |
For re-attach, DR's statistics were accumulating each time. We now zero them out at exit time, but only when detaching to avoid an unnecessary performance hit from zeroing out this large structure. Fixes #2964
Measuring cost on 100-iter start;stop_and_cleanup loop:
Release:
Maybe there is a measurable slowdown. But there's a bunch of noise (didn't exactly put a lot of effort into this measurement: didn't disable freq scaling; there's background stuff on the machine; etc.). I can live with it. |
For re-attach, DR's statistics were accumulating each time. We now zero them out at exit time, but only when detaching to avoid an unnecessary performance hit from zeroing out this large structure. Fixes #2964
Adds diagnostics and fixes related to running out of memory with drmemtrace now using drbbdup: Augments the beyond-vmm diagnostics to dump the rstats and print the allocation type. Makes a beyond-vmm event non-fatal for -satisfy_w_xor_x for vmheap. Resets a global drbbdup variable for reattach. Removes a conditional for static_prepop that is not needed now that stats are reset on reattach (#2964). Issue: #2964
Adds diagnostics and fixes related to running out of memory with drmemtrace now using drbbdup: Augments the beyond-vmm diagnostics to dump the rstats and print the allocation type. Makes a beyond-vmm event non-fatal for -satisfy_w_xor_x for vmheap. Resets a global drbbdup variable for reattach. Removes a conditional for static_prepop that is not needed now that stats are reset on reattach (#2964). Issue: #2964
Otherwise, we continue from where we left off at re-attach time.
The text was updated successfully, but these errors were encountered: