voltdb开启时遇到Transparent huge pages (THP) not supported问题
2016-08-04 15:08
627 查看
问题描述:
bin/voltdb create
ERROR: The kernel is configured to use transparent huge pages (THP). This is not supported when running VoltDB. Use the following commands to disable this feature for the current session:
ERROR:
ERROR: sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
ERROR: sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/defrag"
ERROR:
ERROR: To disable THP on reboot, add the preceding commands to the /etc/rc.local file.
解决办法:
解决办法1:执行如下两句命令
sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/defrag"
但是重启系统后失效
解决办法2:修改/etc/rc.local配置文件,重启后依然生效(ubuntu下作如下修改)
voltDB是内存数据库,适当的内存管理对有效的运行VoltDB至关重要,而使用透明大爷是voltDB提升性能的一种方式。
可参考:https://forum.voltdb.com/showthread.php?1529-Transparent-huge-pages-(THP)-not-supported
bin/voltdb create
ERROR: The kernel is configured to use transparent huge pages (THP). This is not supported when running VoltDB. Use the following commands to disable this feature for the current session:
ERROR:
ERROR: sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
ERROR: sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/defrag"
ERROR:
ERROR: To disable THP on reboot, add the preceding commands to the /etc/rc.local file.
解决办法:
解决办法1:执行如下两句命令
sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/defrag"
但是重启系统后失效
解决办法2:修改/etc/rc.local配置文件,重启后依然生效(ubuntu下作如下修改)
# # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. touch /var/lock/subsys/local if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag fi exit 0问题产生原因:
voltDB是内存数据库,适当的内存管理对有效的运行VoltDB至关重要,而使用透明大爷是voltDB提升性能的一种方式。
可参考:https://forum.voltdb.com/showthread.php?1529-Transparent-huge-pages-(THP)-not-supported
相关文章推荐
- Spring每个jar作用
- 初始spring(三)
- house robber follow up
- 理解js的prototype原型对象
- 拥抱.NET Core,学习.NET Core的基础知识补遗
- lua(3)-string字符串&math数学库
- php 遍历
- java web开发在web.xml配置<mime-mapping>实现浏览器根据文件类型自动打开
- MyBatis常见错误(3)
- 腾讯2016研发工程师编程题微信红包
- PyQt5教程-18-窗口分隔
- Android 自定义View 带你飞(二)
- js号码邮箱手机号验证以及身份证
- MYBATIS常见错误(1)
- Asp.net MVC中使用KindEditor上传本地图片的注意事项
- 丑小鸭的故事--ruby中的方法
- bash基础特性及常用命令
- java中的错误集合
- string 类型详解
- VirtualBox: Failed to open a session for the virtual machine……