If 'zsize' is used, clamp it to no more than 50% of memory.