Join the community today
Register Now

Beta Branch add jemalloc stats command to 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 9, 2016.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    add jemalloc stats command to 123.09beta01

    Right now only MariaDB MySQL server and Centmin Mod Nginx server actively use jemalloc instead of usual default glibc malloc. This commit adds a custom command to view jemalloc statistics at /usr/bin/jemalloc-stats. Command is added post-initial install on subsequent 2nd trigger of centmin.sh. So to install the command, update to latest Centmin Mod 123.09beta01, then re-run centmin.sh a 2nd time

    Continue reading...

    123.09beta01 branch
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    example stats on test CentOS 6.8 server

    explained at Use Case: Basic Allocator Statistics · jemalloc/jemalloc Wiki · GitHub
    Code (Text):
    jemalloc-stats
    ___ 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: 8
      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: 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: 52919712, active: 52940800, mapped: 58720256
    Current active ceiling: 54525952
    chunks: nchunks   highchunks    curchunks
                 14           14           14
    huge: nmalloc      ndalloc    allocated
                0            0            0
    

    Code (Text):
    arenas[0]:
    assigned threads: 1
    dss allocation precedence: disabled
    dirty pages: 12925:0 active:dirty, 0 sweeps, 0 madvises, 0 purged
                allocated      nmalloc      ndalloc    nrequests
    small:        1015200          969            0            0
    large:       51904512          965            0          965
    total:       52919712         1934            0          965
    active:      52940800
    mapped:      54525952
    bins:     bin  size regs pgs    allocated      nmalloc      ndalloc    nrequests       nfills     nflushes      newruns       reruns      curruns
                0     8  501   1          800          100            0            0            1            0            1            0            1
    [1..6]
                7   112   72   2         8064           72            0            0            1            0            1            0            1
    [8..10]
               11   224   72   4        16128           72            0            0            1            0            1            0            1
    [12]
               13   320   63   5        20160           63            0            0            1            0            1            0            1
    [14]
               15   448   63   7        28224           63            0            0            1            0            1            0            1
               16   512   63   8        32256           63            0            0            1            0            1            0            1
               17   640   51   8        32640           51            0            0            1            0            1            0            1
               18   768   47   9        36096           47            0            0            1            0            1            0            1
               19   896   45  10        40320           45            0            0            1            0            1            0            1
               20  1024   63  16        64512           63            0            0            1            0            1            0            1
               21  1280   51  16        65280           51            0            0            1            0            1            0            1
               22  1536   42  16        64512           42            0            0            1            0            1            0            1
               23  1792   38  17        68096           38            0            0            1            0            1            0            1
               24  2048   65  33       133120           65            0            0            1            0            1            0            1
               25  2560   52  33       133120           52            0            0            1            0            1            0            1
               26  3072   43  33       132096           43            0            0            1            0            1            0            1
               27  3584   39  35       139776           39            0            0            1            0            1            0            1
    large:   size pages      nmalloc      ndalloc    nrequests      curruns
             4096     1            5            0            5            5
             8192     2           41            0           41           41
            12288     3           41            0           41           41
            16384     4           41            0           41           41
            20480     5           41            0           41           41
            24576     6           41            0           41           41
            28672     7           41            0           41           41
            32768     8           42            0           42           42
            36864     9           41            0           41           41
            40960    10           41            0           41           41
            45056    11           41            0           41           41
            49152    12           41            0           41           41
            53248    13           41            0           41           41
            57344    14           41            0           41           41
            61440    15           41            0           41           41
            65536    16           41            0           41           41
            69632    17           41            0           41           41
            73728    18           41            0           41           41
            77824    19           41            0           41           41
            81920    20           41            0           41           41
            86016    21           41            0           41           41
            90112    22           41            0           41           41
            94208    23           41            0           41           41
            98304    24           41            0           41           41
           102400    25           16            0           16           16
    [993]
    --- End jemalloc statistics ---