日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux huge模式设置,Linux HugePages 配置步骤

發(fā)布時間:2023/12/20 linux 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux huge模式设置,Linux HugePages 配置步骤 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

禁用ASMM 后就可以配置HugePages,步驟如下.https://www.cndba.cn/cndba/dave/article/4342

1.配置memlock

Edit the memlock setting in the /etc/security/limits.conf file. The memlock setting is specified in KB and set slightly lesser than the installed RAM. For example, if you have 64GB RAM installed, add the following entries to increase the max locked memory limit:https://www.cndba.cn/cndba/dave/article/4342

* soft memlock 60397977

* hard memlock 60397977

You can also set the memlock value higher than your SGA requirements.

2.查看memlock

Login as the oracle user again and run the ulimit -l command to verify the new memlock setting:

$ ulimit -l

60397977

3.查看當(dāng)前hugepagesize

Run the following command to display the value of Hugepagesize variable:

https://www.cndba.cn/cndba/dave/article/4342

$ grep Hugepagesize /proc/meminfo

4.計劃hugepages值

Complete the following procedure to create a script that computes recommended values for hugepages configuration for the current shared memory segments:

Linux 7.x 中 Oracle hugepage 大頁配置腳本

https://www.cndba.cn/dave/article/2672https://www.cndba.cn/cndba/dave/article/4342

Run the following command to change the permission of the file:https://www.cndba.cn/cndba/dave/article/4342

$ chmod +x hugepages_settings.sh

Run the hugepages_settings.sh script to compute the values for hugepages configuration:https://www.cndba.cn/cndba/dave/article/4342

$ ./hugepages_settings.sh

5.設(shè)置/etc/sysctl.conf 參數(shù)

Set the following kernel parameter:

https://www.cndba.cn/cndba/dave/article/4342https://www.cndba.cn/cndba/dave/article/4342

# sysctl -w vm.nr_hugepages=value_displayed_in_step_5

To make the value of the parameter available for every time you restart the computer, edit the /etc/sysctl.conf file and add the following entry:

vm.nr_hugepages=value_displayed_in_step_5

6.重啟操作系統(tǒng)

Restart the server.

https://www.cndba.cn/cndba/dave/article/4342

7.驗證hugepage

To check the available hugepages, run the following command:https://www.cndba.cn/cndba/dave/article/4342

$ grep Huge /proc/meminfo

HugePages_Total: 9732 == vm.nr_hugepages 參數(shù)值

總結(jié)

以上是生活随笔為你收集整理的linux huge模式设置,Linux HugePages 配置步骤的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。