Nginx's use of performance optimization TCMalloc

TCMalloc called the Thread-Caching Malloc, a member of the open source tools google-perftools of Google, it can be much higher on the efficiency and speed of memory allocation can be to a large extent improve server performance under high concurrency situations. Thereby reducing the load on the system.

1. 安装 libunwind 库, libunwind-0.99-alpha.tar.gz tar zxvf libunwind-0.99-alpha.tar.gz

cd libunwind-0.99-alpha

 

CFLAGS=-fPIC ./configure

 

make CFLAGS=-fPIC &&     make CFLAGS=-fPIC   install

 

2. Installation google-perftools

 

tar zxvf gperftools-2.1.tar.gz cd gperftools-2.1

./configure

 

make && make install

 

echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf ldconfig

So far, google-perftools installation is complete

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11328419.html