In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to analyze the process of opening large pages of memory in centos. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
# # OS sets the corresponding kernel parameters according to the machine condition
# # according to 100g allocation, the data volume of large pages is 51200
Echo 51200 > / proc/sys/vm/nr_hugepages
# # adding user groups that can use large pages of memory
# # uid=1000 (mysql) gid=1002 (dba) groups=1002 (dba), 4 (adm)
Echo 1002 > / proc/sys/vm/hugetlb_shm_group
# # set the size of the shared memory segment allowed by the kernel. This is 90g.
Echo 96636764160 > / proc/sys/kernel/shmmax
# # set the number of shared memory segments and the size of the shared memory page is 4kMagol 90G 90g 1024mm 1024Accord4
Echo 23592960 > / proc/sys/kernel/shmall
# # setting never opens a large transparent page
Echo never > / sys/kernel/mm/transparent_hugepage/enabled
# # set permanent memory defragmentation
Echo never > / sys/kernel/mm/transparent_hugepage/defrag
# # write kernel parameters into the self-startup script to prevent invalidation after restart
Vi / etc/rc.local
# # add corresponding file restrictions:
[root@MYSQL-DB1] # tail-2 / etc/security/limits.conf
Mysql hard memlock unlimited
Mysql soft memlock unlimited
# # adding corresponding configuration parameters for mysql
[mysql@MYSQL-DB1 ~] $cat my3306.cnf | grep innodb_buffer_pool_
Innodb_buffer_pool_size=80G
Innodb_buffer_pool_dump_at_shutdown=1
Innodb_buffer_pool_load_at_startup=1
[mysql@MYSQL-DB1 ~] $cat my3306.cnf | grep page
Large-pages
# # restart mysql
The above is the editor for you to share how to analyze centos to open the process of large-page memory, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.