A tragedy caused by the Hugepages ORACLE session surge was not turned on

Source: Internet
Author: User
Tags sessions

The fault simply describes: The Linux system does not open hugepages, the host memory will be nearly 300g,swap 32G. ORACLE's sga_max_size settings are nearly 500 of the host's internal memory, which is approximately 60% of the hosts, and the database session is normally about almost a half-80%,sga_target. Fault day business changes, session number increased by one times, reached 1000, memory tension, used to swap space.

Workaround: Find time to close the database, reconfigure Hugepages, reboot the database to observe, memory consumption is less, and before the hugepages is not turned on is the order of magnitude contrast. Hugepage can reduce the burden of the CPU, but also reduces the consumption of system memory, generally recommended Linux database system configuration Hugepage (especially memory large, session more).

About opening hugepages and closing, refer to: http://blog.csdn.net/haibusuanyun/article/details/20697371

About Linux 6 off; http://blog.csdn.net/haibusuanyun/article/details/41983497

number of sessions over 600 hours
[Email protected]* ~]$ ps-ef|grep local| Wc-l
613
[Email protected]* ~]$ ps-ef|grep local| Wc-l
647
[Email protected] ~]$ free-m
Total used free shared buffers Cached
mem:257927 255079 2847 0 64 148001
-/+ buffers/cache:107013 150914
swap:31999 13738 18261
[Email protected] ~]$ cat/proc/meminfo |grep PageT
pagetables:94353044 KB
[Email protected] ~]$ free-m
Total used free shared buffers Cached
mem:257927 255182 2745 0 64 147743
-/+ buffers/cache:107373 150553
swap:31999 13981 18018
[Email protected] ~]$ Ps-ef|grep local| Wc-l
654
[Email protected]~]$ cat/proc/meminfo |grep PageT
pagetables:95038204 KB


When the number of sessions is 1000,
[Email protected] ~]$ cat/proc/meminfo |grep PageT
pagetables:110855888 KB
[Email protected] ~]$ Ps-ef|grep local| Wc-l
1016


Additional usage after configuring Hugepages

[Email protected] ~]$ cat/proc/meminfo |grep Page
pagetables:164464 KB
[Email protected]~]$ ps-ef|grep local|wc-l
429

A tragedy caused by the Hugepages ORACLE session surge was not turned on

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.