Skip to content

Instantly share code, notes, and snippets.

@florianl
Created November 3, 2025 10:35
Show Gist options
  • Select an option

  • Save florianl/398617b0d3a651b607bca575844829d5 to your computer and use it in GitHub Desktop.

Select an option

Save florianl/398617b0d3a651b607bca575844829d5 to your computer and use it in GitHub Desktop.
$ git s
6dbd97595a390243ec3d79e827527c740ee74c87
## main...origin/main
$ time sudo ./mm-impact /opt/Elastic/Agent/data/elastic-agent-9.2.0-e7bf31/components/agentbeat
Initial numbers
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 329.11 KB
Heap In Use: 880.00 KB
System Memory (Sys): 6.65 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 1599308 kB
RES (VmRSS): 7432 kB
SHR (Shared): 0 kB
After opening /opt/Elastic/Agent/data/elastic-agent-9.2.0-e7bf31/components/agentbeat
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 343.92 KB
Heap In Use: 888.00 KB
System Memory (Sys): 6.71 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 1974584 kB
RES (VmRSS): 7876 kB
SHR (Shared): 0 kB
After extracting gopclntab
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 362.25 KB
Heap In Use: 896.00 KB
System Memory (Sys): 6.96 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 1974840 kB
RES (VmRSS): 7824 kB
SHR (Shared): 0 kB
After reading a symbol
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 374.29 KB
Heap In Use: 888.00 KB
System Memory (Sys): 6.96 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 1974840 kB
RES (VmRSS): 8140 kB
SHR (Shared): 0 kB
real 0m0.044s
user 0m0.005s
sys 0m0.009s
$ git s
6df0f432b63ea9feca3483d20d637789ca0038ea
## tt-remove-symmap...fabled/tt-remove-symmap
$ time sudo ./mm-impact /opt/Elastic/Agent/data/elastic-agent-9.2.0-e7bf31/components/agentbeat
Initial numbers
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 334.16 KB
Heap In Use: 816.00 KB
System Memory (Sys): 6.65 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 1673040 kB
RES (VmRSS): 7208 kB
SHR (Shared): 0 kB
After opening /opt/Elastic/Agent/data/elastic-agent-9.2.0-e7bf31/components/agentbeat
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 354.69 KB
Heap In Use: 824.00 KB
System Memory (Sys): 6.71 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 2122048 kB
RES (VmRSS): 7592 kB
SHR (Shared): 0 kB
After extracting gopclntab
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 373.03 KB
Heap In Use: 840.00 KB
System Memory (Sys): 6.96 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 2122304 kB
RES (VmRSS): 7476 kB
SHR (Shared): 0 kB
After reading a symbol
--- Go Runtime Memory Stats (Managed by GC) ---
Total Allocated: 385.05 KB
Heap In Use: 832.00 KB
System Memory (Sys): 6.96 MB
--- OS Process Memory Stats (Linux /proc) ---
VIRT (VmSize): 2122304 kB
RES (VmRSS): 7988 kB
SHR (Shared): 0 kB
real 0m0.046s
user 0m0.008s
sys 0m0.006s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment