Large page (huge pages) series four---Transparent hugepages

Source: Internet
Author: User

Starting from Redhat 6, OEL 6, SLES One and UEK2 kernels, the system lacks the capital to enable Transparent Hugepages: Used to improve memory management
The Performance transparent large page (Transparent hugepages) is similar to the large page feature in previous versions, the main difference being: Transparent hugepages can be configured in real time,
No restart is required to make the configuration effective;
Transparent large pages (Transparent hugepages) mainly use khugepaged thread, whereas the previous large pages are pre-allocated by the time the system is started;

However, Oracle does not recommend that we use Redhat 6, OEL 6, SLES One and UEK2 kernels transparent large pages (Transparent hugepages),
Because there are some problems with transparent large pages (Transparent hugepages):
1. Transparent large pages (Transparent hugepages) in a RAC environment can cause abnormal node restarts, and performance issues;
2. In a stand-alone environment, transparent large pages (Transparent hugepages) can also cause some abnormal performance problems;




----Take Red Hat 6.0 as an example:
Method One:
Enabled by default: [Always]---indicates that transparent large pages are enabled
[Email protected] redhat_transparent_hugepage]# cat/sys/kernel/mm/redhat_transparent_hugepage/enabled
[Always] madvise never


Disabled state:
[Email protected] redhat_transparent_hugepage]# cat/sys/kernel/mm/redhat_transparent_hugepage/enabled
Always madvise [never]


Method Two:
[[email protected] redhat_transparent_hugepage]# grep anonhugepages/proc/meminfo
anonhugepages:143360 KB
If anonhugepages > 0 also indicates that transparent large pages are enabled;




----How to disable transparent large pages
Method One (priority selection):

Add a row of records in/etc/grub.conf:


Transparent_hugepage=never

And then restart




Method Two:
Configure/etc/rc.local and then restart the server:
If Test-f/sys/kernel/mm/redhat_transparent_hugepage/enabled; Then
echo Never >/sys/kernel/mm/redhat_transparent_hugepage/enabled
Fi
If Test-f/sys/kernel/mm/redhat_transparent_hugepage/defrag; Then
echo Never >/sys/kernel/mm/redhat_transparent_hugepage/defrag
Fi


Large page (huge pages) series four---Transparent hugepages

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.