Take into account ram_allocation_ratio