标签:index x11 -fpic add com get linu tar.gz mys
tcmalloc是谷歌提供的内存分配管理模块
jemalloc是FreeBSD提供的内存分配管理模块
glibc是Linux提供的内存分配管理模块
并发16个线程,分配压测3次,每次压15分钟,可以看到谷歌的tcmalloc内存管理分配模块性能最好。
安装:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz # cd libunwind-0.99 # CFLAGS=-fPIC ./configure --enable-shared # make CFLAGS=-fPIC # make CFLAGS=-fPIC install # wget https://gperftools.googlecode.com/files/gperftools-2.1.tar.gz(需要FQ) # cd gperftools-2.1 # ./configure # make && make install # echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf # ldconfig # /etc/init.d/mysql restart # lsof -n |grep tcmalloc |
开启:
1
2
|
[mysqld_safe] malloc-lib= /usr/local/lib/libtcmalloc_minimal .so |
验证:
tcmalloc jemalloc glibc内存分配管理模块性能测试对比的资料下载
http://down.51cto.com/data/2364525
tcmalloc jemalloc glibc内存分配管理模块性能测试对比
标签:index x11 -fpic add com get linu tar.gz mys
原文地址:https://www.cnblogs.com/drizzle-xu/p/8926105.html