Is the Transparent Huge Pages (THP) feature enabled on RHEL 6 (x86) 32-bit architecture ?

本文详细解析了透明大页(THP)特性在Red Hat Enterprise Linux 6和5版本中32位与64位架构下的支持情况。在RHEL 6的32位版本中,THP特性缺失,而64位版本则支持该特性。对于RHEL 5,无论32位还是64位,均不支持THP。文章还深入探讨了内核配置项CONFIG_TRANSPARENT_HUGEPAGE的作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/446813

Is the Transparent Huge Pages (THP) feature enabled on RHEL 6 (x86) 32-bit architecture, also enabled on RHEL 5?

 SOLUTION 已验证 - 已更新 2019年四月5日08:49 - 

English 

环境

  • Red Hat Enterprise Linux 6 (x86) 32-bit
  • Red Hat Enterprise Linux 5 (x86/x86_64) 32/64-bit
  • Transparent Huge Pages (THP)
  • redhat_transparent_hugepage

问题

  • Is Transparent Huge Pages (THP) feature enabled on Red Hat Enterprise Linux 6 (x86) 32-bit architecture ?
  • Why Red Hat Enterprise Linux 6 (x86) 32-bit server does not have "redhat_transparent_hugepage" directory inside /sys/kernel/mm/?
    Eg:

Raw

# cat /sys/kernel/mm/redhat_transparent_hugepage/{defrag,enabled}
cat: /sys/kernel/mm/redhat_transparent_hugepage/defrag: No such file or directory
cat: /sys/kernel/mm/redhat_transparent_hugepage/enabled: No such file or directory
  • Is Transparent Huge Pages (THP) feature enabled on Red Hat Enterprise Linux 5 (x86/x86_64) 32/64-bit architecture ?

决议

  • The Transparent Huge Pages (THP) feature is not present on the 32-bit (x86) version of Red Hat Enterprise Linux 6. Install the 64-bit (x86_64) version to enable this feature.
  • The Transparent Huge Pages (THP) feature is not present on the 32/64-bit (x86/x86_64) version of Red Hat Enterprise Linux 5.

根源

  • The kernel configuration item "CONFIG_TRANSPARENT_HUGEPAGE" is not present in Red Hat Enterprise Linux 6 (x86).

    Raw

    # grep -i huge /boot/config-2.6.32-358.el6.i686 
    CONFIG_HUGETLBFS=y
    CONFIG_HUGETLB_PAGE=y
    
  • The kernel configuration item "CONFIG_TRANSPARENT_HUGEPAGE" is enabled on Red Hat Enterprise Linux 6 (x86_64).

    Raw

    # grep -i huge /boot/config-2.6.32-279.9.1.el6.x86_64 
    CONFIG_TRANSPARENT_HUGEPAGE=y
    CONFIG_HUGETLBFS=y
    CONFIG_HUGETLB_PAGE=y
    
    # grep -i huge /boot/config-2.6.18-194.el5
    CONFIG_HUGETLBFS=y
    CONFIG_HUGETLB_PAGE=y
    
    # uname -a
    Linux localhost 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值