Skip to content

Instantly share code, notes, and snippets.

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 lupupaulsv/4089cf5b2945612522ed3037e0ff743e to your computer and use it in GitHub Desktop.
Save lupupaulsv/4089cf5b2945612522ed3037e0ff743e to your computer and use it in GitHub Desktop.
[root@ip-10-3-6-85 1622112465_ruby-2.6.6]# rvm list
ruby-2.6.6 [ x86_64 ]
# Default ruby not set. Try 'rvm alias create default <ruby>'.
# => - current
# =* - current && default
# * - default
@lupupaulsv
Copy link
Author

[root@ip-10-3-6-85 1622112465_ruby-2.6.6]# ldd which ruby
linux-vdso.so.1 => (0x00007ffd93135000)
/usr/lib64/libjemalloc.so.1 (0x00007f9a565ec000)
libruby.so.2.6 => /opt/rubies/ruby-2.6.6/lib/libruby.so.2.6 (0x00007f9a5606a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9a55e4e000)
librt.so.1 => /lib64/librt.so.1 (0x00007f9a55c46000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f9a55a42000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f9a5580b000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9a55509000)
libc.so.6 => /lib64/libc.so.6 (0x00007f9a5513b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9a5682f000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f9a54f39000)

@lupupaulsv
Copy link
Author

[root@ip-10-3-6-85 1622112465_ruby-2.6.6]# MALLOC_CONF=stats_print:true ruby -e 'true'
___ Begin jemalloc statistics ___
Version: 3.3.1-0-g9ef9d9e8c271cdf14f664b871a8f98c827714784
Assertions disabled
Run-time option settings:
opt.abort: false
opt.lg_chunk: 22
opt.dss: "secondary"
opt.narenas: 8
opt.lg_dirty_mult: 3
opt.stats_print: true
opt.junk: false
opt.quarantine: 0
opt.redzone: false
opt.zero: false
opt.tcache: true
opt.lg_tcache_max: 15
CPUs: 2
Arenas: 8
Pointer size: 8
Quantum size: 16
Page size: 4096
Min active:dirty page ratio per arena: 8:1
Maximum thread-cached size class: 32768
Chunk size: 4194304 (2^22)
Allocated: 37381416, active: 38100992, mapped: 46137344
Current active ceiling: 41943040
chunks: nchunks highchunks curchunks
11 11 11
huge: nmalloc ndalloc allocated
1 0 33554432

arenas[0]:
assigned threads: 1
dss allocation precedence: disabled
dirty pages: 1110:88 active:dirty, 1 sweep, 1 madvise, 256 purged
allocated nmalloc ndalloc nrequests
small: 2409768 29311 7586 54990
large: 1417216 137 38 609
total: 3826984 29448 7624 55599
active: 4546560
mapped: 8388608
bins: bin size regs pgs allocated nmalloc ndalloc nrequests nfills nflushes newruns reruns curruns
0 8 501 1 11768 1600 129 1677 17 1 3 0 3
1 16 252 1 29456 2050 209 2823 21 2 8 5 8
2 32 126 1 128000 4700 700 9605 47 7 34 26 32
3 48 84 1 249984 6888 1680 8125 82 20 62 81 62
4 64 63 1 120960 2583 693 7710 41 11 30 48 30
5 80 50 1 88000 3450 2350 7067 69 47 34 105 27
6 96 84 2 189696 2016 40 2977 27 2 24 0 24
7 112 72 2 23744 324 112 382 6 3 4 1 3
8 128 63 2 84992 692 28 1836 12 1 11 0 11
9 160 51 2 76000 507 32 1794 13 2 11 1 10
10 192 63 3 48960 345 90 401 7 3 7 2 5
11 224 72 4 37632 252 84 278 6 4 4 1 3
12 256 63 4 45312 250 73 337 6 4 4 1 3
13 320 63 5 409600 1352 72 1581 24 2 21 5 21
14 384 63 6 43392 186 73 180 6 4 2 0 2
15 448 63 7 115584 314 56 267 6 2 5 0 5
16 512 63 8 66048 171 42 198 5 4 3 0 3
17 640 51 8 96640 790 639 6886 16 13 6 22 6
18 768 47 9 54528 139 68 145 5 4 3 1 2
19 896 45 10 35840 100 60 69 4 5 2 0 1
20 1024 63 16 69632 124 56 184 4 4 3 1 2
21 1280 51 16 39680 75 44 77 3 4 1 0 1
22 1536 42 16 43008 67 39 95 4 4 1 0 1
23 1792 38 17 16128 47 38 32 2 3 1 0 1
24 2048 65 33 88064 97 54 138 3 3 1 0 1
25 2560 52 33 79360 77 46 62 4 4 1 0 1
26 3072 43 33 67584 63 41 40 4 4 1 0 1
27 3584 39 35 50176 52 38 24 3 3 1 0 1
large: size pages nmalloc ndalloc nrequests curruns
4096 1 18 0 109 18
8192 2 26 1 319 25
12288 3 8 4 46 4
16384 4 56 11 91 45
[1]
24576 6 4 3 6 1
28672 7 1 1 1 0
32768 8 4 1 17 3
36864 9 3 3 3 0
[2]
49152 12 3 2 3 1
[2]
61440 15 6 6 6 0
[4]
81920 20 1 0 1 1
[3]
98304 24 2 1 2 1
[4]
118784 29 2 2 2 0
[18]
196608 48 1 1 1 0
[8]
233472 57 1 1 1 0
[198]
1048576 256 1 1 1 0
[762]
--- End jemalloc statistics ---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment