Allocate memory of process at once.