48a3c500ba714bee1d16358af9926667d3f0bb76
Historically, the node total memory is calculated based on total of allocated hugepages, and usable Linux memory. NODE_TOTAL_MiB = HTOT + (AVAIL + PSS) This bottom-up calculation introduced variability and complexity. In some cases, the previously allocated memory exceeds the current total memory when AVAIL and PSS changed. This update changes NODE_TOTAL_MiB to MemTotal (the node's total usable ram), therefore Possible Huge Pages Memory = MemTotal - Platform Reserved. This update also adds a constraint, which only allows 90% of the Possible Huge Pages Memory to be allocated. Closes-Bug: 1837749 Change-Id: I2fa1d82f70263bb2a1b93df2a405a979b42ed83a Signed-off-by: Tao Liu <tao.liu@windriver.com>
stx-config
StarlingX Configuration Management
Description
Languages
Python
98%
Shell
1.6%
CSS
0.2%