Oracle Database 对 SWAP 的建议

  • Between 1 GB and 2 GB: 1.5 times the size of the RAM
  • Between 2 GB and 16 GB: Equal to the size of the RAM
  • More than 16 GB: 16 GB

Note: If you enable HugePages for your Linux servers, then you should deduct the memory allocated to HugePages from the available RAM before calculating swap space.
因为大页不能被 SWAP。这也是为什么开启大页后可以降低 SWAP 交换的原因。

参考网址:
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/server-configuration-checklist-for-oracle-database-installation.html#GUID-CD4657FB-2DDC-4B30-AAB4-2C927045A86D

RedHat 对 SWAP 的建议

Amount of RAM in the systemRecommended swap spaceRecommended swap space if allowing for hibernation
<= 2 GB2 times the amount of RAM3 times the amount of RAM
> 2 GB – 8 GBEqual to the amount of RAM2 times the amount of RAM
> 8 GB – 64 GBAt least 4 GB1.5 times the amount of RAM
> 64 GBAt least 4 GBHibernation not recommended

参考网址:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_storage_devices/getting-started-with-swap_managing-storage-devices

-- By 许望(RHCA、OCM、VCP)
最后修改:2020 年 04 月 07 日 04 : 50 PM
如果觉得我的文章对你有用,请随意赞赏