Pmem: add memory avoid alloc failed.