commit e2cc0f53ac7be50fc4dfd1e2baedc3b2b32b1038
Author: Tao Liu <email address hidden>
Date: Thu Aug 1 14:32:57 2019 -0400
Fix the host unlock rejection caused by memory check
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 <email address hidden>
Reviewed: https:/ /review. opendev. org/674718 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=e2cc0f53ac7 be50fc4dfd1e2ba edc3b2b32b1038
Committed: https:/
Submitter: Zuul
Branch: master
commit e2cc0f53ac7be50 fc4dfd1e2baedc3 b2b32b1038
Author: Tao Liu <email address hidden>
Date: Thu Aug 1 14:32:57 2019 -0400
Fix the host unlock rejection caused by memory check
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: I2fa1d82f70263b b2a1b93df2a405a 979b42ed83a
Signed-off-by: Tao Liu <email address hidden>