Closed cheney-lin closed 3 months ago
Attention: Patch coverage is 65.38462%
with 18 lines
in your changes are missing coverage. Please review.
Project coverage is 55.54%. Comparing base (
21c243d
) to head (431175e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What type of PR is this?
Enhancements
What this PR does / why we need it:
The current memory protection mechanism is achieved by setting the memory limit of the Besteffort group to avoid memory overflows. However, when calculating the limit, the cache of high-priority services is considered as reclaimable, so that direct memory reclamation can still be triggered when memory bursting. This MR refactors the calculation logic. Firstly, we calculates the safety memory upper limit for each available NUMA node, and then sums them up to obtain the result. The upper limit for each NUMA node is calculated as followed: NUMA free memory + Besteffort group memory used on the NUMA node - reserved memory.
Which issue(s) this PR fixes:
Special notes for your reviewer: