Install the libunwind library for the 64-bit operating system. Do not install the 32-bit operating system. The libunwind Library provides basic stack triplicate functions for 64-bit CPU and operating system-based programs.
Install the libunwind library for the 64-bit operating system. Do not install the 32-bit operating system. The libunwind Library provides basic stack triplicate functions for 64-bit CPU and operating system-based programs.
TCMalloc (Thread-Caching Malloc) is an open-source tool developed by google --"Google-perftools. Compared with the standard glibc library malloc, TCMalloc has much higher efficiency and speed in memory allocation, which can greatly improve the performance of the MySQL server in high concurrency, reduce system load.
Installation Steps of the TCMalloc Library (in Linux ):
1. Install the libunwind library for the 64-bit operating system. Do not install the 32-bit operating system. The libunwind Library provides the basic stack trigger function for 64-bit CPU and operating system-based programs, these include the APIs used to output stack tracing, APIs used to program stack unrolling, and APIs that support the C ++ exception handling mechanism.
2. Install google-perftools:
Install apsaradb for redis
Check whether tcmalloc is effective
# Lsof-n | grep tcmalloc
The following information takes effect:
Redis-ser 13768 root mem REG 1616491 788696/usr/local/lib/libtcmalloc. so.0.1.0
Modify the configuration file:
Vim redis. conf
Find the daemonize and change the following no to yes so that it can run as a service.
Then start redis:
$./Redis-server./redis. conf
Connect to the database for testing
$ Src/redis-cli
Redis> set foo bar
OK
Redis> get foo
"Bar"