Not disabling THP

When building your Redis server, be sure to disable transparent huge pages (THP) by running this command as a privileged user:

sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled

If it is not disabled, THP can cause latency issues once Redis forks a background process to persist data to disk. If your server is multi-purpose (for example, a web server also running Redis), the increase in latency could be exponentially worse. The bottom line is that disabling THP on Linux for Redis is the best approach.

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.