A tragedy caused by the dramatic increase in HugePages ORACLE sessions not enabled, hugepagesoracle

Source: Internet
Author: User

A tragedy caused by the dramatic increase in HugePages ORACLE sessions not enabled, hugepagesoracle

Fault description: HugePages is not enabled in LINUX, the host memory is nearly 300 GB, And the SWAP is 32 GB. The SGA_MAX_SIZE setting of ORACLE is about 80% of the host memory, and the SGA_TARGET setting is about 60% of the host memory. Normally, the database session is about 500. The service changes on the day of the fault, and the number of sessions doubled, reaching the top 1000. The memory is tight and SWAP space is used.

Solution: Change the database time and reconfigure HugePages. After the database is restarted, check that the memory consumption is low, which is an order of magnitude before HugePages is enabled.Hugepage can reduce the cpu burden and reduce the consumption of system memory. In general, we recommend that you configure Hugepage for the linux database system (especially for large memory and many sessions ).

For more information about how to enable and disable hugepages, see http://blog.csdn.net/haibusuanyun/article/details/20697371

About LINUX 6 shutdown; http://blog.csdn.net/haibusuanyun/article/details/41983497

The number of sessions is more than 600
[Oracle @ * ~] $ Ps-ef | grep LOCAL | wc-l
613
[Oracle @ * ~] $ Ps-ef | grep LOCAL | wc-l
647
[Oracle @ ~] $ Free-m
Total used free shared buffers cached
Mem: 257927 255079 2847 0 64 148001
-/+ Buffers/cache: 107013 150914
Swap: 31999 13738 18261
[Oracle @ ~] $ Cat/proc/meminfo | grep PageT
PageTables: 94353044 kB
[Oracle @ ~] $ Free-m
Total used free shared buffers cached
Mem: 257927 255182 2745 0 64 147743
-/+ Buffers/cache: 107373 150553
Swap: 31999 13981 18018
[Oracle @ ~] $ Ps-ef | grep LOCAL | wc-l
654
[Oracle @ ~] $ Cat/proc/meminfo | grep PageT
PageTables: 95038204 kB


When the number of sessions reaches 1000,
[Oracle @ ~] $ Cat/proc/meminfo | grep PageT
PageTables: 110855888 kB
[Oracle @ ~] $ Ps-ef | grep LOCAL | wc-l
1016


Add the usage information after HugePages configuration.

[Oracle @ ~] $ Cat/proc/meminfo | grep Page
PageTables: 164464 kB
[Oracle @ ~] $ Ps-ef | grep LOCAL | wc-l
429

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.