Automatic HugePage configuration is available starting with FlashGrid Storage Fabric version 19.02. After resizing VM, HugePages will adjust accordingly if this feature is enabled. HugePages are configured only on DB nodes (not configured on quorum or storage nodes).
If you enabled automatic configuration of HugePages in FlashGrid Launcher during deployment of the cluster/server then no further action is needed.
Note: Prior to version 19.02 of FlashGrid Storage Fabric this feature was not available and HugePages must be configured manually by editing
To enable automatic HugePages configuration:
- Add or edit the following parameters under
/etc/flashgrid.cfgon the first DB node:
[memory] configure_hugepages = True total_db_memory_pct = 80 total_sga_max_size_pct_of_db_memory = 60
Please note that, HugePages are configured as product of
total_db_memory_pct * total_sga_max_size_pct_of_db_memory. Based on the above values, it is 80% * 60% = 48% of total memory. Check recommendations for memory sizing
- Deploy the updated configuration:
# flashgrid-cluster deploy-config
- Update the following parameters at the database level:
SGA_MAX_SIZE = <size of HugePages> SGA_TARGET = <size of HugePages> USE_LARGE_PAGES = only
Note: If you have multiple databases sharing the same cluster then the sum of the SGA_MAX_SIZE and SGA_TARGET parameters across all databases must not exceed the amount of memory allocated for Huge Pages.
- Reboot one node at a time. See instructions for graceful reboot here.