[
https://issues.apache.org/jira/browse/AMBARI-21846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruno Lavoie updated AMBARI-21846:
----------------------------------
Summary: Transparent Huge Pages check using wrong file for CentOS 7 (was:
Transparent Huge Pages check using wrong file CentOS 7)
> Transparent Huge Pages check using wrong file for CentOS 7
> ----------------------------------------------------------
>
> Key: AMBARI-21846
> URL: https://issues.apache.org/jira/browse/AMBARI-21846
> Project: Ambari
> Issue Type: Bug
> Components: ambari-agent
> Environment: CentOS 7.x
> Ambari 2.5.1 - Hortonworks
> Reporter: Bruno Lavoie
> Priority: Minor
>
> In ambari_agent/HostInfo.py, the file used to check Transparent Huge Pages
> for RedHat family is: /sys/kernel/mm/redhat_transparent_hugepage/enabled
> But it appears to be /sys/kernel/mm/transparent_hugepage/enabled for CentOS 7.
> {code}
> # cat /etc/redhat-release
> CentOS Linux release 7.3.1611 (Core)
> # cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
> cat: /sys/kernel/mm/redhat_transparent_hugepage/enabled: No such file or
> directory
> # cat /sys/kernel/mm/transparent_hugepage/enabled
> [always] madvise never
> {code}
> No warnings when configuring hosts for a fresh cluster while I didn't
> disabled THP. Found it suspect and stumbled into this issue.
> Maybe the code must be more tailored for managing CentOS vs RedHat.
> I don't have any RHEL to check if it changed there too.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)