Reduce maxmem when in danger of fragmentation