System V 共享内存
System V 共享内存允许进程创建段。协作进程可以附加到内存段(根据对段的访问权限)并访问段中包含的数据。此功能是作为可装入模块实现的。/etc/system 文件中的条目必须包含 shmsys: 前缀。
DBMS 供应商使用称为锁定共享内存 (intimate shared memory, ISM) 的一种特殊共享内存来使性能最优。当共享内存段转变为 ISM 段时,将锁定该段的内存。使用此功能,可以沿更快的 I/O 路径前进并改善内存使用情况。然后,附加到 ISM
模式下的段的所有进程将共享描述该段的大量内核资源。
segspt_minfree
- 说明
确定不能分配为 ISM 共享内存的系统内存页数。
- 数据类型
无符号长整数
- 缺省值
创建第一个 ISM 段时的可用系统内存的 5%
- 范围
0 - 50% 的物理内存
- 单位
页
- 动态?
是
- 验证
无。如果值太小,当内存被 ISM 段占用时,会导致系统挂起或性能严重下降。
- 何时更改
在具有使用 ISM 的大量物理内存的数据库服务器上,可以减小此参数的值。如果未使用 ISM 段,此参数不起作用。在具有大量内存的计算机上,最大值为 128 MB (0x4000) 就基本足够了。
- 交付级别
不稳定