Skip to content

Instantly share code, notes, and snippets.

@mklooss
Created November 19, 2014 15:45
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 mklooss/8091e48c4551f40d05c8 to your computer and use it in GitHub Desktop.
Save mklooss/8091e48c4551f40d05c8 to your computer and use it in GitHub Desktop.
HHVM memory leak info HHVM issue: #4268
___ Begin jemalloc statistics ___
Version: 3.6.0-0-g46c0af68bd248b04df75e4f92d5fb804c3d75340
Assertions disabled
Run-time option settings:
opt.abort: false
opt.lg_chunk: 22
opt.dss: "secondary"
opt.narenas: 1
opt.lg_dirty_mult: 3
opt.stats_print: false
opt.junk: false
opt.quarantine: 0
opt.redzone: false
opt.zero: false
opt.tcache: true
opt.lg_tcache_max: 16
CPUs: 12
Arenas: 2
Pointer size: 8
Quantum size: 16
Page size: 4096
Min active:dirty page ratio per arena: 8:1
Maximum thread-cached size class: 65536
Chunk size: 4194304 (2^22)
Allocated: 9737586424, active: 9899929600, mapped: 10028580864
Current active ceiling: 376753356800
chunks: nchunks highchunks curchunks
2459 2391 2391
huge: nmalloc ndalloc allocated
12 0 104857600
Merged arenas stats:
assigned threads: 9
dss allocation precedence: N/A
dirty pages: 2391375:15719 active:dirty, 447 sweeps, 8523 madvises, 280763 purged
allocated nmalloc ndalloc nrequests
small: 9606981368 1051174478 954296861 2746559237
large: 25747456 1794242 1793298 26849334
total: 9632728824 1052968720 956090159 2773408571
active: 9795072000
mapped: 9919528960
bins: bin size regs pgs allocated nmalloc ndalloc nrequests nfills nflushes newruns reruns curruns
0 8 501 1 83628920 102915788 92462173 439275136 5247239 1009424 73234 321307 20882
1 16 252 1 87899440 59484074 53990359 470084740 5630747 628279 62687 617473 21813
2 32 126 1 244824640 68522309 60871539 362756440 10509987 690139 135852 1282989 60750
3 48 84 1 100242576 18932248 16843861 69579786 2568761 301050 64477 470386 24875
4 64 63 1 27087680 3362435 2939190 33306080 702174 193935 10460 284790 6722
5 80 50 1 13627360 1531226 1360884 391557500 465147 173643 8297 313223 3409
6 96 84 2 117768096 32546141 31319390 49599492 6773804 491574 183779 715741 14614
7 112 72 2 1078336 340633 331005 26837811 178869 146048 520 55225 135
8 128 63 2 8853215616 756701370 687535623 833704384 68166212 10983808 4292798 19374054 1098429
9 160 51 2 13854880 763487 676894 4971771 198479 153241 3945 90001 1699
10 192 63 3 2738496 356881 342618 5437884 125603 93621 1036 74573 462
11 224 72 4 1552992 166290 159357 15738300 103561 92885 187 33296 98
12 256 63 4 3137024 529603 517349 5422160 219686 158476 2140 48226 195
13 320 63 5 7351360 1137688 1114715 5485263 252859 164971 5042 92791 365
14 384 63 6 6555648 1439290 1422218 2524941 355276 167584 3228 200380 272
15 448 63 7 582400 131877 130577 956961 77588 72651 476 1538 21
16 512 63 8 977920 236541 234631 14519957 112654 80367 490 8263 31
17 640 51 8 10266240 658168 642127 4375762 175977 151163 3720 64147 316
18 768 47 9 4529664 301898 296000 2052003 124000 125445 2036 29350 127
19 896 45 10 455168 120320 119812 825150 63249 65298 489 3967 12
20 1024 63 16 1424384 175312 173921 3716381 93151 74887 728 2085 24
21 1280 51 16 1084160 312730 311883 1855978 133541 114502 532 21074 19
22 1536 42 16 926208 78001 77398 251494 37376 33369 640 884 15
23 1792 38 17 645120 94289 93929 616168 68387 65496 724 1513 10
24 2048 65 33 1828864 102152 101259 203781 64797 61436 91 3570 15
25 2560 52 33 578560 52071 51845 381051 50358 49954 25 45 6
26 3072 43 33 371712 35623 35502 313427 34394 33992 19 3584 4
27 3584 39 35 18747904 146033 140802 209436 44913 73391 1340 19988 136
large: size pages nmalloc ndalloc nrequests curruns
4096 1 170236 169639 2787706 597
8192 2 234291 234091 5738534 200
12288 3 908380 908334 2419844 46
16384 4 62885 62854 74139 31
20480 5 53724 53717 165281 7
24576 6 68170 68166 296012 4
28672 7 32 30 60 2
32768 8 49831 49813 15013029 18
36864 9 35735 35734 135657 1
40960 10 7997 7995 8007 2
45056 11 516 516 516 0
49152 12 3296 3295 3300 1
53248 13 212 211 214 1
57344 14 3336 3336 3422 0
61440 15 432 428 432 4
65536 16 30232 30219 38244 13
69632 17 12556 12556 12556 0
73728 18 3094 3094 3094 0
77824 19 140 140 140 0
81920 20 5155 5155 5155 0
86016 21 175 174 175 1
90112 22 144 144 144 0
94208 23 94 94 94 0
98304 24 127 127 127 0
102400 25 1193 1193 1193 0
106496 26 3605 3605 3605 0
110592 27 2509 2509 2509 0
114688 28 596 596 596 0
118784 29 58 58 58 0
122880 30 26 25 26 1
126976 31 2 2 2 0
131072 32 22829 22829 22829 0
135168 33 18856 18856 18856 0
139264 34 4 4 4 0
143360 35 2 2 2 0
147456 36 25611 25611 25611 0
151552 37 8 8 8 0
155648 38 2 2 2 0
159744 39 2 2 2 0
163840 40 4959 4959 4959 0
[9]
204800 50 2 2 2 0
[6]
233472 57 118 118 118 0
[3]
249856 61 1 1 1 0
[2]
262144 64 7 2 7 5
266240 65 1852 1852 1852 0
270336 66 118 118 118 0
[49]
475136 116 1 0 1 1
[1]
483328 118 2 2 2 0
[3]
499712 122 1 0 1 1
[5]
524288 128 1 1 1 0
528384 129 7344 7344 7344 0
[124]
1040384 254 1 1 1 0
1044480 255 1 1 1 0
1048576 256 1 0 1 1
1052672 257 3 3 3 0
[35]
1200128 293 1 0 1 1
[218]
2097152 512 53730 53726 53730 4
2101248 513 3 2 3 1
[255]
3149824 769 3 2 3 1
[249]
arenas[0]:
assigned threads: 9
dss allocation precedence: disabled
dirty pages: 2387779:15719 active:dirty, 446 sweeps, 8523 madvises, 280763 purged
allocated nmalloc ndalloc nrequests
small: 9593193208 1051054531 954296839 2746439290
large: 25620480 1794227 1793298 26849319
total: 9618813688 1052848758 956090137 2773288609
active: 9780342784
mapped: 9902751744
bins: bin size regs pgs allocated nmalloc ndalloc nrequests nfills nflushes newruns reruns curruns
0 8 501 1 83628920 102915788 92462173 439275136 5247239 1009424 73234 321307 20882
1 16 252 1 87899440 59484074 53990359 470084740 5630747 628279 62687 617473 21813
2 32 126 1 244542464 68513491 60871539 362747622 10509987 690139 135782 1282989 60680
3 48 84 1 98688384 18899869 16843861 69547407 2568761 301050 64091 470386 24489
4 64 63 1 26238592 3349168 2939190 33292813 702174 193935 10249 284790 6511
5 80 50 1 12035120 1511323 1360884 391537597 465147 173643 7898 313223 3010
6 96 84 2 117288576 32541146 31319390 49594497 6773804 491574 183719 715741 14554
7 112 72 2 745248 337659 331005 26834837 178869 146048 478 55225 93
8 128 63 2 8852951936 756699310 687535623 833702324 68166212 10983808 4292765 19374054 1098396
9 160 51 2 10022400 739516 676876 4947800 198479 153241 3475 89998 1229
10 192 63 3 2219712 354179 342618 5435182 125603 93621 993 74573 419
11 224 72 4 868224 163231 159355 15735241 103561 92885 144 33295 55
12 256 63 4 2899200 528674 517349 5421231 219686 158476 2125 48226 180
13 320 63 5 6970240 1136497 1114715 5484072 252859 164971 5023 92791 346
14 384 63 6 6259968 1438520 1422218 2524171 355276 167584 3215 200380 259
15 448 63 7 332864 131320 130577 956404 77588 72651 467 1538 12
16 512 63 8 756224 236108 234631 14519524 112654 80367 483 8263 24
17 640 51 8 9950080 657674 642127 4375268 175977 151163 3710 64147 306
18 768 47 9 4227840 301505 296000 2051610 124000 125445 2027 29350 118
19 896 45 10 262528 120105 119812 824935 63249 65298 484 3967 7
20 1024 63 16 1234944 175127 173921 3716196 93151 74887 725 2085 21
21 1280 51 16 756480 312474 311883 1855722 133541 114502 526 21074 13
22 1536 42 16 565248 77764 77396 251257 37376 33369 634 883 9
23 1792 38 17 469504 94191 93929 616070 68387 65496 721 1513 7
24 2048 65 33 1757184 102117 101259 203746 64797 61436 90 3570 14
25 2560 52 33 552960 52061 51845 381041 50358 49954 24 45 5
26 3072 43 33 331776 35610 35502 313414 34394 33992 18 3584 3
27 3584 39 35 18737152 146030 140802 209433 44913 73391 1339 19988 135
large: size pages nmalloc ndalloc nrequests curruns
4096 1 170233 169639 2787703 594
8192 2 234282 234091 5738525 191
12288 3 908378 908334 2419842 44
16384 4 62884 62854 74138 30
20480 5 53724 53717 165281 7
24576 6 68170 68166 296012 4
28672 7 32 30 60 2
32768 8 49831 49813 15013029 18
36864 9 35735 35734 135657 1
40960 10 7997 7995 8007 2
45056 11 516 516 516 0
49152 12 3296 3295 3300 1
53248 13 212 211 214 1
57344 14 3336 3336 3422 0
61440 15 432 428 432 4
65536 16 30232 30219 38244 13
69632 17 12556 12556 12556 0
73728 18 3094 3094 3094 0
77824 19 140 140 140 0
81920 20 5155 5155 5155 0
86016 21 175 174 175 1
90112 22 144 144 144 0
94208 23 94 94 94 0
98304 24 127 127 127 0
102400 25 1193 1193 1193 0
106496 26 3605 3605 3605 0
110592 27 2509 2509 2509 0
114688 28 596 596 596 0
118784 29 58 58 58 0
122880 30 26 25 26 1
126976 31 2 2 2 0
131072 32 22829 22829 22829 0
135168 33 18856 18856 18856 0
139264 34 4 4 4 0
143360 35 2 2 2 0
147456 36 25611 25611 25611 0
151552 37 8 8 8 0
155648 38 2 2 2 0
159744 39 2 2 2 0
163840 40 4959 4959 4959 0
[9]
204800 50 2 2 2 0
[6]
233472 57 118 118 118 0
[3]
249856 61 1 1 1 0
[2]
262144 64 7 2 7 5
266240 65 1852 1852 1852 0
270336 66 118 118 118 0
[49]
475136 116 1 0 1 1
[1]
483328 118 2 2 2 0
[3]
499712 122 1 0 1 1
[5]
524288 128 1 1 1 0
528384 129 7344 7344 7344 0
[124]
1040384 254 1 1 1 0
1044480 255 1 1 1 0
1048576 256 1 0 1 1
1052672 257 3 3 3 0
[35]
1200128 293 1 0 1 1
[218]
2097152 512 53730 53726 53730 4
2101248 513 3 2 3 1
[255]
3149824 769 3 2 3 1
[249]
arenas[1]:
assigned threads: 0
dss allocation precedence: primary
dirty pages: 3596:0 active:dirty, 1 sweep, 0 madvises, 0 purged
allocated nmalloc ndalloc nrequests
small: 13788160 119947 22 119947
large: 126976 15 0 15
total: 13915136 119962 22 119962
active: 14729216
mapped: 16777216
bins: bin size regs pgs allocated nmalloc ndalloc nrequests nfills nflushes newruns reruns curruns
[0..1]
2 32 126 1 282176 8818 0 8818 0 0 70 0 70
3 48 84 1 1554192 32379 0 32379 0 0 386 0 386
4 64 63 1 849088 13267 0 13267 0 0 211 0 211
5 80 50 1 1592240 19903 0 19903 0 0 399 0 399
6 96 84 2 479520 4995 0 4995 0 0 60 0 60
7 112 72 2 333088 2974 0 2974 0 0 42 0 42
8 128 63 2 263680 2060 0 2060 0 0 33 0 33
9 160 51 2 3832480 23971 18 23971 0 0 470 3 470
10 192 63 3 518784 2702 0 2702 0 0 43 0 43
11 224 72 4 684768 3059 2 3059 0 0 43 1 43
12 256 63 4 237824 929 0 929 0 0 15 0 15
13 320 63 5 381120 1191 0 1191 0 0 19 0 19
14 384 63 6 295680 770 0 770 0 0 13 0 13
15 448 63 7 249536 557 0 557 0 0 9 0 9
16 512 63 8 221696 433 0 433 0 0 7 0 7
17 640 51 8 316160 494 0 494 0 0 10 0 10
18 768 47 9 301824 393 0 393 0 0 9 0 9
19 896 45 10 192640 215 0 215 0 0 5 0 5
20 1024 63 16 189440 185 0 185 0 0 3 0 3
21 1280 51 16 327680 256 0 256 0 0 6 0 6
22 1536 42 16 360960 237 2 237 0 0 6 1 6
23 1792 38 17 175616 98 0 98 0 0 3 0 3
24 2048 65 33 71680 35 0 35 0 0 1 0 1
25 2560 52 33 25600 10 0 10 0 0 1 0 1
26 3072 43 33 39936 13 0 13 0 0 1 0 1
27 3584 39 35 10752 3 0 3 0 0 1 0 1
large: size pages nmalloc ndalloc nrequests curruns
4096 1 3 0 3 3
8192 2 9 0 9 9
12288 3 2 0 2 2
16384 4 1 0 1 1
[1014]
--- End jemalloc statistics ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment