voltdb开启时遇到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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值