Move memsize configuration to where it should be.