pub fn gradient_reserve_memory_bytes(total_memory_bytes: usize) -> usize
Expand description
Calculate the reserved memory based on the total memory size. The reserved memory size is calculated based on the following gradient:
- 30% of the first 16GB
- 20% of the rest