Skip to content

Instantly share code, notes, and snippets.

@diginfo
Last active August 2, 2024 02:34
Show Gist options
  • Select an option

  • Save diginfo/be7347e6e6c4f05375c51bca90f220e8 to your computer and use it in GitHub Desktop.

Select an option

Save diginfo/be7347e6e6c4f05375c51bca90f220e8 to your computer and use it in GitHub Desktop.

Revisions

  1. diginfo revised this gist May 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jemalloc.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/sh
    ## Install jemalloc & configure mysql - Ubuntu
    ## Install latest jemalloc & configure mysql - Ubuntu
    ## bash <(curl -Ls https://gist.github.com/diginfo/be7347e6e6c4f05375c51bca90f220e8/raw/)
    ##
    apt-get -y install autoconf libxslt-dev xsltproc docbook-xsl
  2. diginfo revised this gist May 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jemalloc.sh
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,6 @@ make dist
    make install

    ## /usr/lib/x86_64-linux-gnu/libjemalloc.so.1
    echo -e "[mysqld_safe]\r\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" >> /etc/mysql/conf.d/jemalloc.cnf
    echo -e "[mysqld_safe]\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" > /etc/mysql/conf.d/jemalloc.cnf

    #systemctl restart mysqld
  3. diginfo revised this gist May 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jemalloc.sh
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,6 @@ make dist
    make install

    ## /usr/lib/x86_64-linux-gnu/libjemalloc.so.1
    echo -e "[mysqld_safe]\r\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" >> /etc/mysql/conf.d/jemalloc.conf
    echo -e "[mysqld_safe]\r\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" >> /etc/mysql/conf.d/jemalloc.cnf

    #systemctl restart mysqld
  4. diginfo revised this gist May 16, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion jemalloc.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    apt-get install autoconf libxslt-dev xsltproc docbook-xsl
    #!/bin/sh
    ## Install jemalloc & configure mysql - Ubuntu
    ## bash <(curl -Ls https://gist.github.com/diginfo/be7347e6e6c4f05375c51bca90f220e8/raw/)
    ##
    apt-get -y install autoconf libxslt-dev xsltproc docbook-xsl
    git clone https://github.com/jemalloc/jemalloc.git
    cd jemalloc
    autoconf
    @@ -8,3 +12,5 @@ make install

    ## /usr/lib/x86_64-linux-gnu/libjemalloc.so.1
    echo -e "[mysqld_safe]\r\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" >> /etc/mysql/conf.d/jemalloc.conf

    #systemctl restart mysqld
  5. diginfo created this gist May 16, 2019.
    10 changes: 10 additions & 0 deletions jemalloc.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    apt-get install autoconf libxslt-dev xsltproc docbook-xsl
    git clone https://github.com/jemalloc/jemalloc.git
    cd jemalloc
    autoconf
    ./configure
    make dist
    make install

    ## /usr/lib/x86_64-linux-gnu/libjemalloc.so.1
    echo -e "[mysqld_safe]\r\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" >> /etc/mysql/conf.d/jemalloc.conf