Linux kernel new feature called Transparent Huge Pages (THP)
which is by default enabled on CentOS 6.x and above OS. Is THP good for MySQL
DB machine?
I am trying following to disabled THP but seems not working
$sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled
$sudo cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]
Why still showing?
$sudo grep -i AnonHugePages /proc/meminfo
AnonHugePages: 176128 kB
Kernel:
$uname -r
3.13.0-37-generic
Database
is fine, it has no problem but i just need advice, whether it is good or not, Also i am trying to disabled it but it is not allowing me see my question. – Satish Apr 17 '15 at 02:32tmpfs,
shm,
andhugepages…
– eyoung100 Apr 17 '15 at 03:02huge pages
andtransparent huge pages
are not the same issue. Yes, huge pages are good for databases when they're designed to use them. Transparent huge pages make normal memory access into huge page memory access which can cause excessive I/O for a database that was expecting to use regular sized pages. In general for a dedicated database server, leave huge pages settings and disable just thetransparent huge pages
. – karmakaze Sep 02 '18 at 00:05