Use MemoryMax as base of MemoryAdaptive.