Skip to content

Instantly share code, notes, and snippets.

@timo
Created March 9, 2014 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/e7168c6ac9ef3e85fb5d to your computer and use it in GitHub Desktop.
Save timo/e7168c6ac9ef3e85fb5d to your computer and use it in GitHub Desktop.
moaar heap analysis a few seconds after stage parse finished and the nursery has just been collected.
(gdb) moar-heap
starting to analyze the nursery:
__________________________________________________
--------------------------------------------------
size bucket: 8
(unallocated)
size bucket: 16
(unallocated)
size bucket: 24
setting up stuff
7st pg
████████
████████
████████ ▄ ████
████████████████
████████████████
████████████████
████████████████
████████████████
(and 6 completely filled pages) (and 2 empty pages)
REPRs:
Uninstantiable [================================================== 115
P6opaque [=========================================== 100
VMArray [ 2
strings:
(empty histogram)
size bucket: 32
setting up stuff
5191st pg 5195st pg 5197st pg 5198st pg 5203st pg 5204st pg
████████████████ ████████████████ ████████████████ █████▄▄ ████████ ██████████████▄█ ██
████████████████ ████████████████ ████████████████ ████████████████ ████████████████ █
████████████████ ████████████████ ████████████████ ████████████████ ████████████████ ████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████ ████████
████ ████ ████████████████ ████████████████ ████████████████ ████████████████ ▀██
████ █ ████ ████████████████ ████████████████ ████████████████ ████████████████ ███▀
---Type <return> to continue, or q <return> to quit---
████████ ██ ████████████████ ██████████████ ▀ ███████▀████████ ████████████████ ██████
████████ █ ███████████████▄ ███████████████▄ ████████████████ ████████████████ ███████▄
5205st pg 5207st pg 5219st pg 5224st pg 5226st pg
▄███ ████████ ████
████ ████████ ▄████
████████ ████
████████ ████▄▄
▄▄ ████
████ ████
██ ██▄▄
████ ▀█▄
5227st pg 5234st pg 5239st pg 5243st pg
████████ ██████████████ ████████ ▄███ ▄
████████ ▀██████████████ ████████ ████
████████ ████▄███████████ ████████
████████ ████████████████ ████████
████ ████████████████ ████████████
████ ██████▀█████████ ████████████
██████ ████████████████ ████████▀█
█████ ████████████████ ████████
(and 5228 completely filled pages) (and 2 empty pages) (freelist with 5713 entries)
REPRs:
VMHash [================================================== 96386
P6str [========================== 51811
P6num [====== 12366
P6int [=== 6485
SCRef [ 3
MVMCFunction [ 2
strings:
(empty histogram)
size bucket: 40
setting up stuff
21st pg 23st pg 25st pg 28st pg 29st pg 33st pg
████████ ████████ ████████
████████ ████████ ████████
██▀ ███ ████████ ████████
██▄ ██ ████████ ████████ ▄
████████████████ ████████████████
██▄█ ████████████████ ████████████████
██████ ████████████████ ████████████████
████ ████████████████ ████████████████ █
35st pg
████ ▄▄
████████
---Type <return> to continue, or q <return> to quit---
████
████
███▄
████
(and 28 completely filled pages) (and 2 empty pages) (freelist with 3156 entries)
sizes of objects/stables:
40 [================================================== 710 28.400
REPRs:
P6opaque [================================================== 709
MVMOSHandle [ 2
strings:
(empty histogram)
size bucket: 48
setting up stuff
9st pg 13st pg 15st pg 17st pg 20st pg 22st pg
████████ ▄
████████ █ █▀▄▄
████████ ████████ ▄ ██▀███
████████ ████████ ██ █▀
████████████ ████ ▄▀ ██ █▀██████ ▄ ▀████
████████████ ▀▀ ███▄ ████ ████
████████▀ ▀█ ██████ ▄ ██████▄▄
████████ ▄ ████▀ █▄ ████████
24st pg 25st pg 26st pg 28st pg 44st pg
████████ ████████ ▄
████████ ████████ █
████████ ████████ ████ █
████████ ████████▄▄ ▀ ▀█
████ ████████████▀███
██▄█████ ██████████████▄█
▄█▀▀██ ████████ ████▄██████████▄
▀██ ████████ ████████████████
48st pg
██ ██
██ ███
█▄ █████
██ ████
████▀█▄▀
████
(and 36 completely filled pages) (and 2 empty pages) (freelist with 9392 entries)
REPRs:
P6opaque [================================================== 314
KnowHOWREPR [==== 26
KnowHOWAttributeREPR [= 9
Lexotic [ 2
strings:
(empty histogram)
size bucket: 56
setting up stuff
---Type <return> to continue, or q <return> to quit---
3325st pg
████████
████████
████████
████████
████████████
████████ ███
████████
████████
(and 3324 completely filled pages) (and 2 empty pages)
REPRs:
VMArray [================================================== 81812
MVMString [============= 22604
P6opaque [= 1953
NFA [ 31
strings:
0 [================================================== 22373
1 [ 231
size bucket: 64
setting up stuff
12st pg 13st pg 16st pg 81st pg 82st pg 83st pg
████████████▀███ ▄▄██████████████ ████████████████ ████████ ████████ ███▄████████████
████████████▄███ ████████████████ ████████████████ ████████ ████████ ████████████████
████████████████ ████████████████ ████████████████ ████████ ████ ████████ ████████████████
████████████████ ████████████████ ████████████████ ████████ ██████▄ ████████ ████████████████
████████████████ ████████████████ ████████████████ ████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████ ████████████████ ████████████████
████████████████ ████████████████ ██████████████ ▄ ██████ ████████████████ █████▄██████████
████████████████ ████████████████ ████████████████ ████████ ████████████████ ████████████████
88st pg
████████
████████
████████
████████
████████████
████████ ▀
████████
████████
(and 81 completely filled pages) (and 2 empty pages) (freelist with 200 entries)
REPRs:
P6opaque [================================================== 2792
strings:
(empty histogram)
size bucket: 72
setting up stuff
597st pg
████████
████████
████████
████████
---Type <return> to continue, or q <return> to quit---
████
████████
████████
████████
(and 596 completely filled pages) (and 2 empty pages)
REPRs:
P6opaque [================================================== 14574
MVMCode [=============== 4528
strings:
(empty histogram)
size bucket: 80
setting up stuff
9st pg
████████
████████
███████████ ████
████████████████
████████████████
████████████████
████████████████
████████████████
(and 8 completely filled pages) (and 2 empty pages)
REPRs:
P6opaque [================================================== 288
strings:
(empty histogram)
size bucket: 88
setting up stuff
10st pg 11st pg 18st pg 20st pg 21st pg 22st pg
████████████████ ████████████████ ███▄▄███████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ██████▀█████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ██████▄█████████ ████████████████ ████████▀▀██████ ██████▄▄████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ███████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ██████████████▄▄ ████████████████ ███▀████████████
██████████████▄█ ████████████████ █████████████ ██ ████████████████ ████████████████ ███▄████████████
38st pg 39st pg 45st pg 46st pg 53st pg
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
██████████████▄▄ ██ █████████████ █████████▄▄█████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ███████---Type <return> to continue, or q <return> to quit---
█████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ██████▄▄████████ ████████████████
████████████████ ██████████████▀▀ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████ ███████ ████████████████ ███████████████
54st pg 60st pg 63st pg 64st pg 110st pg
████████████████ ████████████████ ████████▄▄██████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████▀▀██
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ██████████ █████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
███████████ ████ █████████████ ██ ████████████████ ████████████████ ████████████████
111st pg 114st pg 115st pg 147st pg 149st pg
████████████████ ████████████▀███ █████ ███▄▄█████ ████████████████ ████████████████
████████████████ ████████████▄███ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ██████████████ █ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
██▄▄████████████ ████████████████ ████████████████ ████████████████ ██▄▄████████████
████████████████ ████████████████ ████████████████ ███████▀████████ ████████████████
████████████████ ████████████████ ████████▄▄█████ ███████▄████████ ████████████████
161st pg 162st pg 163st pg 164st pg 165st pg
█████ ██████████ ████████████████ ████████████████ ▄▄██████████████ ████████████████
██████████▄▄████ ████████████████ ████████████████ █████ ██████████ ██████████████��---Type <return> to continue, or q <return> to quit---
�█
██████████████▄▄ ████████████████ ████████████████ ████████▀▀██████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
██▀█████████████ ████████████████ ████████████████ ██████████████ █ ████████████████
██▄████ ████████ ████▀▀██████████ █████████████▀▀█ ████████████████ ████ ███████████
████████████████ ████████████████ ████████████████ ████████████████ █████████ ██████
████████████████ ██████ █████████ ████████████████ ████████████████ ████████████████
166st pg 167st pg 168st pg 169st pg 170st pg
████████████████ ██████████████▄▄ ███████████▄▄███ ████████████████ ████████████████
████████████████ ████████████████ ██████▀▀████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ██████████████▄▄ ████████████████
████▄▄██████████ █ ██████████████ █████████▀▀█████ ████████████████ ███████████████▀
████████████████ ████████████████ ████████████████ ████████████████ ███████████████▄
███ ████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████▀███ ████████████████ ████████████████ ████████████████ █ ████ █████████
████████████▄███ ████████████████ ████████████████ █████████████▀▀ ████████████████
172st pg 173st pg 174st pg 175st pg 176st pg
▀▀██████████████ ██████████████▀▀ ████████████████ ████████▄▄██████ ████████████████
████████████████ ████████████████ ██████▄▄████████ ████████████████ █ ██████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
██████████████ █ █████████▄▄█████ ███████▄▄███████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
█████████ ██████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ██████████████---Type <return> to continue, or q <return> to quit---
██
177st pg 178st pg 179st pg 180st pg 181st pg
▀▀██████████████ ██████▄▄████████ ████████████████ ████████████████ ████████████████
████ ███████████ ████████████████ ██▀▀████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ██████▀▀████████ ████████████████
████████████████ ████████████████ ████████████████ ██▀▀████████████ ██████████▀▀████
███████ ████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ███████ ████████
182st pg 183st pg 184st pg 185st pg 186st pg
████████████████ ████████████████ ████████████████ ██████▄▄████████ ███████████████▄
█ ██████████████ ████████████████ ██████████████ █ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
██▄▄████████▄▄██ ████████▀▀██████ ████████████████ ████████████████ ████ ███████████
████████████████ ████████████▀▀██ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
█ ██████████████ ████████████████ ████████████████ █████ ██████████ ████████████████
187st pg 188st pg 189st pg 190st pg 200st pg
▄███████████████ ████████████████ ████████████████ ████████████████ ████████████████
█████▀▀█████████ ████████████████ ████████████████ █████████▀▀█████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ █ ██████████████
████████████████ ▀███████████████ ████████████████ ████████████████ ████████████████
████████████████ ▄███████████████ ███████ ████████ ████████████████ ████████████████
---Type <return> to continue, or q <return> to quit---
████████████████ ████████████████ ████████████████ ████████████████ ██████████▄▄████
████████████████ ███▀████████████ ████████████████ ████████████████ ████████████████
████████████████ ███▄████████████ ███████████ ████ █ ██████████████ ████████████████
245st pg 293st pg 300st pg 1300st pg 1318st pg
████████████████ ████████████▀▀██ ████████████████ ████████████████ ████████
██████████ █████ ████████████████ ███████████ ████ ████████████████ ████████
████████████████ ████████████████ ████████████████ ████████████████ ▄██████
████████████████ ████████████████ ████████████████ ████████████████ ██████
████████████████ ████████████████ ████████████████ ████████████▄███
████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ██████████████ █ ████████████████
1319st pg 1321st pg 1326st pg 1328st pg 1329st pg
▄▄████████ ██████▀█████████ ████████████████ ████████ ▄███▀█ ████████ ▄ █████
████████████ ███████▄████████ ████████████████ ████████ ████ ████████████████
████████████████ ████████████████ ████████████████ ████████ ████████████████
████████████████ ████████████████ ████████████████ ████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████ ██ ▄ ████████████████
████████████████ ████████████████ ██████████▄█████ ████████ ▀ ████████████████
████████████████ ████████████████ ████████████████ ████████ ████████████████
1334st pg 1335st pg 1344st pg 1346st pg 1347st pg
████████████▀▀██ ▄███████████████ ████████████████ ████████████▀█ ▄███
████████████ ███ ██▄ ████████████ ████████████████ ████████████ ▀▀
████████████████ ████████████████ █████▀██████████ ████████████████
████████████████ ████████████████ ███████████ ▀▀██ ████████████████
████████████████ ███████▀████████ █████████████▀██ ████████████████
████████████████ █████▄██████████ ████████████▄▄██ ████████████████
████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████
1353st pg
---Type <return> to continue, or q <return> to quit---
(and 1286 completely filled pages) (and 2 empty pages) (freelist with 2232 entries)
REPRs:
P6opaque [================================================== 43000
strings:
(empty histogram)
size bucket: 96
setting up stuff
552st pg
████████
████████
████████
████████
████████████
████████████
██████████████
█████████████
(and 551 completely filled pages) (and 2 empty pages)
REPRs:
P6opaque [================================================== 17664
strings:
(empty histogram)
size bucket: 104
setting up stuff
1705st pg 1706st pg 1707st pg 1708st pg 1712st pg 1715st pg
████████ ████████ ████████████████ ██ █████████████ ████████ ▄ ██ ████ ███████████
████████ ██████▄█ ████████████████ ████████████████ ████████ ████ ████████████████
████████ ████ ▀ █▀██████ ██████████ █████ ████████████████ ████████ ████ ████████████████
████████ █████████▄█████▄ ████████████▄▄██ ████ ███████████ ████████ █████ ████████████████
████████████ █████████ ██████ ██████ █████████ ████████ ███▀███ ████████████████ ████████████████
████████████▄▄██ ████████████████ █████████ █████ ████████████████ ████████████████ ████████████████
████████████████ ████████████▀▀██ ██████▀▀████████ ████▄▄██ ██████ ████████████████ ████████████████
████████████████ ████████████████ ████████████████ ███████████████▀ ████████████████ ████████████████
1717st pg 1718st pg 1721st pg 1725st pg 1727st pg
████████████████ ████████████████ ███████████▀██▄█ █▀██████████████ ████████████████
████████████████ ████████████████ ████████████████ ████████████████ ██████████ ████
███▀████████████ ████████████████ ████████████████ ▀█████ ▀████████ ████████████████
▀███████████████ ████████████████ ████████████████ ████▀█▄███ ████ ████████████████
▄▄▄██▄██████ ████████████████ ████████████████ █▄██████████████ ████████████████
███▀████████ ████████████████ █████████��---Type <return> to continue, or q <return> to quit---
�██████ ████████████████ █████████████▄██
▀▀▄██▄████████ ████████████████ ████████████████ ████████████████ ████████████████
████████████ █████████████▄▄█ ████████████████ ████████████████ ████████████████
1728st pg 1729st pg 1730st pg 1735st pg 1736st pg
█████████▄▄█████ ████████████████ ████████████████ ████████████████ ████████████████
████████████████ ████▄▄██████████ ████████████████ ████████████████ ██████████▀█████
████████████████ ████████████████ ████████████████ ████████████████ ████████████████
██████▄▄██████▄▄ ████████████████ ████████████████ ████████████████ ████████████████
███████████████ ████████████████ ████████████████ ████████████████ ████████████████
███████ ████████ █▀▀█████████████ ████████████████ ████████████████ ████████████████
████████████████ ███████████▀████ ████████████████ ██▀▀████████████ ████████████████
██ ███████▀▀████ ████████████████ ███████████▀████ ███ ████████████ ████████████████
1737st pg 1739st pg 1740st pg 1742st pg
████████████████ ████████████████ █████▀██████████ ████████
████████████████ ████████████▀███ ▄████▀▀ ████████ ████████
████████████████ ████████████████ ████████████████ ████████
████████████████ ████████████████ ██████▀▀████████ ████████
████████████████ ████████████████ ████████████████ ████████████
████████▄███████ ████████████████ ████████████████ ████████████
████████████████ ████████████████ ████████████████ ███████████▄
████████████████ ████████████████ ████████████████ ████████████
(and 1722 completely filled pages) (and 2 empty pages) (freelist with 277 entries)
REPRs:
P6opaque [================================================== 55705
strings:
(empty histogram)
size bucket: 112
setting up stuff
1st pg
███▄
████
(and 2 empty pages)
REPRs:
P6opaque [================================================== 3
---Type <return> to continue, or q <return> to quit---
strings:
(empty histogram)
size bucket: 120
setting up stuff
24st pg 25st pg
███████████████▀ ████████
████████████████ ████████
████████████████ ████████
████████████████ ████████
████████████████ ████
████████████████ ████
████████████████ ████▀▀
████████████████ ████
(and 23 completely filled pages) (and 2 empty pages) (freelist with 1 entries)
REPRs:
P6opaque [================================================== 792
strings:
(empty histogram)
size bucket: 128
setting up stuff
35st pg
████████
████████
████████
████████
██████████▀█
████████
████████
████████
(and 34 completely filled pages) (and 2 empty pages)
REPRs:
P6opaque [================================================== 1120
strings:
(empty histogram)
size bucket: 136
setting up stuff
1st pg
▀█
(and 2 empty pages)
strings:
(empty histogram)
size bucket: 144
setting up stuff
21st pg 22st pg
████████████████ ████████
████████████████ ████████
████████████████ ████████
████████████████ ████████
████████████████ ████
████████████████ ▀███
██████████████ █
████████████████
(and 20 completely filled pages) (and 2 empty pages) (freelist with 2 entries)
sizes of objects/stables:
144 [================================================== 689 99.216
REPRs:
P6opaque [================================================== 690
strings:
---Type <return> to continue, or q <return> to quit---
(empty histogram)
size bucket: 152
(unallocated)
size bucket: 160
setting up stuff
8st pg
▀█
(and 7 completely filled pages) (and 2 empty pages)
REPRs:
STable [================================================== 217
MVMMultiCache [= 7
strings:
(empty histogram)
size bucket: 168
setting up stuff
1st pg
████████
████████
████████
████████
████████████
████████ ▀▀
████████
████████
(and 2 empty pages)
REPRs:
P6opaque [================================================== 32
strings:
(empty histogram)
size bucket: 176
setting up stuff
1st pg
(and 2 empty pages)
strings:
(empty histogram)
size bucket: 184
(unallocated)
size bucket: 192
setting up stuff
44st pg
████████
████████
████████
████████
████████████
████████████ █
████████████████
████████████████
(and 43 completely filled pages) (and 2 empty pages)
REPRs:
MVMStaticFrame [================================================== 1408
strings:
---Type <return> to continue, or q <return> to quit---
(empty histogram)
size bucket: 200
setting up stuff
2st pg
████████
████████
████
▀███
(and 1 completely filled pages) (and 2 empty pages)
REPRs:
MVMCompUnit [================================================== 24
P6opaque [======================================= 19
strings:
(empty histogram)
size bucket: 208
setting up stuff
2st pg
████████
████████
████████
████████
████████████
████████████
██████████████
███████████████
(and 1 completely filled pages) (and 2 empty pages)
REPRs:
P6opaque [================================================== 64
strings:
(empty histogram)
size bucket: 216
(unallocated)
size bucket: 224
(unallocated)
size bucket: 232
(unallocated)
size bucket: 240
(unallocated)
size bucket: 248
(unallocated)
size bucket: 256
setting up stuff
1st pg
████████
████████
████
▄▄████
(and 2 empty pages)
REPRs:
P6opaque [================================================== 12
strings:
(empty histogram)
nursery state:
[ ] 2 %
2030 objects; 0 type objects; 0 STables
sizes of objects/stables:
32 [================================================== 940 30.080
40 [ 10 400
48 [ 10 480
---Type <return> to continue, or q <return> to quit---
56 [============================ 527 29.512
72 [======== 159 11.448
96 [=== 69 6.624
104 [================ 313 32.552
sizes of P6opaques only:
40 [= 10 400
72 [======== 55 3.960
96 [=========== 69 6.624
104 [================================================== 313 32.552
REPRs:
VMHash [================================================== 652
VMArray [===================================== 483
P6opaque [================================== 449
P6str [=================== 255
MVMCode [======= 104
MVMString [=== 42
P6num [= 18
P6int [= 15
Lexotic [ 10
VMIter [ 2
VMArray storage types:
obj [================================================== 473
i64 [= 10
VMArray usage percentages:
10 [==== 29
20 [==== 36
30 [== 18
100 [==== 36
N/A [================================================== 361
strings:
0 [================================================== 42
overflows in the gen2
475 objects; 0 type objects; 0 STables
sizes of objects/stables:
264 [ 2 528
328 [================================================== 473 155.144
sizes of P6opaques only:
264 [ 2 528
328 [================================================== 473 155.144
REPRs:
P6opaque [================================================== 475
VMArray storage types:
(empty histogram)
VMArray usage percentages:
(empty histogram)
strings:
(empty histogram)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment