The SWAP is used to increase the memory availability to improve the System Performance and functionality by providing additional memory from the local disk so we decided to write about How to decide SWAP Space in Linux to install SAP HANA Database?
The SWAP Partition needs to create while installing the Operating System so, we can use it as additional memory from the disk like, If the Server / Application requires memory more than available memory of the server then the system will use swap space as Physical Memory(RAM).
For example, if the server is having 64GB Memory installed however, the Application or Database requires more than 64GB memory then the Operating System will allows Application to use SWAP Partition as a Physical Memory(RAM). And releases the Physical Memory(RAM)for other tasks/activity.
Now, when you are going to use the Server for SAP HANA Database then SAP recommends to have a dedicated swap-partition on internal SSD or SAN LUN with RAID Array however, it may vary based on the individual system configuration and its experience for that requirement.
How to decide SWAP space in Linux to install SAP HANA Database?
Below are the SWAP Space recommendations based on Physical Memory (RAM).
|Physical Memory (RAM) Size||Recommended SWAP Space|
|Less than 32GB||Double of Physical Memory (RAM)|
|32GB to 63GB||64GB|
|64GB to 127GB||96GB|
|128GB to 255GB||128GB|
|256GB to 511GB||160GB|
|512GB to 1023GB||192GB|
|1024GB to 2047GB||224GB|
|2048GB to 4095GB||256GB|
|4096GB to 8191GB||288GB|
|More than 8192GB||320GB|
You can check the SWAP Space in Linux by using below command:
Hope you will follow the above SWAP Space recommendations of SAP, while installing the Operating System for SAP Application or SAP HANA Database.