运行 percona/percona-server:5.7 映像并启用 TokuDB 时,它抱怨启用了透明大页面 (THP)。但是我已在以下位置将其关闭:“计算机配置\Windows 设置\安全设置\本地策略\用户权限分配”
当我运行以下行时:
docker run --name ps -e MYSQL_ROOT_PASSWORD=root -e INIT_TOKUDB=yes percona/percona-server:5.7
我收到此错误消息:
Disabling transparent huge pages for the current session...
/usr/bin/ps-admin: line 708: /sys/kernel/mm/transparent_hugepage/defrag: Read-only file system
/usr/bin/ps-admin: line 711: /sys/kernel/mm/transparent_hugepage/enabled: Read-only file system
ERROR: Failed to disable transparent huge pages for this session.
知道如何在启动 docker 映像之前将其关闭吗?
我可以看到它在以下位置启用:
bash-4.2$ cat /sys/kernel/mm/transparent_hugepage/enabled
always [madvise] never