[SERVER-72613] Speed up taking core dumps with the hang analyzer Created: 07/Jan/23 Updated: 29/Oct/23 Resolved: 09/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.15, 6.0.4, 6.3.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Max Hirschhorn | Assignee: | Max Hirschhorn |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | tig-hanganalyzer | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v6.2, v6.0, v5.0
|
||||||||||||||||||||
| Sprint: | Sharding NYC 2023-01-09, Sharding NYC 2023-01-23 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The hang analyzer uses the gcore command (aka generate-core-file) within a GDB session to generate a core dump. By default, GDB will load the debug symbols for the process when the attach command is run. The gcore script uses the --readnever option when invoking gdb to skip the expense of loading debug symbols before taking the core dump. This cost is amortized in the hang analyzer because it'll use a single GDB session for all processes of the same type (i.e. a single gdb process attaches to all mongod processes). However we can use --readnever in the hang analyzer when it does the first round of attach commands to only take core dumps and avoid the cost altogether.
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8a6a85134d78531c6adb72a888844f7cfa3a5c56 |
| Comments |
| Comment by Githook User [ 09/Jan/23 ] |
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: (cherry picked from commit afd5fda2f81419f45f321d425bbcf9127c738ac8) |
| Comment by Githook User [ 09/Jan/23 ] |
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: (cherry picked from commit afd5fda2f81419f45f321d425bbcf9127c738ac8) |
| Comment by Githook User [ 09/Jan/23 ] |
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: |