High-performance NoSQL database Redis combined with Google's open-source tcmalloc library Installation notes

Source: Internet
Author: User
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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.