Kernel.shmall和kernel.shmmax

本文详细介绍了Linux系统中的kernel.shmall和kernel.shmmax两个核心参数,它们分别控制共享内存页数和单个共享内存段的最大值。设置这两个参数对于系统的性能和SGA的配置至关重要。kernel.shmall应确保至少为 ceil(SHMMAX/PAGE_SIZE),而kernel.shmmax应大于SGA的大小,以避免性能下降。文章通过实例展示了不同设置对数据库启动的影响,并提供了调整建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

if any of the current values are larger than the recommended value, then specify the larger value.

If the current value for any parameter is higher than the value listed in this table, then do not change the value of that parameter

如果/etc/sysctl.conf中的kernel.shmmax比推荐的值大 那么使用较大的值

[oracle@jssweb ~]$ getconf PAGE_SIZE 查看页大小

#

kernel.shmall = 2097152 则一共是8G的共享内存总量

SHMALL 单位页

Finally, we look at the SHMALL shared memory kernel parameter. This parameter controls the total amount of shared memory (in pages) that can be used at one time on the system. In short, the value

of this parameter should always be at least:
ceil(SHMMAX/PAGE_SIZE)

Kernel.shmall:共享内存总量,以页为单位。Linux 共享内存页大小为4K

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

scan724

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值