Page MenuHomeDevCentral

Disable transparent hugepages on PaaS Docker

Authored by dereckson on Nov 10 2018, 18:02.



Redis and MongoDB both advise to disable Transparent Hughe Pages (THP).

The RedHat documentation indicates this default option
isn't suitable for databases workloads.

As it's reasonable to consider a Docker engine will host
MySQL, PostgreSQL, Redis or some NoSQL containers, we can
disable this setting.

Test Plan

cat /sys/kernel/mm/transparent_hugepage/enabled

Diff Detail

rOPS Nasqueron Operations
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson requested review of this revision.Nov 10 2018, 18:02
dereckson created this revision.
dereckson updated this revision to Diff 5046.Nov 10 2018, 18:05

Correct profile name

dereckson accepted this revision.Nov 10 2018, 18:06
$ cat /sys/kernel/mm/transparent_hugepage/enabled                                                                                       
always madvise [never]
This revision is now accepted and ready to land.Nov 10 2018, 18:06
This revision was automatically updated to reflect the committed changes.