WARNING you have Transparen Huge Pages..

redis启动警告:

WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled‘ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.

启动redis。 出现警告.....warning

警告:WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled‘ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.这个警报已经给出了解决方法,解决延迟和内存的使用问题

然后我们执行上面给出的解决方案

这样就可以了。如果要永久的话,需要写入/etc/rc.local

进入rc.local,写入进去就可以了

时间: 2024-07-31 10:38:52

WARNING you have Transparen Huge Pages..的相关文章

redis启动后出现"WARNING you have Transparent Huge Pages (THP) support enabled in your kernel"问题

问题描述:启动redis后出现:WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as

大页(huge pages) 三大系列 ---计算大页配置参数

使用以下shell 脚本来计算大页配置参数,确保使用脚本实例之前的数据已经开始, 如果数据库的版本号11g,确认是否使用自己主动的内存管理(AMM) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #!/bin/bash # # hugepages_settings.sh # # Linux bash script to compute values fo

大页(huge pages) 系列四 ---Transparent HugePages

从RedHat 6, OEL 6, SLES 11 and UEK2 kernels 开始,系统缺省会启用 Transparent HugePages  :用来提高内存管理 的性能透明大页(Transparent HugePages )和之前版本中的大页功能上类似,主要的区别是:Transparent HugePages 可以实时配置, 不需要重启才能生效配置: 透明大页(Transparent HugePages )主要是利用khugepaged thread,而以前的 大页是通过在系统启动时

Linux透明大页(Transparent Huge Pages)对ES性能对影响

上周对ES集群进行扩容,运维同学找了几台物理机部署data node,结果发现新的data node比以前的data node性能差很多.同样的data node配置,同样的查询量,测试结果:CPU低,load非常高,diskIO打满. 最后通过对比系统配置,发现区别是新加入的物理机以前是跑MongoDB的,按官方建议关闭了透明大页(THP),而老机器的透明大页是开启的,遂把THP enable.重启.果然data node性能恢复正常.以前读到的ES相关文档中似乎没有涉及到THP的,不过在对T

redis启动时的几个报警错误-redis优化

1)The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128 2)WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcomm

ubuntu环境下安装Redis

1.命令行安装 sudo apt-get update sudo apt-get install redis-server 2.启动redis $redis-server 3208:C 30 Aug 21:18:42.264 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 320

Ubuntu 安装Redis

在Ubuntu中安装Redis有两种方式, 我用的是Ubuntu自带的apt-get 什么的是apt-get: 高级包装工具(英语:Advanced Packaging Tools,简称:APT)是Debian及其衍生发行版(如:ubuntu)的软件包管理器. APT可以自动下载,配置,安装二进制或者源代码格式的软 件包,因此简化了 Unix系统上管理软件的过程,apt-get命令一般需要root权限执行,所以一般跟着sudo命令. 在 Ubuntu 系统安装 Redi 可以使用以下命令: $s

redis 3.0.7 cluster 集群部署

一.环境描述 DB:redis 3.0.7 最新稳定版 OS:centos 6.6_x64 二.安装步骤 1.基本软件包安装 [[email protected] ~]# yum -y install ruby [[email protected] ~]# yum -y install rubygems 下载路径,上传到/tmp路径下 https://rubygems.org/gems/redis/versions/3.0.0 [[email protected] ~]# cd /tmp [[e

源码安装redis-3.0.5

##### 安装redis-server ##### # 创建运行用户 useradd redis -s /sbin/nologin -M # 上传软件到指定位置,我的软件保存位置为 mkdir -p /server/tools/ # 解压,配置,编译,安装 cd /server/tools/ tar -zxf redis-3.0.5.tar.gz  cd redis-3.0.5 make PREFIX=/usr/local/redis make PREFIX=/usr/local/redis