訊息:TokuDB: Huge pages are enabled, disable them before continuing
可以參考這一篇
How to enable TokuDB in MariaDB
懶得看可以參考以下:
終端機下輸入
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
接著建立一個tokudb.cnf文字檔
======================文字檔內容===================
# See https://mariadb.com/kb/en/how-to-enable-tokudb-in-mariadb/
# for instructions how to enable TokuDB
#
# See https://mariadb.com/kb/en/tokudb-differences/ for differences
# between TokuDB in MariaDB and TokuDB from http://www.tokutek.com/
plugin-load=ha_tokudb
==================================================
接著放在/etc/mysql/conf.d/tokudb.cnf (Ubuntu & Debian)
接著輸入
cat /sys/kernel/mm/transparent_hugepage/enabled
你可以看到原本的[always]被括住了,修改後變[never]被括住了
登入MariaDB後手動啟動tokuDB
INSTALL SONAME 'ha_tokudb';
再執行
show engines;
就可以看到tokuDB在引擎清單
2014.11.1
Q.系統重新啟動後,原本的HugePage又回復成always,要再查一下如何把參數設在啟動中
「修改個人登入設定」
直接將
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
寫在個人設定檔之中
vi ~/.bashrc 最底下
輸入 source ~/.bashrc 重新讀取bash(不用再登出登入)
再看一下是否正常括在[never]的地方
cat /sys/kernel/mm/transparent_hugepage/enabled
「修改系統設定」
在/etc/profile.d/dishugepage.sh,建立一個sh檔
新增底下內容:
=============================
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
=============================
系統重啟後檢查是否正常
cat /sys/kernel/mm/transparent_hugepage/enabled
方法二:修改/etc/rc.local
http://www.chriscalender.com/disabling-transparent-hugepages-for-tokudb/
沒有留言:
張貼留言